Pārlūkot izejas kodu

指标统计分析

xieshengjie 3 gadi atpakaļ
vecāks
revīzija
67076174e0
100 mainītis faili ar 3813 papildinājumiem un 6 dzēšanām
  1. 29 0
      common/src/main/java/com/gyee/common/vo/targetdata/KkxzbfxVo.java
  2. 44 0
      common/src/main/java/com/gyee/common/vo/targetdata/NxzbfxVo.java
  3. BIN
      common/target/classes/com/gyee/common/vo/targetdata/KkxzbfxVo.class
  4. BIN
      common/target/classes/com/gyee/common/vo/targetdata/NxzbfxVo.class
  5. BIN
      common/target/common-1.0-SNAPSHOT.jar
  6. 2 0
      common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  7. 3 4
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/config/GeneratorCodeConfig.java
  8. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/EvaluationdatasourceController.java
  9. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/FaulthistoryController.java
  10. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/FaultsnapController.java
  11. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/LineController.java
  12. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/ProjectController.java
  13. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/ShutdowneventController.java
  14. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindpowerinfodayController.java
  15. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindpowerstationController.java
  16. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindturbineController.java
  17. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindturbineinfodayController.java
  18. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WpmttrandmtbfdayController.java
  19. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WpmttrandmtbfyearController.java
  20. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WpmttrandmtbmonthController.java
  21. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WtmttrandmtbfdayController.java
  22. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WtmttrandmtbfmonthController.java
  23. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WtmttrandmtbfyearController.java
  24. 112 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/init/CacheContext.java
  25. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/EvaluationdatasourceMapper.java
  26. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/FaulthistoryMapper.java
  27. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/FaultsnapMapper.java
  28. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/LineMapper.java
  29. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/ProjectMapper.java
  30. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/ShutdowneventMapper.java
  31. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindpowerinfodayMapper.java
  32. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindpowerstationMapper.java
  33. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindturbineMapper.java
  34. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindturbineinfodayMapper.java
  35. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WpmttrandmtbfdayMapper.java
  36. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WpmttrandmtbfyearMapper.java
  37. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WpmttrandmtbmonthMapper.java
  38. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WtmttrandmtbfdayMapper.java
  39. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WtmttrandmtbfmonthMapper.java
  40. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WtmttrandmtbfyearMapper.java
  41. 63 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Evaluationdatasource.java
  42. 68 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Faulthistory.java
  43. 91 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Faultsnap.java
  44. 53 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Line.java
  45. 69 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Project.java
  46. 88 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Shutdownevent.java
  47. 578 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windpowerinfoday.java
  48. 87 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windpowerstation.java
  49. 67 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windturbine.java
  50. 260 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windturbineinfoday.java
  51. 53 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wpmttrandmtbfday.java
  52. 50 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wpmttrandmtbfyear.java
  53. 53 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wpmttrandmtbmonth.java
  54. 47 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wtmttrandmtbfday.java
  55. 47 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wtmttrandmtbfmonth.java
  56. 45 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wtmttrandmtbfyear.java
  57. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IEvaluationdatasourceService.java
  58. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IFaulthistoryService.java
  59. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IFaultsnapService.java
  60. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/ILineService.java
  61. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IProjectService.java
  62. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IShutdowneventService.java
  63. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindpowerinfodayService.java
  64. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindpowerstationService.java
  65. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindturbineService.java
  66. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindturbineinfodayService.java
  67. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWpmttrandmtbfdayService.java
  68. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWpmttrandmtbfyearService.java
  69. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWpmttrandmtbmonthService.java
  70. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWtmttrandmtbfdayService.java
  71. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWtmttrandmtbfmonthService.java
  72. 16 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWtmttrandmtbfyearService.java
  73. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/EvaluationdatasourceServiceImpl.java
  74. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/FaulthistoryServiceImpl.java
  75. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/FaultsnapServiceImpl.java
  76. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/LineServiceImpl.java
  77. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/ProjectServiceImpl.java
  78. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/ShutdowneventServiceImpl.java
  79. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindpowerinfodayServiceImpl.java
  80. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindpowerstationServiceImpl.java
  81. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindturbineServiceImpl.java
  82. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindturbineinfodayServiceImpl.java
  83. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WpmttrandmtbfdayServiceImpl.java
  84. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WpmttrandmtbfyearServiceImpl.java
  85. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WpmttrandmtbmonthServiceImpl.java
  86. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WtmttrandmtbfdayServiceImpl.java
  87. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WtmttrandmtbfmonthServiceImpl.java
  88. 20 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WtmttrandmtbfyearServiceImpl.java
  89. 641 0
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/mttrmtbf/MTTRMTBFTaskService.java
  90. 23 2
      histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/task/HealthreportTask.java
  91. 88 0
      histroy/healthmanagement-histroy-hb/target/classes/application.yml
  92. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/HealthManagementHistroyMain.class
  93. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/config/GeneratorCodeConfig.class
  94. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/BenchmarkController.class
  95. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/CurvefittingsubController.class
  96. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/EvaluationdatasourceController.class
  97. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/FaulthistoryController.class
  98. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/FaultsnapController.class
  99. BIN
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/FaultstatisticwindturbineController.class
  100. 0 0
      histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/InputoroutputspeedtotalController.class

+ 29 - 0
common/src/main/java/com/gyee/common/vo/targetdata/KkxzbfxVo.java

@@ -0,0 +1,29 @@
+package com.gyee.common.vo.targetdata;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @ClassName : KkxzbfxVo
+ * @Author : xieshengjie
+ * @Date: 2021/7/6 18:43
+ * @Description : 可靠性指标分析vo
+ */
+@Data
+public class KkxzbfxVo implements Serializable {
+
+    private static final long serialVersionUID = -2941794540137035356L;
+
+    private String wpid;
+    private Double lyxs;
+    private Double ylyxs;
+    private Double nylyx;
+    private Double sbklyl;
+    private Double ysbklyl;
+    private Double nsbklyl;
+    private Double dxkxxs;
+    private Double ydxkxxs;
+    private Double ndxkxxs;
+    private Double yxfss;
+}

+ 44 - 0
common/src/main/java/com/gyee/common/vo/targetdata/NxzbfxVo.java

@@ -0,0 +1,44 @@
+package com.gyee.common.vo.targetdata;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName : NxzbfxVo
+ * @Author : xieshengjie
+ * @Date: 2021/7/6 16:35
+ * @Description : 能效指标分析vo
+ */
+@Data
+public class NxzbfxVo implements Serializable {
+    private static final long serialVersionUID = -6233668839170355138L;
+
+    private String wpid;
+    private String projectid;
+    private Date date;
+    private Double rpjfs;
+    private Double rfdl;
+    private Double yljfdl;
+    private Double nljfdl;
+    private Double rswdl;
+    private Double yljswdl;
+    private Double nljswdl;
+    private Double zhcydl;
+    private Double yljzhcydl;
+    private Double zhcydll;
+    private Double scadarfdl;
+    private Double scadayljfdl;
+    private Double scadanljfdl;
+    private Double scadazhcydl;
+    private Double scadayljzhcydl;
+    private Double scadazhcydll;
+    private Double rxdssdl;
+    private Double yljxdssdl;
+    private Double nljxdssdl;
+    private Double yljxdl;
+    private Double nljxdl;
+    private Integer sort;
+
+}

BIN
common/target/classes/com/gyee/common/vo/targetdata/KkxzbfxVo.class


BIN
common/target/classes/com/gyee/common/vo/targetdata/NxzbfxVo.class


BIN
common/target/common-1.0-SNAPSHOT.jar


+ 2 - 0
common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -35,6 +35,7 @@ com\gyee\common\util\SortUtils$1.class
 com\gyee\common\util\RestTemplateUtil.class
 com\gyee\common\vo\benchmark\DataVo.class
 com\gyee\common\service\impl\WindturbineServiceImpl.class
+com\gyee\common\vo\targetdata\KkxzbfxVo.class
 com\gyee\common\CommonMain.class
 com\gyee\common\util\DoubleUtils.class
 com\gyee\common\util\RestTemplateUtil$SingletonRestTemplate.class
@@ -42,6 +43,7 @@ com\gyee\common\model\DNAVal.class
 com\gyee\common\util\algorithm\GDJTLineBuild.class
 com\gyee\common\vo\algorithm\LineParameters.class
 com\gyee\common\vo\specific\SpecificCenterVo.class
+com\gyee\common\vo\targetdata\NxzbfxVo.class
 com\gyee\common\util\CopyUtils.class
 com\gyee\common\service\IWindturbineService.class
 com\gyee\common\vo\threerate\FwjslVo.class

+ 3 - 4
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/config/GeneratorCodeConfig.java

@@ -56,13 +56,12 @@ public class GeneratorCodeConfig {
 //        mpg.setDataSource(dsc);
 
         dsc.setDriverName("oracle.jdbc.driver.OracleDriver");
-        dsc.setUsername("nxfdprod");
-        dsc.setPassword("gdnxfd123");
+        dsc.setUsername("gdprod");
+        dsc.setPassword("gd123");
 //        dsc.setUrl("jdbc:oracle:thin:@49.4.50.80:1521:gdnxfd");
-        dsc.setUrl("jdbc:oracle:thin:@192.168.1.105:1521:gdnxfd");
+        dsc.setUrl("jdbc:oracle:thin:@10.83.68.165:1521:gdsj");
         mpg.setDataSource(dsc);
 
-
 //        dsc.setDriverName("com.cloudera.impala.jdbc41.Driver");
 //        dsc.setUrl("jdbc:impala://192.168.1.67:21050/gyee_test");
 //        mpg.setDataSource(dsc);

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/EvaluationdatasourceController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/FaulthistoryController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/FaultsnapController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/LineController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/ProjectController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/ShutdowneventController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindpowerinfodayController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindpowerstationController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindturbineController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WindturbineinfodayController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WpmttrandmtbfdayController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WpmttrandmtbfyearController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WpmttrandmtbmonthController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WtmttrandmtbfdayController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WtmttrandmtbfmonthController.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/controller/auto/WtmttrandmtbfyearController.java

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

+ 112 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/init/CacheContext.java

@@ -0,0 +1,112 @@
+package com.gyee.healthmanagementhistroy.init;
+
+
+import com.gyee.healthmanagementhistroy.model.auto.*;
+import com.gyee.healthmanagementhistroy.service.auto.*;
+import com.gyee.healthmanagementhistroy.service.healthreport.HealthReportService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.CommandLineRunner;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @ClassName : CacheContext
+ * @Author : xieshengjie
+ * @Date: 2021/5/18 9:35
+ * @Description : 缓存
+ */
+@Component
+public class CacheContext implements CommandLineRunner {
+
+    private static final Logger log = LoggerFactory.getLogger(CacheContext.class);
+    @Autowired
+    private IEvaluationdatasourceService evaluationdatasourceService;
+    @Autowired
+    private IWindturbineService windturbineService;
+    @Autowired
+    private IWindpowerstationService windpowerstationService;
+    @Autowired
+    private IProjectService projectService;
+    @Autowired
+    private ILineService lineService;
+    @Resource
+    private HealthReportService healthReportService;
+
+    public static List<Evaluationdatasource> datasourceList = new ArrayList<>();
+
+    public static Map<String,Evaluationdatasource> targetMap = new HashMap<>();
+
+    public static Map<String, List<Windturbine>> wtmap = new HashMap<>();
+
+    public static Map<String,Windturbine> wmap = new HashMap<>();
+
+    public static Map<String, Windpowerstation> wpmap = new HashMap<>();
+
+    public static List<Windpowerstation> wplist = new ArrayList<>();
+
+    public static List<Project> projectList = new ArrayList<>();
+
+    public static Map<String,Project> promap = new HashMap<>();
+
+    public static Map<String,List<Project>> wpprojectMap = new HashMap<>();
+
+    public static List<Line> lineList = new ArrayList<>();
+
+    public static List<Windturbine> wtls = new ArrayList<>();
+
+
+
+
+    @Override
+    public void run(String... args) throws Exception {
+
+        log.info("-------------------------------缓存开始--------------------------------------");
+
+        wplist = windpowerstationService.list();
+        wplist.stream().filter(i->i.getId().endsWith("FDC")).forEach(i->{
+            wpmap.put(i.getId(),i);
+        });
+
+        datasourceList = evaluationdatasourceService.list();
+
+        datasourceList.stream().forEach(i->{
+            targetMap.put(i.getTargetid(),i);
+        });
+
+        wtls = windturbineService.list();
+        wtls.stream().forEach(wt->{
+            wmap.put(wt.getId(),wt);
+            if (wtmap.containsKey(wt.getWindpowerstationid())){
+                wtmap.get(wt.getWindpowerstationid()).add(wt);
+            }else{
+                List<Windturbine> wts = new ArrayList<>();
+                wts.add(wt);
+                wtmap.put(wt.getWindpowerstationid(),wts);
+            }
+        });
+        projectList = projectService.list();
+        projectList.stream().forEach(project->{
+            promap.put(project.getId(),project);
+            if (wpprojectMap.containsKey(project.getWindpowerstationid())){
+                wpprojectMap.get(project.getWindpowerstationid()).add(project);
+            }else{
+                List<Project> pros = new ArrayList<>();
+                pros.add(project);
+                wpprojectMap.put(project.getWindpowerstationid(),pros);
+            }
+        });
+        lineList = lineService.list();
+
+
+
+
+        log.info("-------------------------------缓存结束--------------------------------------");
+    }
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/EvaluationdatasourceMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Evaluationdatasource;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface EvaluationdatasourceMapper extends BaseMapper<Evaluationdatasource> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/FaulthistoryMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Faulthistory;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface FaulthistoryMapper extends BaseMapper<Faulthistory> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/FaultsnapMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Faultsnap;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface FaultsnapMapper extends BaseMapper<Faultsnap> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/LineMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Line;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface LineMapper extends BaseMapper<Line> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/ProjectMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Project;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface ProjectMapper extends BaseMapper<Project> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/ShutdowneventMapper.java

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

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindpowerinfodayMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windpowerinfoday;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WindpowerinfodayMapper extends BaseMapper<Windpowerinfoday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindpowerstationMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windpowerstation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WindpowerstationMapper extends BaseMapper<Windpowerstation> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindturbineMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windturbine;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WindturbineMapper extends BaseMapper<Windturbine> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WindturbineinfodayMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windturbineinfoday;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WindturbineinfodayMapper extends BaseMapper<Windturbineinfoday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WpmttrandmtbfdayMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbfday;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WpmttrandmtbfdayMapper extends BaseMapper<Wpmttrandmtbfday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WpmttrandmtbfyearMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbfyear;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WpmttrandmtbfyearMapper extends BaseMapper<Wpmttrandmtbfyear> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WpmttrandmtbmonthMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbmonth;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WpmttrandmtbmonthMapper extends BaseMapper<Wpmttrandmtbmonth> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WtmttrandmtbfdayMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfday;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WtmttrandmtbfdayMapper extends BaseMapper<Wtmttrandmtbfday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WtmttrandmtbfmonthMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfmonth;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WtmttrandmtbfmonthMapper extends BaseMapper<Wtmttrandmtbfmonth> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/mapper/auto/WtmttrandmtbfyearMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.mapper.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfyear;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface WtmttrandmtbfyearMapper extends BaseMapper<Wtmttrandmtbfyear> {
+
+}

+ 63 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Evaluationdatasource.java

@@ -0,0 +1,63 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("EVALUATIONDATASOURCE")
+public class Evaluationdatasource extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("TARGETID")
+    private String targetid;
+
+    @TableField("TARGETNAME")
+    private String targetname;
+
+    @TableField("DATASOURCETABLE")
+    private String datasourcetable;
+
+    @TableField("DATASOURCEFIELD")
+    private String datasourcefield;
+
+    @TableField("STATISTICALMETHOD")
+    private String statisticalmethod;
+
+    @TableField("CONDITION")
+    private String condition;
+
+    @TableField("SORT")
+    private String sort;
+
+    @TableField("GROUPBYFIELDS")
+    private String groupbyfields;
+
+    @TableField("CYCLE")
+    private String cycle;
+
+    @TableField("FIELDTYPE")
+    private BigDecimal fieldtype;
+
+    @TableField("TYPE")
+    private String type;
+
+    @TableField("GENERALFORMULA")
+    private String generalformula;
+
+
+}

+ 68 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Faulthistory.java

@@ -0,0 +1,68 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("FAULTHISTORY")
+public class Faulthistory extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private Long id;
+
+    @TableField("FAULTTIME")
+    private Date faulttime;
+
+    @TableField("SNAPID")
+    private Double snapid;
+
+    @TableField("OPERATOR")
+    private String operator;
+
+    /**
+     * 1-确认 2-复位 3-生成缺陷单
+     */
+    @TableField("CONFIRMTYPE")
+    private Integer confirmtype;
+
+    @TableField("CONFIRMTIME")
+    private Date confirmtime;
+
+    @TableField("CONFIRMPERSON")
+    private String confirmperson;
+
+    /**
+     * 1-报警触发 3-报警解除
+     */
+    @TableField("MESSAGETYPE")
+    private Integer messagetype;
+
+    @TableField("ALERTSNAPID")
+    private Double alertsnapid;
+
+    /**
+     * 针对升压站报警使用,如果触发报警时测点值为0, 则本字段值为--分位,测点值为1时,本字段值为--合位
+     */
+    @TableField("ALERTTEXTLAST")
+    private String alerttextlast;
+
+
+}

+ 91 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Faultsnap.java

@@ -0,0 +1,91 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("FAULTSNAP")
+public class Faultsnap extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private Long id;
+
+    @TableField("STATIONID")
+    private String stationid;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("LINEID")
+    private String lineid;
+
+    @TableField("WINDTURBINEID")
+    private String windturbineid;
+
+    @TableField("ALERTVALUE")
+    private Double alertvalue;
+
+    @TableField("CATEGORY1")
+    private String category1;
+
+    @TableField("CATEGORY2")
+    private String category2;
+
+    @TableField("CATEGORY3")
+    private String category3;
+
+    @TableField("RANK")
+    private String rank;
+
+    @TableField("ISOPENED")
+    private Integer isopened;
+
+    @TableField("LASTUPDATETIME")
+    private Date lastupdatetime;
+
+    @TableField("LASTUPDATEPERSON")
+    private String lastupdateperson;
+
+    @TableField("STATIONNAME")
+    private String stationname;
+
+    @TableField("PROJECTNAME")
+    private String projectname;
+
+    @TableField("LINENAME")
+    private String linename;
+
+    @TableField("WINDTURBINENAME")
+    private String windturbinename;
+
+    @TableField("ALERTTEXT")
+    private String alerttext;
+
+    @TableField("MODELID")
+    private String modelid;
+
+    @TableField("TESTINGPOINTKEY")
+    private String testingpointkey;
+
+    @TableField("ALARMSNAPID")
+    private Double alarmsnapid;
+
+
+}

+ 53 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Line.java

@@ -0,0 +1,53 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("LINE")
+public class Line extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("ANAME")
+    private String aname;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("ORDERNUM")
+    private Double ordernum;
+
+    @TableField("CAPACITY")
+    private Double capacity;
+
+    @TableField("CAPACITYUNIT")
+    private String capacityunit;
+
+    @TableField("QUANTITY")
+    private Double quantity;
+
+
+}

+ 69 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Project.java

@@ -0,0 +1,69 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("PROJECT")
+public class Project extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("ANAME")
+    private String aname;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("CAPACITY")
+    private Double capacity;
+
+    @TableField("CAPACITYUNIT")
+    private String capacityunit;
+
+    @TableField("QUANTITY")
+    private Double quantity;
+
+    @TableField("MODEL")
+    private String model;
+
+    @TableField("COMMISSIONDATE")
+    private LocalDateTime commissiondate;
+
+    @TableField("MASTERPHONE")
+    private String masterphone;
+
+    @TableField("SHIFTFOREMAN")
+    private String shiftforeman;
+
+    @TableField("SHIFTFOREMANPHONE")
+    private String shiftforemanphone;
+
+    @TableField("ORDERNUM")
+    private Double ordernum;
+
+
+}

+ 88 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Shutdownevent.java

@@ -0,0 +1,88 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("SHUTDOWNEVENT")
+public class Shutdownevent extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("WINDTURBINEID")
+    private String windturbineid;
+
+    @TableField("STOPTIME")
+    private Date stoptime;
+
+    @TableField("STARTTIME")
+    private Date starttime;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("LOSSPOWER")
+    private Double losspower;
+
+    /**
+     * ???????????????????
+     */
+    @TableField("STOPTYPEID")
+    private String stoptypeid;
+
+    @TableField("ISHANDLE")
+    private Double ishandle;
+
+    @TableField("WARNINGID")
+    private String warningid;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("HANDLEWAY")
+    private String handleway;
+
+    @TableField("FAULTVIEW")
+    private String faultview;
+
+    @TableField("STATUSCODE")
+    private Double statuscode;
+
+    @TableField("MAINID")
+    private String mainid;
+
+    @TableField("RESETRATE")
+    private String resetrate;
+
+    @TableField("STATERATE")
+    private String staterate;
+
+    @TableField("FAILRATE")
+    private String failrate;
+
+    @TableField("WARNINGRECORDSID")
+    private Double warningrecordsid;
+
+
+}

+ 578 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windpowerinfoday.java

@@ -0,0 +1,578 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDPOWERINFODAY")
+public class Windpowerinfoday extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * ??
+     */
+    @TableId("ID")
+    private Long id;
+
+    /**
+     * ????
+     */
+    @TableField("FOREIGNKEYID")
+    private String foreignkeyid;
+
+    /**
+     * ????
+     */
+    @TableField("RUNHOURS")
+    private Double runhours;
+
+    /**
+     * ????
+     */
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    /**
+     * ????
+     */
+    @TableField("FAULTHOURS")
+    private Double faulthours;
+
+    /**
+     * ????
+     */
+    @TableField("MAINTAINHOURS")
+    private Double maintainhours;
+
+    /**
+     * ??????
+     */
+    @TableField("INTERRUPTHOURS")
+    private Double interrupthours;
+
+    /**
+     * ???(SCADA)
+     */
+    @TableField("GENERATINGCAPACITY")
+    private Double generatingcapacity;
+
+    /**
+     * ??
+     */
+    @TableField("SPEED")
+    private Double speed;
+
+    /**
+     * ??
+     */
+    @TableField("POWER")
+    private Double power;
+
+    /**
+     * ??
+     */
+    @TableField("RECORDDATE")
+    private Date recorddate;
+
+    /**
+     * ????
+     */
+    @TableField("GRIDELECTRICITY")
+    private Double gridelectricity;
+
+    /**
+     * ??????
+     */
+    @TableField("BUYELECTRICITY")
+    private Double buyelectricity;
+
+    /**
+     * ????
+     */
+    @TableField("INSTOP")
+    private Double instop;
+
+    /**
+     * ????
+     */
+    @TableField("OUTSTOP")
+    private Double outstop;
+
+    /**
+     * ?????????
+     */
+    @TableField("RUNTIME")
+    private Double runtime;
+
+    /**
+     * ?????????
+     */
+    @TableField("STOPTIME")
+    private Double stoptime;
+
+    /**
+     * ?????????
+     */
+    @TableField("FAULTTIME")
+    private Double faulttime;
+
+    /**
+     * ?????????
+     */
+    @TableField("MAINTAINTIME")
+    private Double maintaintime;
+
+    /**
+     * ???????????
+     */
+    @TableField("INTERRUPTTIME")
+    private Double interrupttime;
+
+    /**
+     * ????
+     */
+    @TableField("MONTHGC")
+    private Double monthgc;
+
+    /**
+     * ????
+     */
+    @TableField("YEARGC")
+    private Double yeargc;
+
+    /**
+     * ?????
+     */
+    @TableField("THEORYGENERATION")
+    private Double theorygeneration;
+
+    /**
+     * ?????
+     */
+    @TableField("LOSSOFPOWER")
+    private Double lossofpower;
+
+    /**
+     * ????
+     */
+    @TableField("FIELDELECTRICITY")
+    private Double fieldelectricity;
+
+    /**
+     * ???????
+     */
+    @TableField("GENERATINGCAPACITY2")
+    private Double generatingcapacity2;
+
+    /**
+     * ????
+     */
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    /**
+     * ????
+     */
+    @TableField("PROJECTID")
+    private String projectid;
+
+    /**
+     * ????
+     */
+    @TableField("LINEID")
+    private String lineid;
+
+    /**
+     * ????
+     */
+    @TableField("LOCATION")
+    private String location;
+
+    /**
+     * ??????
+     */
+    @TableField("BUYAGRICULTUREELECTRICITY")
+    private Double buyagricultureelectricity;
+
+    /**
+     * ????(??)
+     */
+    @TableField("MONTHGC2")
+    private Double monthgc2;
+
+    /**
+     * ????(??)
+     */
+    @TableField("YEARGC2")
+    private Double yeargc2;
+
+    /**
+     * ??(???)
+     */
+    @TableField("SPEED2")
+    private Double speed2;
+
+    /**
+     * ????
+     */
+    @TableField("MAXSPEED")
+    private Double maxspeed;
+
+    /**
+     * ??????????
+     */
+    @TableField("MINSPEED")
+    private Double minspeed;
+
+    /**
+     * ???
+     */
+    @TableField("LIMITPOWER")
+    private Double limitpower;
+
+    /**
+     * ?????SCADA?
+     */
+    @TableField("TOTALGC")
+    private Double totalgc;
+
+    /**
+     * ????
+     */
+    @TableField("TOTALGC2")
+    private Double totalgc2;
+
+    /**
+     * ???????
+     */
+    @TableField("THEORYGENERATIONZS")
+    private Double theorygenerationzs;
+
+    /**
+     * ?????
+     */
+    @TableField("WINDHOURS")
+    private Double windhours;
+
+    /**
+     * ????
+     */
+    @TableField("MAXPOWER")
+    private Double maxpower;
+
+    /**
+     * ????
+     */
+    @TableField("MINPOWER")
+    private Double minpower;
+
+    /**
+     * ?????
+     */
+    @TableField("MONTHGE")
+    private Double monthge;
+
+    /**
+     * ?????
+     */
+    @TableField("YEARGE")
+    private Double yearge;
+
+    /**
+     * ???????
+     */
+    @TableField("MONTHBE")
+    private Double monthbe;
+
+    /**
+     * ???????
+     */
+    @TableField("YEARBE")
+    private Double yearbe;
+
+    /**
+     * ???????
+     */
+    @TableField("MONTHAE")
+    private Double monthae;
+
+    /**
+     * ???????
+     */
+    @TableField("YEARAE")
+    private Double yearae;
+
+    /**
+     * ?????4????
+     */
+    @TableField("GENERATINGCAPACITY4")
+    private Double generatingcapacity4;
+
+    /**
+     * ??????4????
+     */
+    @TableField("GRIDELECTRICITY4")
+    private Double gridelectricity4;
+
+    /**
+     * ????????4????
+     */
+    @TableField("BUYELECTRICITY4")
+    private Double buyelectricity4;
+
+    /**
+     * ????????4????
+     */
+    @TableField("BUYAGRICULTUREELECTRICITY4")
+    private Double buyagricultureelectricity4;
+
+    /**
+     * ??????
+     */
+    @TableField("DAYLYXS")
+    private Double daylyxs;
+
+    /**
+     * ??????
+     */
+    @TableField("MONTHLYXS")
+    private Double monthlyxs;
+
+    /**
+     * ??????
+     */
+    @TableField("YEARLYXS")
+    private Double yearlyxs;
+
+    /**
+     * ???????
+     */
+    @TableField("DAYZHCYDL")
+    private Double dayzhcydl;
+
+    /**
+     * ???????
+     */
+    @TableField("MONTHZHCYDL")
+    private Double monthzhcydl;
+
+    /**
+     * ???????
+     */
+    @TableField("YEARZHCYDL")
+    private Double yearzhcydl;
+
+    /**
+     * ???????
+     */
+    @TableField("DAYSBKLYL")
+    private Double daysbklyl;
+
+    /**
+     * ???????
+     */
+    @TableField("MONTHSBKLYL")
+    private Double monthsbklyl;
+
+    /**
+     * ???????
+     */
+    @TableField("YEARSBKLYL")
+    private Double yearsbklyl;
+
+    /**
+     * ???????
+     */
+    @TableField("DAYDXKYXS")
+    private Double daydxkyxs;
+
+    /**
+     * ???????
+     */
+    @TableField("MONTHDXKYXS")
+    private Double monthdxkyxs;
+
+    /**
+     * ???????
+     */
+    @TableField("YEARDXKYXS")
+    private Double yeardxkyxs;
+
+    /**
+     * ?????
+     */
+    @TableField("MONTHSPEED")
+    private Double monthspeed;
+
+    /**
+     * ?????
+     */
+    @TableField("YEARSPEED")
+    private Double yearspeed;
+
+    /**
+     * ??????????
+     */
+    @TableField("MONTHRUNTIME")
+    private Double monthruntime;
+
+    /**
+     * ??????????
+     */
+    @TableField("MONHTSTOPTIME")
+    private Double monhtstoptime;
+
+    /**
+     * ??????????
+     */
+    @TableField("MONTHFAULTTIME")
+    private Double monthfaulttime;
+
+    /**
+     * ??????????
+     */
+    @TableField("MONTHMAINTAINTIME")
+    private Double monthmaintaintime;
+
+    /**
+     * ????????????
+     */
+    @TableField("MONTHINTERRUPTTIME")
+    private Double monthinterrupttime;
+
+    /**
+     * ??????????
+     */
+    @TableField("YEARRUNTIME")
+    private Double yearruntime;
+
+    /**
+     * ??????????
+     */
+    @TableField("YEARSTOPTIME")
+    private Double yearstoptime;
+
+    /**
+     * ??????????
+     */
+    @TableField("YEARFAULTTIME")
+    private Double yearfaulttime;
+
+    /**
+     * ??????????
+     */
+    @TableField("YEARMAINTAINTIME")
+    private Double yearmaintaintime;
+
+    /**
+     * ????????????
+     */
+    @TableField("YEARINTERRUPTTIME")
+    private Double yearinterrupttime;
+
+    /**
+     * ??????
+     */
+    @TableField("DAYCALENDARHOURS")
+    private Double daycalendarhours;
+
+    /**
+     * ??????
+     */
+    @TableField("MONTHCALENDARHOURS")
+    private Double monthcalendarhours;
+
+    /**
+     * ??????
+     */
+    @TableField("YEARCALENDARHOURS")
+    private Double yearcalendarhours;
+
+    /**
+     * ??????
+     */
+    @TableField("LOSSOFPOWER1")
+    private Double lossofpower1;
+
+    /**
+     * ??????
+     */
+    @TableField("LOSSOFPOWER2")
+    private Double lossofpower2;
+
+    /**
+     * ??????
+     */
+    @TableField("LOSSOFPOWER3")
+    private Double lossofpower3;
+
+    /**
+     * ??????
+     */
+    @TableField("LOSSOFPOWER4")
+    private Double lossofpower4;
+
+    /**
+     * ??????
+     */
+    @TableField("MONTHWINDHOURS")
+    private Double monthwindhours;
+
+    /**
+     * ??????
+     */
+    @TableField("YEARWINDHOURS")
+    private Double yearwindhours;
+
+    /**
+     * ??????
+     */
+    @TableField("BROWNOUTSTIME")
+    private Double brownoutstime;
+
+    /**
+     * ??????
+     */
+    @TableField("MONTHBROWNOUTSTIME")
+    private Double monthbrownoutstime;
+
+    /**
+     * ??????
+     */
+    @TableField("YEARBROWNOUTSTIME")
+    private Double yearbrownoutstime;
+
+    @TableField("MAINLOSSIN")
+    private Double mainlossin;
+
+    @TableField("FAULTLOSSIN")
+    private Double faultlossin;
+
+    @TableField("ELECTRICLOSSOUT")
+    private Double electriclossout;
+
+    @TableField("WEATHERLOSSOUT")
+    private Double weatherlossout;
+
+    @TableField("TEST1")
+    private Double test1;
+
+
+}

+ 87 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windpowerstation.java

@@ -0,0 +1,87 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDPOWERSTATION")
+public class Windpowerstation extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("ADDRESS")
+    private String address;
+
+    @TableField("TELEPHONE")
+    private String telephone;
+
+    @TableField("CAPACITY")
+    private BigDecimal capacity;
+
+    @TableField("CAPACITYUNIT")
+    private String capacityunit;
+
+    @TableField("QUANTITY")
+    private BigDecimal quantity;
+
+    @TableField("ANAME")
+    private String aname;
+
+    @TableField("LONGITUDE")
+    private BigDecimal longitude;
+
+    @TableField("LATITUDE")
+    private BigDecimal latitude;
+
+    @TableField("PHOTO")
+    private String photo;
+
+    @TableField("COMPANYID")
+    private String companyid;
+
+    @TableField("SYSTEMMANUFACT")
+    private String systemmanufact;
+
+    @TableField("HEADFARM")
+    private String headfarm;
+
+    @TableField("HEADFARMPHONE")
+    private String headfarmphone;
+
+    @TableField("MODEL")
+    private String model;
+
+    @TableField("ORDERNUM")
+    private BigDecimal ordernum;
+
+    @TableField("ALTITUDE")
+    private BigDecimal altitude;
+
+    @TableField("HEIGHT")
+    private BigDecimal height;
+
+
+}

+ 67 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windturbine.java

@@ -0,0 +1,67 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDTURBINE")
+public class Windturbine extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("LONGITUDE")
+    private BigDecimal longitude;
+
+    @TableField("LATITUDE")
+    private BigDecimal latitude;
+
+    @TableField("MODELID")
+    private String modelid;
+
+    @TableField("STATUS")
+    private String status;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("LINEID")
+    private String lineid;
+
+    @TableField("FIRSTINTEGRATEDTIME")
+    private LocalDateTime firstintegratedtime;
+
+    @TableField("PHOTO")
+    private String photo;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("STANDARDID")
+    private String standardid;
+
+
+}

+ 260 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Windturbineinfoday.java

@@ -0,0 +1,260 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDTURBINEINFODAY")
+public class Windturbineinfoday extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private Long id;
+
+    @TableField("WINDTURBINEID")
+    private String windturbineid;
+
+    @TableField("RUNHOURS")
+    private Double runhours;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("FAULTHOURS")
+    private Double faulthours;
+
+    @TableField("MAINTAINHOURS")
+    private Double maintainhours;
+
+    @TableField("INTERRUPTHOURS")
+    private Double interrupthours;
+
+    @TableField("GENERATINGCAPACITY")
+    private Double generatingcapacity;
+
+    @TableField("SPEED")
+    private Double speed;
+
+    @TableField("POWER")
+    private Double power;
+
+    @TableField("RECORDDATE")
+    private Date recorddate;
+
+    @TableField("GRIDELECTRICITY")
+    private Double gridelectricity;
+
+    @TableField("BUYELECTRICITY")
+    private Double buyelectricity;
+
+    @TableField("INSTOP")
+    private Double instop;
+
+    @TableField("OUTSTOP")
+    private Double outstop;
+
+    @TableField("RUNTIME")
+    private Double runtime;
+
+    @TableField("STOPTIME")
+    private Double stoptime;
+
+    @TableField("FAULTTIME")
+    private Double faulttime;
+
+    @TableField("MAINTAINTIME")
+    private Double maintaintime;
+
+    @TableField("INTERRUPTTIME")
+    private Double interrupttime;
+
+    @TableField("MONTHGC")
+    private Double monthgc;
+
+    @TableField("YEARGC")
+    private Double yeargc;
+
+    @TableField("THEORYGENERATION")
+    private Double theorygeneration;
+
+    @TableField("LOSSOFPOWER")
+    private Double lossofpower;
+
+    @TableField("FIELDELECTRICITY")
+    private Double fieldelectricity;
+
+    @TableField("GENERATINGCAPACITY2")
+    private Double generatingcapacity2;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("LINEID")
+    private String lineid;
+
+    @TableField("MAXSPEED")
+    private Double maxspeed;
+
+    @TableField("MINSPEED")
+    private Double minspeed;
+
+    @TableField("TOTALGC")
+    private Double totalgc;
+
+    @TableField("TOTALGC2")
+    private Double totalgc2;
+
+    @TableField("THEORYGENERATIONZS")
+    private Double theorygenerationzs;
+
+    @TableField("WINDHOURS")
+    private Double windhours;
+
+    @TableField("MAXPOWER")
+    private Double maxpower;
+
+    @TableField("MINPOWER")
+    private Double minpower;
+
+    @TableField("MONTHRUNTIME")
+    private Double monthruntime;
+
+    @TableField("MONHTSTOPTIME")
+    private Double monhtstoptime;
+
+    @TableField("MONTHFAULTTIME")
+    private Double monthfaulttime;
+
+    @TableField("MONTHMAINTAINTIME")
+    private Double monthmaintaintime;
+
+    @TableField("MONTHINTERRUPTTIME")
+    private Double monthinterrupttime;
+
+    @TableField("YEARRUNTIME")
+    private Double yearruntime;
+
+    @TableField("YEARSTOPTIME")
+    private Double yearstoptime;
+
+    @TableField("YEARFAULTTIME")
+    private Double yearfaulttime;
+
+    @TableField("YEARMAINTAINTIME")
+    private Double yearmaintaintime;
+
+    @TableField("YEARINTERRUPTTIME")
+    private Double yearinterrupttime;
+
+    @TableField("MONTHSPEED")
+    private Double monthspeed;
+
+    @TableField("YEARSPEED")
+    private Double yearspeed;
+
+    @TableField("DAYCALENDARHOURS")
+    private Double daycalendarhours;
+
+    @TableField("MONTHCALENDARHOURS")
+    private Double monthcalendarhours;
+
+    @TableField("YEARCALENDARHOURS")
+    private Double yearcalendarhours;
+
+    @TableField("LOSSOFPOWER1")
+    private Double lossofpower1;
+
+    @TableField("LOSSOFPOWER2")
+    private Double lossofpower2;
+
+    @TableField("LOSSOFPOWER3")
+    private Double lossofpower3;
+
+    @TableField("LOSSOFPOWER4")
+    private Double lossofpower4;
+
+    @TableField("DAYZHCYDL")
+    private Double dayzhcydl;
+
+    @TableField("MONTHZHCYDL")
+    private Double monthzhcydl;
+
+    @TableField("YEARZHCYDL")
+    private Double yearzhcydl;
+
+    @TableField("DAYSBKLYL")
+    private Double daysbklyl;
+
+    @TableField("MONTHSBKLYL")
+    private Double monthsbklyl;
+
+    @TableField("YEARSBKLYL")
+    private Double yearsbklyl;
+
+    @TableField("DAYDXKYXS")
+    private Double daydxkyxs;
+
+    @TableField("MONTHDXKYXS")
+    private Double monthdxkyxs;
+
+    @TableField("YEARDXKYXS")
+    private Double yeardxkyxs;
+
+    @TableField("MONTHWINDHOURS")
+    private Double monthwindhours;
+
+    @TableField("YEARWINDHOURS")
+    private Double yearwindhours;
+
+    @TableField("DAYLYXS")
+    private Double daylyxs;
+
+    @TableField("MONTHLYXS")
+    private Double monthlyxs;
+
+    @TableField("YEARLYXS")
+    private Double yearlyxs;
+
+    @TableField("BROWNOUTSTIME")
+    private Double brownoutstime;
+
+    @TableField("MONTHBROWNOUTSTIME")
+    private Double monthbrownoutstime;
+
+    @TableField("YEARBROWNOUTSTIME")
+    private Double yearbrownoutstime;
+
+    @TableField("MAINLOSSIN")
+    private Double mainlossin;
+
+    @TableField("FAULTLOSSIN")
+    private Double faultlossin;
+
+    @TableField("ELECTRICLOSSOUT")
+    private Double electriclossout;
+
+    @TableField("WEATHERLOSSOUT")
+    private Double weatherlossout;
+
+
+}

+ 53 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wpmttrandmtbfday.java

@@ -0,0 +1,53 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WPMTTRANDMTBFDAY")
+public class Wpmttrandmtbfday extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WPID")
+    private String wpid;
+
+    @TableField("WPNAME")
+    private String wpname;
+
+    @TableField("LOCATION")
+    private String location;
+
+    @TableField("RECORDDATE")
+    private Date recorddate;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("STOPRTIMES")
+    private Long stoprtimes;
+
+    @TableField("WTHOURS")
+    private Double wthours;
+
+
+}

+ 50 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wpmttrandmtbfyear.java

@@ -0,0 +1,50 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WPMTTRANDMTBFYEAR")
+public class Wpmttrandmtbfyear extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WPID")
+    private String wpid;
+
+    @TableField("WPNAME")
+    private String wpname;
+
+    @TableField("LOCATION")
+    private String location;
+
+    @TableField("YEAR")
+    private Integer year;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("STOPRTIMES")
+    private Long stoprtimes;
+
+    @TableField("WTHOURS")
+    private Double wthours;
+
+
+}

+ 53 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wpmttrandmtbmonth.java

@@ -0,0 +1,53 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WPMTTRANDMTBMONTH")
+public class Wpmttrandmtbmonth extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WPID")
+    private String wpid;
+
+    @TableField("WPNAME")
+    private String wpname;
+
+    @TableField("LOCATION")
+    private String location;
+
+    @TableField("YEAR")
+    private Integer year;
+
+    @TableField("MONTH")
+    private Integer month;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("STOPRTIMES")
+    private Long stoprtimes;
+
+    @TableField("WTHOURS")
+    private Double wthours;
+
+
+}

+ 47 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wtmttrandmtbfday.java

@@ -0,0 +1,47 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WTMTTRANDMTBFDAY")
+public class Wtmttrandmtbfday extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WTID")
+    private String wtid;
+
+    @TableField("WPNAME")
+    private String wpname;
+
+    @TableField("RECORDDATE")
+    private Date recorddate;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("STOPRTIMES")
+    private Double stoprtimes;
+
+
+}

+ 47 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wtmttrandmtbfmonth.java

@@ -0,0 +1,47 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WTMTTRANDMTBFMONTH")
+public class Wtmttrandmtbfmonth extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WTID")
+    private String wtid;
+
+    @TableField("WPNAME")
+    private String wpname;
+
+    @TableField("YEAR")
+    private Integer year;
+
+    @TableField("MONTH")
+    private Integer month;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("STOPRTIMES")
+    private Double stoprtimes;
+
+
+}

+ 45 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/model/auto/Wtmttrandmtbfyear.java

@@ -0,0 +1,45 @@
+package com.gyee.healthmanagementhistroy.model.auto;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WTMTTRANDMTBFYEAR")
+public class Wtmttrandmtbfyear extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("ID")
+    private String id;
+
+    @TableField("WTID")
+    private String wtid;
+
+    @TableField("WPNAME")
+    private String wpname;
+
+    @TableField("YEAR")
+    private Integer year;
+
+    @TableField("STOPHOURS")
+    private Double stophours;
+
+    @TableField("STOPRTIMES")
+    private Double stoprtimes;
+
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IEvaluationdatasourceService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Evaluationdatasource;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IEvaluationdatasourceService extends IService<Evaluationdatasource> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IFaulthistoryService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Faulthistory;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IFaulthistoryService extends IService<Faulthistory> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IFaultsnapService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Faultsnap;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IFaultsnapService extends IService<Faultsnap> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/ILineService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Line;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface ILineService extends IService<Line> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IProjectService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Project;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IProjectService extends IService<Project> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IShutdowneventService.java

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

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindpowerinfodayService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windpowerinfoday;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWindpowerinfodayService extends IService<Windpowerinfoday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindpowerstationService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windpowerstation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWindpowerstationService extends IService<Windpowerstation> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindturbineService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windturbine;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWindturbineService extends IService<Windturbine> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWindturbineinfodayService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windturbineinfoday;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWindturbineinfodayService extends IService<Windturbineinfoday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWpmttrandmtbfdayService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbfday;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWpmttrandmtbfdayService extends IService<Wpmttrandmtbfday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWpmttrandmtbfyearService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbfyear;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWpmttrandmtbfyearService extends IService<Wpmttrandmtbfyear> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWpmttrandmtbmonthService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbmonth;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWpmttrandmtbmonthService extends IService<Wpmttrandmtbmonth> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWtmttrandmtbfdayService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfday;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWtmttrandmtbfdayService extends IService<Wtmttrandmtbfday> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWtmttrandmtbfmonthService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfmonth;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWtmttrandmtbfmonthService extends IService<Wtmttrandmtbfmonth> {
+
+}

+ 16 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/IWtmttrandmtbfyearService.java

@@ -0,0 +1,16 @@
+package com.gyee.healthmanagementhistroy.service.auto;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfyear;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+public interface IWtmttrandmtbfyearService extends IService<Wtmttrandmtbfyear> {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/EvaluationdatasourceServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Evaluationdatasource;
+import com.gyee.healthmanagementhistroy.mapper.auto.EvaluationdatasourceMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IEvaluationdatasourceService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class EvaluationdatasourceServiceImpl extends ServiceImpl<EvaluationdatasourceMapper, Evaluationdatasource> implements IEvaluationdatasourceService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/FaulthistoryServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Faulthistory;
+import com.gyee.healthmanagementhistroy.mapper.auto.FaulthistoryMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IFaulthistoryService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class FaulthistoryServiceImpl extends ServiceImpl<FaulthistoryMapper, Faulthistory> implements IFaulthistoryService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/FaultsnapServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Faultsnap;
+import com.gyee.healthmanagementhistroy.mapper.auto.FaultsnapMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IFaultsnapService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class FaultsnapServiceImpl extends ServiceImpl<FaultsnapMapper, Faultsnap> implements IFaultsnapService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/LineServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Line;
+import com.gyee.healthmanagementhistroy.mapper.auto.LineMapper;
+import com.gyee.healthmanagementhistroy.service.auto.ILineService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements ILineService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/ProjectServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Project;
+import com.gyee.healthmanagementhistroy.mapper.auto.ProjectMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IProjectService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements IProjectService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/ShutdowneventServiceImpl.java

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

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindpowerinfodayServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windpowerinfoday;
+import com.gyee.healthmanagementhistroy.mapper.auto.WindpowerinfodayMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWindpowerinfodayService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WindpowerinfodayServiceImpl extends ServiceImpl<WindpowerinfodayMapper, Windpowerinfoday> implements IWindpowerinfodayService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindpowerstationServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windpowerstation;
+import com.gyee.healthmanagementhistroy.mapper.auto.WindpowerstationMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWindpowerstationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WindpowerstationServiceImpl extends ServiceImpl<WindpowerstationMapper, Windpowerstation> implements IWindpowerstationService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindturbineServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windturbine;
+import com.gyee.healthmanagementhistroy.mapper.auto.WindturbineMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWindturbineService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WindturbineServiceImpl extends ServiceImpl<WindturbineMapper, Windturbine> implements IWindturbineService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WindturbineinfodayServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Windturbineinfoday;
+import com.gyee.healthmanagementhistroy.mapper.auto.WindturbineinfodayMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWindturbineinfodayService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WindturbineinfodayServiceImpl extends ServiceImpl<WindturbineinfodayMapper, Windturbineinfoday> implements IWindturbineinfodayService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WpmttrandmtbfdayServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbfday;
+import com.gyee.healthmanagementhistroy.mapper.auto.WpmttrandmtbfdayMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWpmttrandmtbfdayService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WpmttrandmtbfdayServiceImpl extends ServiceImpl<WpmttrandmtbfdayMapper, Wpmttrandmtbfday> implements IWpmttrandmtbfdayService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WpmttrandmtbfyearServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbfyear;
+import com.gyee.healthmanagementhistroy.mapper.auto.WpmttrandmtbfyearMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWpmttrandmtbfyearService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WpmttrandmtbfyearServiceImpl extends ServiceImpl<WpmttrandmtbfyearMapper, Wpmttrandmtbfyear> implements IWpmttrandmtbfyearService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WpmttrandmtbmonthServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wpmttrandmtbmonth;
+import com.gyee.healthmanagementhistroy.mapper.auto.WpmttrandmtbmonthMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWpmttrandmtbmonthService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WpmttrandmtbmonthServiceImpl extends ServiceImpl<WpmttrandmtbmonthMapper, Wpmttrandmtbmonth> implements IWpmttrandmtbmonthService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WtmttrandmtbfdayServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfday;
+import com.gyee.healthmanagementhistroy.mapper.auto.WtmttrandmtbfdayMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWtmttrandmtbfdayService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WtmttrandmtbfdayServiceImpl extends ServiceImpl<WtmttrandmtbfdayMapper, Wtmttrandmtbfday> implements IWtmttrandmtbfdayService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WtmttrandmtbfmonthServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfmonth;
+import com.gyee.healthmanagementhistroy.mapper.auto.WtmttrandmtbfmonthMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWtmttrandmtbfmonthService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WtmttrandmtbfmonthServiceImpl extends ServiceImpl<WtmttrandmtbfmonthMapper, Wtmttrandmtbfmonth> implements IWtmttrandmtbfmonthService {
+
+}

+ 20 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/auto/impl/WtmttrandmtbfyearServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.healthmanagementhistroy.service.auto.impl;
+
+import com.gyee.healthmanagementhistroy.model.auto.Wtmttrandmtbfyear;
+import com.gyee.healthmanagementhistroy.mapper.auto.WtmttrandmtbfyearMapper;
+import com.gyee.healthmanagementhistroy.service.auto.IWtmttrandmtbfyearService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-02-14
+ */
+@Service
+public class WtmttrandmtbfyearServiceImpl extends ServiceImpl<WtmttrandmtbfyearMapper, Wtmttrandmtbfyear> implements IWtmttrandmtbfyearService {
+
+}

+ 641 - 0
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/service/mttrmtbf/MTTRMTBFTaskService.java

@@ -0,0 +1,641 @@
+package com.gyee.healthmanagementhistroy.service.mttrmtbf;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.util.BigDecimalUtils;
+import com.gyee.common.util.DateUtils;
+import com.gyee.healthmanagementhistroy.init.CacheContext;
+import com.gyee.healthmanagementhistroy.model.auto.*;
+import com.gyee.healthmanagementhistroy.service.auto.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.math.BigDecimal;
+import java.util.*;
+import java.util.stream.Collectors;
+
+/**
+ * @ClassName : MTTRMTBFTaskService
+ * @Author : xieshengjie
+ * @Date: 2021/6/21 19:27
+ * @Description : 生成mttrmtbf Service
+ */
+@Service
+public class MTTRMTBFTaskService {
+
+    @Autowired
+    private IFaultsnapService faultsnapService;
+    @Autowired
+    private IFaulthistoryService faulthistoryService;
+    @Autowired
+    private IWindpowerinfodayService windpowerinfodayService;
+    @Autowired
+    private IWpmttrandmtbfdayService wpmttrandmtbfdayService;
+    @Autowired
+    private IWpmttrandmtbmonthService wpmttrandmtbmonthService;
+    @Autowired
+    private IWpmttrandmtbfyearService wpmttrandmtbfyearService;
+    @Autowired
+    private IWindturbineinfodayService windturbineinfodayService;
+    @Autowired
+    private IWtmttrandmtbfdayService wtmttrandmtbfdayService;
+    @Autowired
+    private IWtmttrandmtbfmonthService wtmttrandmtbfmonthService;
+    @Autowired
+    private IWtmttrandmtbfyearService wtmttrandmtbfyearService;
+    @Autowired
+    private IShutdowneventService shutdowneventService;
+    /**
+     * 保存日
+     */
+    public void saveWpMttrAndMtbfDay(String beginDate,String endDate){
+        List<String> days = DateUtils.getDays(beginDate, endDate);
+        for (String day : days) {
+            Date date = DateUtils.parseDate(day);
+
+            Map<String,Object> delMap = new HashMap<>();
+            delMap.put("recorddate",date);
+            wpmttrandmtbfdayService.removeByMap(delMap);
+            wtmttrandmtbfdayService.removeByMap(delMap);
+            //  取一天windpowerinfoday 的数据
+            QueryWrapper<Windpowerinfoday> infodayQw = new QueryWrapper<>();
+            infodayQw.eq("recorddate",date);
+            List<Windpowerinfoday> indodayList = windpowerinfodayService.list(infodayQw);
+            //  取一天windtrubineinfoday 的数据
+            QueryWrapper<Windturbineinfoday> infodaywtQw = new QueryWrapper<>();
+            infodaywtQw.eq("recorddate",date);
+            List<Windturbineinfoday> infodaywtList = windturbineinfodayService.list(infodaywtQw);
+
+
+            QueryWrapper<Shutdownevent> shutdowneventQueryWrapper = new QueryWrapper<>();
+            Date addDay = DateUtils.addDays(date, 1);
+            shutdowneventQueryWrapper.ge("stoptime",date).lt("stoptime",addDay);
+            List<Shutdownevent> historyList = shutdowneventService.list(shutdowneventQueryWrapper);
+
+
+//            //   取出所有故障的snapid
+//            QueryWrapper<Faultsnap> snapQw = new QueryWrapper<>();
+//            snapQw.eq("category1","FJ").eq("category2","GZ");
+//            List<Faultsnap> snapList = faultsnapService.list(snapQw);
+//            Map<BigDecimal,Faultsnap> snapMap = new HashMap<>();
+//            snapList.stream().forEach(i->{
+//                snapMap.put(i.getId(),i);
+//            });
+//
+//            List<BigDecimal> snapids = faultsnapService.list(snapQw).stream().map(i -> i.getId()).collect(Collectors.toList());
+//
+//            //取出一天故障流水记录
+//            QueryWrapper<Faulthistory> historyQw = new QueryWrapper<>();
+////            historyQw.like("faulttime",date);
+//            Date addDay = DateUtils.addDays(date, 1);
+//            historyQw.ge("faulttime",date).lt("faulttime",addDay);
+//            historyQw.in("snapid",snapids);
+//            List<Faulthistory> historyList = faulthistoryService.list(historyQw);
+            double fdFaulttime = 0;
+            long fdFaultcount = 0;
+            double fdWthours = 0;
+            double gfFaulttime = 0;
+            long gfFaultcount = 0;
+            double gfWthours = 0;
+            double zFaulttime = 0;
+            long zFaultcount = 0;
+            double zWthours = 0;
+            //保存日场站级别MTTR MTBF
+            for (Windpowerstation windpowerstation : CacheContext.wplist) {
+                Windpowerinfoday windpowerinfoday = indodayList.stream().filter(i -> i.getForeignkeyid().equals(windpowerstation.getId())).findFirst().isPresent()?indodayList.stream().filter(i -> i.getForeignkeyid().equals(windpowerstation.getId())).findFirst().get():null;
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfoday)){
+                    faulttime = windpowerinfoday.getFaulttime();
+                }
+//                long faultcount = historyList.stream().filter(i -> snapMap.get(i.getSnapid()).getStationid().equals(windpowerstation.getId())).count();
+                long faultcount = historyList.stream().filter(i -> i.getWindpowerstationid().equals(windpowerstation.getId())).count();
+                zFaulttime += faulttime;
+                zFaultcount += faultcount;
+                zWthours += BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2).doubleValue();
+                if (windpowerstation.getId().endsWith("FDC")){
+                    fdFaulttime += faulttime;
+                    fdFaultcount += faultcount;
+                    fdWthours += BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2).doubleValue();
+                }else {
+                    gfFaulttime += faulttime;
+                    gfFaultcount += faultcount;
+                    gfWthours += BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2).doubleValue();
+                }
+                Wpmttrandmtbfday w = new Wpmttrandmtbfday();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(windpowerstation.getId());
+                w.setWpname(windpowerstation.getName());
+                w.setLocation("windpower");
+                w.setRecorddate(date);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2).doubleValue());
+                wpmttrandmtbfdayService.save(w);
+            }
+            for (Project project : CacheContext.projectList) {
+                Windpowerinfoday windpowerinfoday = indodayList.stream().filter(i -> i.getForeignkeyid().equals(project.getId())).findFirst().isPresent()?indodayList.stream().filter(i -> i.getForeignkeyid().equals(project.getId())).findFirst().get():null;
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfoday)){
+                    faulttime = windpowerinfoday.getFaulttime();
+                }
+//                long faultcount = historyList.stream().filter(i -> snapMap.get(i.getSnapid()).getProjectid().equals(project.getId())).count();
+                long faultcount = historyList.stream().filter(i -> i.getProjectid().equals(project.getId())).count();
+
+                Wpmttrandmtbfday w = new Wpmttrandmtbfday();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(project.getId());
+                w.setWpname(project.getName());
+                w.setLocation("project");
+                w.setRecorddate(date);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(new BigDecimal(project.getQuantity()),new BigDecimal(24),2).doubleValue());
+                wpmttrandmtbfdayService.save(w);
+            }
+            for (Line line : CacheContext.lineList) {
+                Windpowerinfoday windpowerinfoday = indodayList.stream().filter(i -> i.getForeignkeyid().equals(line.getId())).findFirst().isPresent()?indodayList.stream().filter(i -> i.getForeignkeyid().equals(line.getId())).findFirst().get():null;
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfoday)){
+                    faulttime = windpowerinfoday.getFaulttime();
+                }
+                long faultcount = historyList.stream().filter(i -> CacheContext.wmap.get(i.getWindturbineid()).getLineid().equals(line.getId())).count();
+
+                Wpmttrandmtbfday w = new Wpmttrandmtbfday();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(line.getId());
+                w.setWpname(line.getName());
+                w.setLocation("line");
+                w.setRecorddate(date);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(new BigDecimal(line.getQuantity()),new BigDecimal(24),2).doubleValue());
+                wpmttrandmtbfdayService.save(w);
+            }
+            // 保存日风机级别MTTR MTBF
+            for (Windturbine windturbine : CacheContext.wtls) {
+                Windturbineinfoday windturbineinfoday = infodaywtList.stream().filter(i -> i.getWindturbineid().equals(windturbine.getId())).findFirst().isPresent()?infodaywtList.stream().filter(i -> i.getWindturbineid().equals(windturbine.getId())).findFirst().get():null;
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windturbineinfoday)){
+                    faulttime = windturbineinfoday.getFaulttime();
+                }
+                double faultcount = historyList.stream().filter(i -> i.getWindturbineid().equals(windturbine.getId())).count();
+                Wtmttrandmtbfday w = new Wtmttrandmtbfday();
+                w.setId(StringUtils.getUUID());
+                w.setWtid(windturbine.getId());
+                w.setWpname(windturbine.getName());
+                w.setRecorddate(date);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                wtmttrandmtbfdayService.save(w);
+            }
+
+            Wpmttrandmtbfday fd = new Wpmttrandmtbfday();
+            fd.setId(StringUtils.getUUID());
+            fd.setWpid("-1");
+            fd.setWpname("风电");
+            fd.setLocation("wind");
+            fd.setRecorddate(date);
+            fd.setStophours(fdFaulttime);
+            fd.setStoprtimes(fdFaultcount);
+            fd.setWthours(fdWthours);
+            wpmttrandmtbfdayService.save(fd);
+
+            Wpmttrandmtbfday gf = new Wpmttrandmtbfday();
+            gf.setId(StringUtils.getUUID());
+            gf.setWpid("-2");
+            gf.setWpname("光伏");
+            gf.setLocation("light");
+            gf.setRecorddate(date);
+            gf.setStophours(gfFaulttime);
+            gf.setStoprtimes(gfFaultcount);
+            gf.setWthours(gfWthours);
+            wpmttrandmtbfdayService.save(gf);
+
+            Wpmttrandmtbfday z = new Wpmttrandmtbfday();
+            z.setId(StringUtils.getUUID());
+            z.setWpid("0");
+            z.setWpname("全省");
+            z.setLocation("entire");
+            z.setRecorddate(date);
+            z.setStophours(zFaulttime);
+            z.setStoprtimes(zFaultcount);
+            z.setWthours(zWthours);
+            wpmttrandmtbfdayService.save(z);
+
+        }
+    }
+
+
+
+    /**
+     * 保存月
+     */
+    public void saveWpMttrAndMtbMonth(String beginDate,String endDate){
+        List<String> days = DateUtils.getDays(beginDate, endDate);
+        for (String day : days) {
+            Date date = DateUtils.parseDate(day);
+//            Date monthLast = DateUtils.getMonthLast(date);
+            Date monthLast = date;
+            Date monthFirst = DateUtils.getMonthFirst(date);
+            int year = DateUtils.getYear(date);
+            int month = DateUtils.getMonth(date);
+            Map<String,Object> delMap = new HashMap<>();
+            delMap.put("year",year);
+            delMap.put("month",month);
+            wpmttrandmtbmonthService.removeByMap(delMap);
+            wtmttrandmtbfmonthService.removeByMap(delMap);
+            //  取一月windpowerinfoday 的数据
+            QueryWrapper<Windpowerinfoday> infodayQw = new QueryWrapper<>();
+            infodayQw.ge("recorddate",monthFirst);
+            infodayQw.le("recorddate",monthLast);
+            List<Windpowerinfoday> indodayList = windpowerinfodayService.list(infodayQw);
+
+            QueryWrapper<Shutdownevent> shutdowneventQueryWrapper = new QueryWrapper<>();
+            Date addDay = DateUtils.addDays(date, 1);
+            shutdowneventQueryWrapper.ge("stoptime",monthFirst).lt("stoptime",addDay);
+            List<Shutdownevent> historyList = shutdowneventService.list(shutdowneventQueryWrapper);
+
+//            //取出所有故障的snapid
+//            QueryWrapper<Faultsnap> snapQw = new QueryWrapper<>();
+//            snapQw.eq("category1","FJ").eq("category2","GZ");
+//            List<Faultsnap> snapList = faultsnapService.list(snapQw);
+//            Map<BigDecimal,Faultsnap> snapMap = new HashMap<>();
+//            snapList.stream().forEach(i->{
+//                snapMap.put(i.getId(),i);
+//            });
+//
+//            List<BigDecimal> snapids = faultsnapService.list(snapQw).stream().map(i -> i.getId()).collect(Collectors.toList());
+//
+//            //取出一月故障流水记录
+//            QueryWrapper<Faulthistory> historyQw = new QueryWrapper<>();
+////            historyQw.like("faulttime",date);
+////            Date addDay = DateUtils.addDays(date, 1);
+//            historyQw.ge("faulttime",monthFirst).le("faulttime",monthLast);
+//            historyQw.in("snapid",snapids);
+//            List<Faulthistory> historyList = faulthistoryService.list(historyQw);
+            double fdFaulttime = 0;
+            long fdFaultcount = 0;
+            double fdWthours = 0;
+            double gfFaulttime = 0;
+            long gfFaultcount = 0;
+            double gfWthours = 0;
+            double zFaulttime = 0;
+            long zFaultcount = 0;
+            double zWthours = 0;
+            //保存月场站级别MTTR MTBF
+            for (Windpowerstation windpowerstation : CacheContext.wplist) {
+                List<Windpowerinfoday> windpowerinfodayList = indodayList.stream().filter(i -> i.getForeignkeyid().equals(windpowerstation.getId())).collect(Collectors.toList());
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfodayList)){
+                    faulttime = windpowerinfodayList.stream().mapToDouble(Windpowerinfoday::getFaulttime).sum();
+                }
+                long faultcount = historyList.stream().filter(i -> i.getWindpowerstationid().equals(windpowerstation.getId())).count();
+                zFaulttime += faulttime;
+                zFaultcount += faultcount;
+                zWthours += BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(getDays(DateUtils.toDate1(monthFirst),DateUtils.toDate1(monthLast)).size()),2).doubleValue();
+                if (windpowerstation.getId().endsWith("FDC")){
+                    fdFaulttime += faulttime;
+                    fdFaultcount += faultcount;
+                    fdWthours += BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(getDays(DateUtils.toDate1(monthFirst),DateUtils.toDate1(monthLast)).size()),2).doubleValue();
+                }else {
+                    gfFaulttime += faulttime;
+                    gfFaultcount += faultcount;
+                    gfWthours += BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(getDays(DateUtils.toDate1(monthFirst),DateUtils.toDate1(monthLast)).size()),2).doubleValue();
+                }
+                Wpmttrandmtbmonth w = new Wpmttrandmtbmonth();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(windpowerstation.getId());
+                w.setWpname(windpowerstation.getName());
+                w.setLocation("windpower");
+                w.setYear(year);
+                w.setMonth(month);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(getDays(DateUtils.toDate1(monthFirst),DateUtils.toDate1(monthLast)).size()),2).doubleValue());
+                wpmttrandmtbmonthService.save(w);
+            }
+            for (Project project : CacheContext.projectList) {
+                List<Windpowerinfoday> windpowerinfodayList = indodayList.stream().filter(i -> i.getForeignkeyid().equals(project.getId())).collect(Collectors.toList());
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfodayList)){
+                    faulttime = windpowerinfodayList.stream().mapToDouble(Windpowerinfoday::getFaulttime).sum();
+                }
+                long faultcount = historyList.stream().filter(i -> i.getProjectid().equals(project.getId())).count();
+
+                Wpmttrandmtbmonth w = new Wpmttrandmtbmonth();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(project.getId());
+                w.setWpname(project.getName());
+                w.setLocation("project");
+                w.setYear(year);
+                w.setMonth(month);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(BigDecimalUtils.multiply(new BigDecimal(project.getQuantity()),new BigDecimal(24),2),new BigDecimal(getDays(DateUtils.toDate1(monthFirst),DateUtils.toDate1(monthLast)).size()),2).doubleValue());
+
+                wpmttrandmtbmonthService.save(w);
+            }
+            for (Line line : CacheContext.lineList) {
+                List<Windpowerinfoday> windpowerinfodayList = indodayList.stream().filter(i -> i.getForeignkeyid().equals(line.getId())).collect(Collectors.toList());
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfodayList)){
+                    faulttime = windpowerinfodayList.stream().mapToDouble(Windpowerinfoday::getFaulttime).sum();
+                }
+//                long faultcount = historyList.stream().filter(i -> i.().equals(line.getId())).count();
+                long faultcount = historyList.stream().filter(i -> CacheContext.wmap.get(i.getWindturbineid()).getLineid().equals(line.getId())).count();
+
+
+                Wpmttrandmtbmonth w = new Wpmttrandmtbmonth();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(line.getId());
+                w.setWpname(line.getName());
+                w.setLocation("line");
+                w.setYear(year);
+                w.setMonth(month);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(BigDecimalUtils.multiply(new BigDecimal(line.getQuantity()),new BigDecimal(24),2),new BigDecimal(getDays(DateUtils.toDate1(monthFirst),DateUtils.toDate1(monthLast)).size()),2).doubleValue());
+
+                wpmttrandmtbmonthService.save(w);
+            }
+            // 保存月风机级别MTTR MTBF
+            for (Windturbine windturbine : CacheContext.wtls) {
+                //  取一月windtrubineinfoday 的数据
+                QueryWrapper<Windturbineinfoday> infodaywtQw = new QueryWrapper<>();
+                infodaywtQw.select("windturbineid,sum(faulttime) faulttime");
+                infodaywtQw.ge("recorddate",monthFirst);
+                infodaywtQw.le("recorddate",monthLast);
+                infodaywtQw.eq("windturbineid",windturbine.getId());
+                infodaywtQw.groupBy("windturbineid");
+                List<Windturbineinfoday> infodaywtList = windturbineinfodayService.list(infodaywtQw);
+                Optional<Windturbineinfoday> first = infodaywtList.stream().findFirst();
+                double faulttime = 0;
+                if (first.isPresent()){
+                    faulttime = first.get().getFaulttime();
+                }
+//                double faultcount = historyList.stream().filter(i -> snapMap.get(i.getSnapid()).getWindturbineid().equals(windturbine.getId())).count();
+                double faultcount = historyList.stream().filter(i -> i.getWindturbineid().equals(windturbine.getId())).count();
+                Wtmttrandmtbfmonth w = new Wtmttrandmtbfmonth();
+                w.setId(StringUtils.getUUID());
+                w.setWtid(windturbine.getId());
+                w.setWpname(windturbine.getName());
+                w.setYear(year);
+                w.setMonth(month);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                wtmttrandmtbfmonthService.save(w);
+            }
+
+
+            Wpmttrandmtbmonth fd = new Wpmttrandmtbmonth();
+            fd.setId(StringUtils.getUUID());
+            fd.setWpid("-1");
+            fd.setWpname("风电");
+            fd.setLocation("wind");
+            fd.setYear(year);
+            fd.setMonth(month);
+            fd.setStophours(fdFaulttime);
+            fd.setStoprtimes(fdFaultcount);
+            fd.setWthours(fdWthours);
+            wpmttrandmtbmonthService.save(fd);
+
+            Wpmttrandmtbmonth gf = new Wpmttrandmtbmonth();
+            gf.setId(StringUtils.getUUID());
+            gf.setWpid("-2");
+            gf.setWpname("光伏");
+            gf.setLocation("light");
+            gf.setYear(year);
+            gf.setMonth(month);
+            gf.setStophours(gfFaulttime);
+            gf.setStoprtimes(gfFaultcount);
+            gf.setWthours(gfWthours);
+            wpmttrandmtbmonthService.save(gf);
+
+            Wpmttrandmtbmonth z = new Wpmttrandmtbmonth();
+            z.setId(StringUtils.getUUID());
+            z.setWpid("0");
+            z.setWpname("全省");
+            z.setLocation("entire");
+            z.setYear(year);
+            z.setMonth(month);
+            z.setStophours(zFaulttime);
+            z.setStoprtimes(zFaultcount);
+            z.setWthours(zWthours);
+            wpmttrandmtbmonthService.save(z);
+
+        }
+    }
+    /**
+     * 保存年
+     */
+    public void saveWpMttrAndMtbfYear(String beginDate,String endDate){
+        List<String> days = DateUtils.getDays(beginDate, endDate);
+        for (String day : days) {
+            Date date = DateUtils.parseDate(day);
+            int year = DateUtils.getYear(date);
+//            Date monthLast = DateUtils.getMonthLast(date);
+            Date yearLast = date;
+            Date yearFirst = DateUtils.getYearFirst(year);
+
+            Map<String,Object> delMap = new HashMap<>();
+            delMap.put("year",year);
+            wpmttrandmtbfyearService.removeByMap(delMap);
+            wtmttrandmtbfyearService.removeByMap(delMap);
+            //  取一年windpowerinfoday 的数据
+            QueryWrapper<Windpowerinfoday> infodayQw = new QueryWrapper<>();
+            infodayQw.ge("recorddate",yearFirst);
+            infodayQw.le("recorddate",yearLast);
+            List<Windpowerinfoday> indodayList = windpowerinfodayService.list(infodayQw);
+
+
+            QueryWrapper<Shutdownevent> shutdowneventQueryWrapper = new QueryWrapper<>();
+            Date addDay = DateUtils.addDays(date, 1);
+            shutdowneventQueryWrapper.ge("stoptime",yearFirst).lt("stoptime",addDay);
+            List<Shutdownevent> historyList = shutdowneventService.list(shutdowneventQueryWrapper);
+
+//            //取出所有故障的snapid
+//            QueryWrapper<Faultsnap> snapQw = new QueryWrapper<>();
+//            snapQw.eq("category1","FJ").eq("category2","GZ");
+//            List<Faultsnap> snapList = faultsnapService.list(snapQw);
+//            Map<BigDecimal,Faultsnap> snapMap = new HashMap<>();
+//            snapList.stream().forEach(i->{
+//                snapMap.put(i.getId(),i);
+//            });
+//
+//            List<BigDecimal> snapids = faultsnapService.list(snapQw).stream().map(i -> i.getId()).collect(Collectors.toList());
+//
+//            //取出一年故障流水记录
+//            QueryWrapper<Faulthistory> historyQw = new QueryWrapper<>();
+////            historyQw.like("faulttime",date);
+////            Date addDay = DateUtils.addDays(date, 1);
+//            historyQw.ge("faulttime",yearFirst).le("faulttime",yearLast);
+//            historyQw.in("snapid",snapids);
+//            List<Faulthistory> historyList = faulthistoryService.list(historyQw);
+            double fdFaulttime = 0;
+            long fdFaultcount = 0;
+            double fdWthours = 0;
+            double gfFaulttime = 0;
+            long gfFaultcount = 0;
+            double gfWthours = 0;
+            double zFaulttime = 0;
+            long zFaultcount = 0;
+            double zWthours = 0;
+            int size = getDays(DateUtils.toDate1(yearFirst), DateUtils.toDate1(yearLast)).size();
+
+            //保存年场站级别MTTR MTBF
+            for (Windpowerstation windpowerstation : CacheContext.wplist) {
+                List<Windpowerinfoday> windpowerinfodayList = indodayList.stream().filter(i -> i.getForeignkeyid().equals(windpowerstation.getId())).collect(Collectors.toList());
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfodayList)){
+                    faulttime = windpowerinfodayList.stream().mapToDouble(Windpowerinfoday::getFaulttime).sum();
+                }
+                long faultcount = historyList.stream().filter(i -> i.getWindpowerstationid().equals(windpowerstation.getId())).count();
+                zFaulttime += faulttime;
+                zFaultcount += faultcount;
+                zWthours += BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(size),2).doubleValue();
+                if (windpowerstation.getId().endsWith("FDC")){
+                    fdFaulttime += faulttime;
+                    fdFaultcount += faultcount;
+                    fdWthours += BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(size),2).doubleValue();
+                }else {
+                    gfFaulttime += faulttime;
+                    gfFaultcount += faultcount;
+                    gfWthours += BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(size),2).doubleValue();
+                }
+                Wpmttrandmtbfyear w = new Wpmttrandmtbfyear();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(windpowerstation.getId());
+                w.setWpname(windpowerstation.getName());
+                w.setLocation("windpower");
+                w.setYear(year);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(BigDecimalUtils.multiply(windpowerstation.getQuantity(),new BigDecimal(24),2),new BigDecimal(size),2).doubleValue());
+                wpmttrandmtbfyearService.save(w);
+            }
+            for (Project project : CacheContext.projectList) {
+                List<Windpowerinfoday> windpowerinfodayList = indodayList.stream().filter(i -> i.getForeignkeyid().equals(project.getId())).collect(Collectors.toList());
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfodayList)){
+                    faulttime = windpowerinfodayList.stream().mapToDouble(Windpowerinfoday::getFaulttime).sum();
+                }
+                long faultcount = historyList.stream().filter(i -> i.getProjectid().equals(project.getId())).count();
+
+                Wpmttrandmtbfyear w = new Wpmttrandmtbfyear();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(project.getId());
+                w.setWpname(project.getName());
+                w.setLocation("project");
+                w.setYear(year);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(BigDecimalUtils.multiply(new BigDecimal(project.getQuantity()),new BigDecimal(24),2),new BigDecimal(size),2).doubleValue());
+
+                wpmttrandmtbfyearService.save(w);
+            }
+            for (Line line : CacheContext.lineList) {
+                List<Windpowerinfoday> windpowerinfodayList = indodayList.stream().filter(i -> i.getForeignkeyid().equals(line.getId())).collect(Collectors.toList());
+                double faulttime = 0;
+                if (StringUtils.isNotNull(windpowerinfodayList)){
+                    faulttime = windpowerinfodayList.stream().mapToDouble(Windpowerinfoday::getFaulttime).sum();
+                }
+//                long faultcount = historyList.stream().filter(i -> snapMap.get(i.getSnapid()).getLineid().equals(line.getId())).count();
+                long faultcount = historyList.stream().filter(i -> CacheContext.wmap.get(i.getWindturbineid()).getLineid().equals(line.getId())).count();
+
+                Wpmttrandmtbfyear w = new Wpmttrandmtbfyear();
+                w.setId(StringUtils.getUUID());
+                w.setWpid(line.getId());
+                w.setWpname(line.getName());
+                w.setLocation("line");
+                w.setYear(year);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                w.setWthours(BigDecimalUtils.multiply(BigDecimalUtils.multiply(new BigDecimal(line.getQuantity()),new BigDecimal(24),2),new BigDecimal(size),2).doubleValue());
+
+                wpmttrandmtbfyearService.save(w);
+            }
+
+            // 保存年风机级别MTTR MTBF
+            for (Windturbine windturbine : CacheContext.wtls) {
+                //  取一年windtrubineinfoday 的数据
+                QueryWrapper<Windturbineinfoday> infoyearwtQw = new QueryWrapper<>();
+                infoyearwtQw.select("windturbineid,sum(faulttime) faulttime");
+                infoyearwtQw.ge("recorddate",yearFirst);
+                infoyearwtQw.le("recorddate",yearLast);
+                infoyearwtQw.eq("windturbineid",windturbine.getId());
+                infoyearwtQw.groupBy("windturbineid");
+                List<Windturbineinfoday> infoyearwtList = windturbineinfodayService.list(infoyearwtQw);
+
+                Optional<Windturbineinfoday> first = infoyearwtList.stream().findFirst();
+                double faulttime = 0;
+                if (first.isPresent()){
+                    faulttime = first.get().getFaulttime();
+                }
+//                double faultcount = historyList.stream().filter(i -> snapMap.get(i.getSnapid()).getWindturbineid().equals(windturbine.getId())).count();
+                double faultcount = historyList.stream().filter(i -> i.getWindturbineid().equals(windturbine.getId())).count();
+                Wtmttrandmtbfyear w = new Wtmttrandmtbfyear();
+                w.setId(StringUtils.getUUID());
+                w.setWtid(windturbine.getId());
+                w.setWpname(windturbine.getName());
+                w.setYear(year);
+                w.setStophours(faulttime);
+                w.setStoprtimes(faultcount);
+                wtmttrandmtbfyearService.save(w);
+            }
+
+
+            Wpmttrandmtbfyear fd = new Wpmttrandmtbfyear();
+            fd.setId(StringUtils.getUUID());
+            fd.setWpid("-1");
+            fd.setWpname("风电");
+            fd.setLocation("wind");
+            fd.setYear(year);
+            fd.setStophours(fdFaulttime);
+            fd.setStoprtimes(fdFaultcount);
+            fd.setWthours(fdWthours);
+            wpmttrandmtbfyearService.save(fd);
+
+            Wpmttrandmtbfyear gf = new Wpmttrandmtbfyear();
+            gf.setId(StringUtils.getUUID());
+            gf.setWpid("-2");
+            gf.setWpname("光伏");
+            gf.setLocation("light");
+            gf.setYear(year);
+            gf.setStophours(gfFaulttime);
+            gf.setStoprtimes(gfFaultcount);
+            gf.setWthours(gfWthours);
+            wpmttrandmtbfyearService.save(gf);
+
+            Wpmttrandmtbfyear z = new Wpmttrandmtbfyear();
+            z.setId(StringUtils.getUUID());
+            z.setWpid("0");
+            z.setWpname("全省");
+            z.setLocation("entire");
+            z.setYear(year);
+            z.setStophours(zFaulttime);
+            z.setStoprtimes(zFaultcount);
+            z.setWthours(zWthours);
+            wpmttrandmtbfyearService.save(z);
+
+        }
+    }
+
+    /**
+     * 获取两日期间日期list
+     *
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    public static List<String> getDays(String beginDate, String endDate) {
+        List<String> days = null;
+        if (StringUtils.isNotEmpty(beginDate) && StringUtils.isNotEmpty(endDate)) {
+            days = DateUtils.getDays(beginDate, endDate);
+        } else {
+            days = new ArrayList<>();
+            days.add(DateUtils.getYesterdayStr("yyyy-MM-dd"));
+        }
+        return days;
+    }
+}

+ 23 - 2
histroy/healthmanagement-histroy-hb/src/main/java/com/gyee/healthmanagementhistroy/task/HealthreportTask.java

@@ -1,8 +1,12 @@
 package com.gyee.healthmanagementhistroy.task;
 
+
+
 import com.gyee.common.util.DateUtils;
 import com.gyee.healthmanagementhistroy.service.evaluate.EvaluateService;
 import com.gyee.healthmanagementhistroy.service.healthreport.HealthReportService;
+import com.gyee.healthmanagementhistroy.service.mttrmtbf.MTTRMTBFTaskService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.scheduling.annotation.Scheduled;
@@ -24,12 +28,15 @@ public class HealthreportTask {
     @Resource
     private EvaluateService evaluateService;
 
+    @Autowired
+    private MTTRMTBFTaskService mttrmtbfTaskService;
+
 
     //3.添加定时任务
     /**
      * 等级评估调度
      */
-    @Scheduled(cron = "0 0 8 * * ?")
+   // @Scheduled(cron = "0 0 8 * * ?")
     //或直接指定时间间隔,例如:5秒
     //@Scheduled(fixedRate=5000)
     private void configureTasks1() {
@@ -43,7 +50,7 @@ public class HealthreportTask {
         healthReportService.savePartpower(null);
     }
 
-    @Scheduled(cron = "0 0 5 * * ?")
+    //@Scheduled(cron = "0 0 5 * * ?")
     //或直接指定时间间隔,例如:5秒
     //@Scheduled(fixedRate=5000)
     private void configureTasks2() throws Exception {
@@ -51,4 +58,18 @@ public class HealthreportTask {
         String date = DateUtils.toDate1(yestday);
         evaluateService.saveOperationEvaluation(date,date);
     }
+
+    /**
+     * mttrmtbf调度
+     */
+    @Scheduled(cron = "0 0 1 * * ?")
+    //或直接指定时间间隔,例如:5秒
+    //@Scheduled(fixedRate=5000)
+    private void configureTasks3() {
+        Date yestday = DateUtils.getYestday(new Date());
+        String date = DateUtils.toDate1(yestday);
+        mttrmtbfTaskService.saveWpMttrAndMtbfDay(date,date);
+        mttrmtbfTaskService.saveWpMttrAndMtbMonth(date,date);
+        mttrmtbfTaskService.saveWpMttrAndMtbfYear(date,date);
+    }
 }

+ 88 - 0
histroy/healthmanagement-histroy-hb/target/classes/application.yml

@@ -0,0 +1,88 @@
+server:
+  port: 8035
+  servlet:
+    context-path: /
+
+
+spring:
+  main:
+    allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
+  #redis集群
+  redis:
+#    host: 49.4.50.80
+    host: 10.83.68.94
+    port: 6379
+    timeout: 100000
+    #    集群环境打开下面注释,单机不需要打开
+    #    cluster:
+    #      集群信息
+    #      nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
+    #      #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
+    #      maxRedirects: 3
+    password:
+    application:
+      name: test
+    jedis:
+      pool:
+        max-active: 8
+        min-idle: 0
+        max-idle: 8
+        max-wait: -1
+    database: 1
+  autoconfigure:
+    exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    driver-class-name: oracle.jdbc.OracleDriver
+    #外网
+    url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
+    username: gdprod
+    password: gd123
+    oracle-schema=:
+    #    type: com.alibaba.druid.pool.DruidDataSource
+    #    url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
+    #    username: root
+    #    password: root
+    #    driver-class-name: com.mysql.jdbc.Driver
+    druid:
+      max-active: 20
+      initial-size: 1
+      min-idle: 3
+      max-wait: 60000
+      time-between-eviction-runs-millis: 60000
+      min-evictable-idle-time-millis: 300000
+      test-while-idle: true
+      test-on-borrow: false
+      test-on-return: false
+  servlet:
+    multipart:
+      # 开启 multipart 上传功能
+      enabled: true
+      # 文件写入磁盘的阈值
+      file-size-threshold: 2KB
+      # 最大文件大小
+      max-file-size: 200MB
+      # 最大请求大小
+      max-request-size: 215MB
+
+mybatis-plus:
+  configuration:
+    map-underscore-to-camel-case: true
+    auto-mapping-behavior: full
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+  mapper-locations: classpath*:mapper/**/*Mapper.xml
+  global-config:
+    # 逻辑删除配置
+    db-config:
+      id-type: auto
+      # 删除前
+      logic-not-delete-value: 1
+      # 删除后
+      logic-delete-value: 0
+logging:
+  level:
+    root: info
+    com.example: debug
+
+golden:
+  baseURL: http://10.155.32.4:8011/ts

BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/HealthManagementHistroyMain.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/config/GeneratorCodeConfig.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/BenchmarkController.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/CurvefittingsubController.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/EvaluationdatasourceController.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/FaulthistoryController.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/FaultsnapController.class


BIN
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/FaultstatisticwindturbineController.class


+ 0 - 0
histroy/healthmanagement-histroy-hb/target/classes/com/gyee/healthmanagementhistroy/controller/auto/InputoroutputspeedtotalController.class


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels