xieshengjie 2 rokov pred
rodič
commit
69d09abe8e

+ 20 - 0
realtime/generation-service/src/main/java/com/gyee/generation/controller/ShutdowneventController.java

@@ -0,0 +1,20 @@
+package com.gyee.generation.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-07-29
+ */
+@RestController
+@RequestMapping("//shutdownevent")
+public class ShutdowneventController {
+
+}

+ 16 - 0
realtime/generation-service/src/main/java/com/gyee/generation/mapper/auto/ShutdowneventMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.generation.mapper.auto;
+
+import com.gyee.generation.model.auto.Shutdownevent;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-07-29
+ */
+public interface ShutdowneventMapper extends BaseMapper<Shutdownevent> {
+
+}

+ 62 - 0
realtime/generation-service/src/main/java/com/gyee/generation/model/auto/Shutdownevent.java

@@ -0,0 +1,62 @@
+package com.gyee.generation.model.auto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import java.time.LocalDate;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-07-29
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class Shutdownevent extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    private String id;
+
+    private String windpowerstationid;
+
+    private String windturbineid;
+
+    private LocalDate stoptime;
+
+    private LocalDate starttime;
+
+    private BigDecimal stophours;
+
+    private BigDecimal losspower;
+
+    private String stoptypeid;
+
+    private Integer ishandle;
+
+    private String warningid;
+
+    private String projectid;
+
+    private String handleway;
+
+    private String faultview;
+
+    private Integer statuscode;
+
+    private String mainid;
+
+    private String resetrate;
+
+    private String staterate;
+
+    private String failrate;
+
+    private Integer warningrecordsid;
+
+
+}

+ 1 - 1
realtime/generation-service/src/main/java/com/gyee/generation/service/StatusService.java

@@ -177,7 +177,7 @@ public class StatusService {
                             }
                             if (clauStatusDi.contains(wt.getProjectid())){
                                 //每个状态一个状态点
-                                List<Windturbinestatusdi> windturbinestatusdis = statusMap.get(wt.getId()).stream().filter(w -> w.getUniformcode().equals(Contant.MX000) || w.getUniformcode().equals(Contant.MX002) || w.getUniformcode().equals(Contant.MX006) || w.getUniformcode().equals(Contant.MX008)).collect(Collectors.toList());
+                                List<Windturbinestatusdi> windturbinestatusdis = statusMap.get(wt.getId()).stream().filter(w -> w.getUniformcode().equals(Contant.MX000) || w.getUniformcode().equals(Contant.MX002) || w.getUniformcode().equals(Contant.MX004) || w.getUniformcode().equals(Contant.MX006) || w.getUniformcode().equals(Contant.MX008)).collect(Collectors.toList());
                                 for(Windturbinestatusdi w : windturbinestatusdis){
                                     PointData realData = edosUtil.getRealData(w.getId());
                                     if (realData.getPointValueInDouble()==1){

+ 16 - 0
realtime/generation-service/src/main/java/com/gyee/generation/service/auto/IShutdowneventService.java

@@ -0,0 +1,16 @@
+package com.gyee.generation.service.auto;
+
+import com.gyee.generation.model.auto.Shutdownevent;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-07-29
+ */
+public interface IShutdowneventService extends IService<Shutdownevent> {
+
+}

+ 20 - 0
realtime/generation-service/src/main/java/com/gyee/generation/service/auto/impl/ShutdowneventServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.generation.service.auto.impl;
+
+import com.gyee.generation.model.auto.Shutdownevent;
+import com.gyee.generation.mapper.auto.ShutdowneventMapper;
+import com.gyee.generation.service.auto.IShutdowneventService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-07-29
+ */
+@Service
+public class ShutdowneventServiceImpl extends ServiceImpl<ShutdowneventMapper, Shutdownevent> implements IShutdowneventService {
+
+}

+ 1 - 1
web/pom.xml

@@ -31,7 +31,7 @@
         <module>admin-hb</module>
 <!--        <module>monitor-web-hf</module>-->
         <module>monitor-web-sxjn</module>
-        <module>initialpoint</module>
+<!--        <module>initialpoint</module>-->
         <module>alarm-hb</module>
         <module>configurationpoint</module>
     </modules>