Przeglądaj źródła

健康管理模块开发

shilin 4 lat temu
rodzic
commit
e79dba29b4
64 zmienionych plików z 38096 dodań i 116 usunięć
  1. 9 0
      src/main/java/com/gyee/frame/common/spring/Constant.java
  2. 13 1
      src/main/java/com/gyee/frame/common/spring/InitialRunner.java
  3. 121 0
      src/main/java/com/gyee/frame/controller/health/HealthMainController.java
  4. 370 0
      src/main/java/com/gyee/frame/controller/health/HealthSubController.java
  5. 96 0
      src/main/java/com/gyee/frame/mapper/auto/Daylygradeassessmentmain2Mapper.java
  6. 97 0
      src/main/java/com/gyee/frame/mapper/auto/EarlywarningmainMapper.java
  7. 96 0
      src/main/java/com/gyee/frame/mapper/auto/EarlywarningmainMapper.java.1
  8. 96 0
      src/main/java/com/gyee/frame/mapper/auto/EarlywarningmainMapper.java.2
  9. 97 0
      src/main/java/com/gyee/frame/mapper/auto/FailurestatisticsmainMapper.java
  10. 96 0
      src/main/java/com/gyee/frame/mapper/auto/Monthlygradeassessmentmain2Mapper.java
  11. 97 0
      src/main/java/com/gyee/frame/mapper/auto/P3TaskMapper.java
  12. 97 0
      src/main/java/com/gyee/frame/mapper/auto/PartstatisticsmainMapper.java
  13. 97 0
      src/main/java/com/gyee/frame/mapper/auto/ParttemperaturesubMapper.java
  14. 97 0
      src/main/java/com/gyee/frame/mapper/auto/StatejudgmentrecordMapper.java
  15. 97 0
      src/main/java/com/gyee/frame/mapper/auto/StoptypeMapper.java
  16. 443 0
      src/main/java/com/gyee/frame/model/auto/Daylygradeassessmentmain2.java
  17. 1163 0
      src/main/java/com/gyee/frame/model/auto/Daylygradeassessmentmain2Example.java
  18. 1400 0
      src/main/java/com/gyee/frame/model/auto/Earlywarningmain.java
  19. 3013 0
      src/main/java/com/gyee/frame/model/auto/EarlywarningmainExample.java
  20. 1400 0
      src/main/java/com/gyee/frame/model/auto/Failurestatisticsmain.java
  21. 3013 0
      src/main/java/com/gyee/frame/model/auto/FailurestatisticsmainExample.java
  22. 509 0
      src/main/java/com/gyee/frame/model/auto/Monthlygradeassessmentmain2.java
  23. 1303 0
      src/main/java/com/gyee/frame/model/auto/Monthlygradeassessmentmain2Example.java
  24. 1037 0
      src/main/java/com/gyee/frame/model/auto/P3Task.java
  25. 2323 0
      src/main/java/com/gyee/frame/model/auto/P3TaskExample.java
  26. 3050 0
      src/main/java/com/gyee/frame/model/auto/Partstatisticsmain.java
  27. 6263 0
      src/main/java/com/gyee/frame/model/auto/PartstatisticsmainExample.java
  28. 311 0
      src/main/java/com/gyee/frame/model/auto/Parttemperaturesub.java
  29. 913 0
      src/main/java/com/gyee/frame/model/auto/ParttemperaturesubExample.java
  30. 145 0
      src/main/java/com/gyee/frame/model/auto/Statejudgmentrecord.java
  31. 572 0
      src/main/java/com/gyee/frame/model/auto/StatejudgmentrecordExample.java
  32. 178 0
      src/main/java/com/gyee/frame/model/auto/Stoptype.java
  33. 642 0
      src/main/java/com/gyee/frame/model/auto/StoptypeExample.java
  34. 32 0
      src/main/java/com/gyee/frame/model/custom/ActivityVo.java
  35. 58 0
      src/main/java/com/gyee/frame/model/custom/DatasetsVo.java
  36. 57 0
      src/main/java/com/gyee/frame/model/custom/GzfxVo.java
  37. 30 0
      src/main/java/com/gyee/frame/model/custom/XnfxVo.java
  38. 57 0
      src/main/java/com/gyee/frame/model/custom/YjfxVo.java
  39. 87 0
      src/main/java/com/gyee/frame/model/custom/YxfxVo.java
  40. 43 1
      src/main/java/com/gyee/frame/service/CurvefittingsubService.java
  41. 141 0
      src/main/java/com/gyee/frame/service/Daylygradeassessmentmain2Service.java
  42. 116 0
      src/main/java/com/gyee/frame/service/EarlywarningmainService.java
  43. 116 0
      src/main/java/com/gyee/frame/service/FailurestatisticsmainService.java
  44. 117 0
      src/main/java/com/gyee/frame/service/Monthlygradeassessmentmain2Service.java
  45. 96 0
      src/main/java/com/gyee/frame/service/P3TaskService.java
  46. 119 0
      src/main/java/com/gyee/frame/service/PartstatisticsmainService.java
  47. 228 0
      src/main/java/com/gyee/frame/service/ParttemperaturesubService.java
  48. 64 1
      src/main/java/com/gyee/frame/service/ShutdowneventService.java
  49. 111 0
      src/main/java/com/gyee/frame/service/StatejudgmentrecordService.java
  50. 95 0
      src/main/java/com/gyee/frame/service/StoptypeService.java
  51. 210 94
      src/main/java/com/gyee/frame/service/health/HealthMainService.java
  52. 424 0
      src/main/java/com/gyee/frame/service/health/HealthOperationService.java
  53. 857 0
      src/main/java/com/gyee/frame/service/health/HealthSubService.java
  54. 3 2
      src/main/resources/mybatis-generator.xml
  55. 398 0
      src/main/resources/mybatis/auto/Daylygradeassessmentmain2Mapper.xml
  56. 857 0
      src/main/resources/mybatis/auto/EarlywarningmainMapper.xml
  57. 857 0
      src/main/resources/mybatis/auto/FailurestatisticsmainMapper.xml
  58. 430 0
      src/main/resources/mybatis/auto/Monthlygradeassessmentmain2Mapper.xml
  59. 683 0
      src/main/resources/mybatis/auto/P3TaskMapper.xml
  60. 1645 0
      src/main/resources/mybatis/auto/PartstatisticsmainMapper.xml
  61. 335 0
      src/main/resources/mybatis/auto/ParttemperaturesubMapper.xml
  62. 256 0
      src/main/resources/mybatis/auto/StatejudgmentrecordMapper.xml
  63. 271 0
      src/main/resources/mybatis/auto/StoptypeMapper.xml
  64. 49 17
      src/test/java/test/HealthTest.java

+ 9 - 0
src/main/java/com/gyee/frame/common/spring/Constant.java

@@ -346,6 +346,10 @@ public class Constant {
 	public static final String YCFJJKZT1MONTH = "JKYC021";// 风机健康状态未来1个月
 
 	public static final String FJJKZZ = "JKZT100";// 风机健康总状态得分
+	public static final String CLXJKJL = "JKJL002";// 齿轮箱健康状态值
+	public static final String FDJJKJL = "JKJL003";// 发电机健康状态值
+	public static final String BJJKJL = "JKJL004";// 变桨健康值
+	public static final String ZKJKJL = "JKJL005";// 主控健康状态值
 
 	public static final String FJJKZT = "JKZT001";// 风机健康状态
 	public static final String CLXJKZT = "JKZT002";// 齿轮箱健康状态
@@ -361,6 +365,11 @@ public class Constant {
 	public static final String R3QFZT = "R3QFZT"; // 日3欠发电量
 	public static final String R4QFZT = "R4QFZT"; // 日4欠发电量
 
+	public static final String FJLHSL = "JKSLLH001";// 风机良好健康状态数量
+	public static final String FJZCSL = "JKSLHG001";// 风机正常健康状态数量
+	public static final String FJZYSL = "JKSLZY001";// 风机注意健康状态数量
+	public static final String FJYZSL = "JKSLYZ001";// 风机严重健康状态数量
+
 
 
 

+ 13 - 1
src/main/java/com/gyee/frame/common/spring/InitialRunner.java

@@ -52,6 +52,8 @@ public class InitialRunner implements CommandLineRunner {
     private ModelPowerService modelPowerService;
     @Resource
     private IGlobalCache globalCache;
+    @Resource
+    private StoptypeService stoptypeService;
 
     public static List<Windpowerstation> wpallls = new ArrayList<Windpowerstation>(); // 风电场LIST集合(包含光电电)
     public static List<Project> pjallls = new ArrayList<Project>(); //项目LIST集合(包含光电电)
@@ -69,7 +71,7 @@ public class InitialRunner implements CommandLineRunner {
     public static Map<String, Line> lnmap = new HashMap<String, Line>(); // 线路(包含光电电)
     public static Map<String, Windturbine> wtmap = new HashMap<String, Windturbine>();//风机(包含光电电)
 
-
+    public static Map<String, Stoptype> stoptypemap = new HashMap<String, Stoptype>();//停机类型
     public static List<Warning2> warnls = new ArrayList<Warning2>(); // 报警LIST集合
     public static Map<String, Warning2> warningmap = new HashMap<String, Warning2>();// 报警MAP集合
 
@@ -218,6 +220,16 @@ public class InitialRunner implements CommandLineRunner {
 
         mprdMap = modelpowerRdService.getModelpowerRdAllMap();
 
+        StoptypeExample stoptypeExample = new StoptypeExample();
+        stoptypeExample.setOrderByClause("name ASC");
+
+        List<Stoptype> stoptypels = stoptypeService.selectByExample(stoptypeExample);
+        if (stoptypels != null && !stoptypels.isEmpty()) {
+            for (int i = 0; i < stoptypels.size(); i++) {
+                stoptypemap.put(stoptypels.get(i).getId(),stoptypels.get(i));
+            }
+        }
+
 //        WindturbinepowercurvefittingExample windturbinepowercurvefittingExample=new WindturbinepowercurvefittingExample();
 //        windturbinepowercurvefittingExample.setOrderByClause("WINDTURBINEID ASC,speed ASC");
 //        List<Windturbinepowercurvefitting> wpclist= windturbinepowercurvefittingService.selectByExample(windturbinepowercurvefittingExample);

+ 121 - 0
src/main/java/com/gyee/frame/controller/health/HealthMainController.java

@@ -0,0 +1,121 @@
+package com.gyee.frame.controller.health;
+
+import com.gyee.frame.common.conf.AjaxStatus;
+import com.gyee.frame.common.domain.AjaxResult;
+import com.gyee.frame.service.health.HealthMainService;
+import com.gyee.frame.util.StringUtils;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.Map;
+
+@Controller
+@RequestMapping("/healthmain")
+@Api(value = "健康管理主页面" ,tags =  "健康管理主页面")
+public class HealthMainController {
+
+    @Resource
+    private HealthMainService healthMainService;
+
+
+    @PostMapping("/findAllChart")
+    @ResponseBody
+    @ApiOperation(value = "获得健康状态情况图表", notes = "获得健康状态情况图表")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wpId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
+            @ApiImplicitParam(name = "num", value = "结果数量", required = true, dataType = "string", paramType = "query"),
+            @ApiImplicitParam(name = "type", value = "类型", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findAllChart(String wpId, String num, String type) throws Exception {
+
+
+        Map<String, Object[]>  map = new HashMap<>();
+
+        if(StringUtils.notEmp(wpId) && StringUtils.notEmp(num) && StringUtils.notEmp(type))
+        {
+            map = healthMainService.findAllChart(wpId,Integer.valueOf(num), Integer.valueOf(type));
+        }
+
+        if (null!=map) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+
+    @PostMapping("/findAllMap")
+    @ResponseBody
+    @ApiOperation(value = "获得全省健康状态基础数据", notes = "获得全省健康状态基础数据")
+    @ApiImplicitParams({
+           })
+    public AjaxResult findAllMap() throws Exception {
+
+
+        Map<String, Object>  map = new HashMap<>();
+
+        map = healthMainService.findAllMap();
+
+        if (null!=map && !map.isEmpty()) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+
+    @PostMapping("/findWpMap")
+    @ResponseBody
+    @ApiOperation(value = "获得场站健康状态基础数据", notes = "获得场站健康状态基础数据")
+    @ApiImplicitParams({
+    })
+    public AjaxResult findWpMap(String wpId) throws Exception {
+
+
+        Map<String, Object>  map = new HashMap<>();
+
+
+        if(StringUtils.notEmp(wpId))
+        {
+            map = healthMainService.findWpMap(wpId);
+        }
+
+
+        if (null!=map && !map.isEmpty()) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+
+
+    @PostMapping("/findHealthMatrixMap")
+    @ResponseBody
+    @ApiOperation(value = "获得健康矩阵", notes = "获得健康矩阵")
+    @ApiImplicitParams({
+    })
+    public AjaxResult findHealthMatrixMap() throws Exception {
+
+
+        Map<String, Object>  map = new HashMap<>();
+
+
+        map = healthMainService.findHealthMatrixMap();
+
+
+        if (null!=map && !map.isEmpty()) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+}

+ 370 - 0
src/main/java/com/gyee/frame/controller/health/HealthSubController.java

@@ -0,0 +1,370 @@
+package com.gyee.frame.controller.health;
+
+import com.gyee.frame.common.conf.AjaxStatus;
+import com.gyee.frame.common.domain.AjaxResult;
+import com.gyee.frame.model.custom.*;
+import com.gyee.frame.service.health.HealthSubService;
+import com.gyee.frame.util.StringUtils;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import javax.annotation.Resource;
+import java.util.*;
+
+@Controller
+@RequestMapping("/healthsub")
+@Api(value = "健康管理风机页面" ,tags =  "健康管理风机页面")
+public class HealthSubController {
+
+    @Resource
+    private HealthSubService healthSubService;
+
+
+    @PostMapping("/findPartHealthInfo")
+    @ResponseBody
+    @ApiOperation(value = "获取健康管理风机部件基础信息", notes = "获取健康管理风机部件基础信息")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+            })
+    public AjaxResult findPartHealthInfo(String wtId) throws Exception {
+
+
+        Map<String, Map<String, Object>>  map = new HashMap<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+            map = healthSubService.findPartHealthInfo(wtId);
+        }
+
+        if (null!=map) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+
+
+    @PostMapping("/initalGzjfx")
+    @ResponseBody
+    @ApiOperation(value = "故障数据统计", notes = "故障数据统计")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult initalGzjfx(String wtId) throws Exception {
+
+
+        List<GzfxVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+            Calendar cal = Calendar.getInstance();
+            Date recodedate = cal.getTime();
+            vos = healthSubService.initalGzjfx(wtId,recodedate);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/initalYjfx")
+    @ResponseBody
+    @ApiOperation(value = "预警数据统计", notes = "预警数据统计")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult initalYjfx(String wtId) throws Exception {
+
+
+        List<YjfxVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+            Calendar cal = Calendar.getInstance();
+            Date recodedate = cal.getTime();
+            vos = healthSubService.initalYjfx(wtId,recodedate);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/initalYxfx")
+    @ResponseBody
+    @ApiOperation(value = "部件运行数据", notes = "部件运行数据")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult initalYxfx(String wtId) throws Exception {
+
+
+        List<YxfxVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+            Calendar cal = Calendar.getInstance();
+            Date recodedate = cal.getTime();
+            vos = healthSubService.initalYxfx(wtId,recodedate);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/initalXnfx")
+    @ResponseBody
+    @ApiOperation(value = "获得日、月等级评估", notes = "获得日、月等级评估")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult initalXnfx(String wtId) throws Exception {
+
+
+        List<XnfxVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+            Calendar cal = Calendar.getInstance();
+            vos = healthSubService.initalXnfx(wtId,cal);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/initalShutdown")
+    @ResponseBody
+    @ApiOperation(value = "获得当日停机事件", notes = "获得当日停机事件")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult initalShutdown(String wtId) throws Exception {
+
+
+        List<ShutdowneventVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+             vos = healthSubService.initalShutdown(wtId);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/findJudgmentList")
+    @ResponseBody
+    @ApiOperation(value = "获得健康评价列表", notes = "获得健康评价列表")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult findJudgmentList(String wtId) throws Exception {
+
+
+        List<ValueVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+
+            vos = healthSubService.findJudgmentList(wtId);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/findQxpcList")
+    @ResponseBody
+    @ApiOperation(value = "各个区间曲线偏差率", notes = "各个区间曲线偏差率")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult findQxpcList(String wtId) throws Exception {
+
+
+        List<QxpcVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+
+            vos = healthSubService.findQxpcList(wtId);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+    @PostMapping("/findWdList")
+    @ResponseBody
+    @ApiOperation(value = "温度范围", notes = "温度范围")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult findWdList(String wtId) throws Exception {
+
+
+        List<YxfxVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+
+            vos = healthSubService.findWdList(wtId);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+
+    @PostMapping("/gadaytop5")
+    @ResponseBody
+    @ApiOperation(value = "获得等级评估前5数据", notes = "获得等级评估前5数据")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult gadaytop5(String wtId) throws Exception {
+
+
+        Map<String, Object> map = new HashMap<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+
+            map = healthSubService.gadaytop5(wtId);
+        }
+
+        if (null!=map) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+
+
+    @PostMapping("/queryStopTop10")
+    @ResponseBody
+    @ApiOperation(value = "获取最新的十次停机事件", notes = "获取最新的十次停机事件")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult queryStopTop10(String wtId) throws Exception {
+
+
+        List<ShutdowneventVo> vos = new ArrayList<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+
+            vos = healthSubService.queryStopTop10(wtId);
+        }
+
+        if (null!=vos) {
+            return AjaxResult.successData(AjaxStatus.success.code, vos);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vos);
+        }
+
+    }
+
+
+
+
+    @PostMapping("/findPowerChar")
+    @ResponseBody
+    @ApiOperation(value = "获取最新的十次停机事件", notes = "获取最新的十次停机事件")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult findPowerChar(String wtId) throws Exception {
+
+
+        Map<String, Object[]> map = new HashMap<>();
+
+        if(StringUtils.notEmp(wtId))
+        {
+
+            map = healthSubService.findPowerChar(wtId);
+        }
+
+        if (null!=map) {
+            return AjaxResult.successData(AjaxStatus.success.code, map);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, map);
+        }
+
+    }
+
+    @PostMapping("/hsFjValueIndex")
+    @ResponseBody
+    @ApiOperation(value = "获取最新的十次停机事件", notes = "获取最新的十次停机事件")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query")
+    })
+    public AjaxResult hsFjValueIndex(String wtId) throws Exception {
+
+
+        ActivityVo vo = new ActivityVo();
+
+        if(StringUtils.notEmp(wtId))
+        {
+            Calendar cal = Calendar.getInstance();
+
+            cal.set(Calendar.HOUR_OF_DAY, 0);
+            cal.set(Calendar.MINUTE, 0);
+            cal.set(Calendar.SECOND, 0);
+
+
+            Date endDate = cal.getTime();
+
+            cal.add(Calendar.DAY_OF_MONTH, -1);
+            Date beginDate = cal.getTime();
+            vo = healthSubService.hsFjValueIndex(wtId,beginDate,endDate);
+        }
+
+        if (null!=vo) {
+            return AjaxResult.successData(AjaxStatus.success.code, vo);
+        } else {
+            return AjaxResult.successData(AjaxStatus.error.code, vo);
+        }
+
+    }
+}

+ 96 - 0
src/main/java/com/gyee/frame/mapper/auto/Daylygradeassessmentmain2Mapper.java

@@ -0,0 +1,96 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Daylygradeassessmentmain2;
+import com.gyee.frame.model.auto.Daylygradeassessmentmain2Example;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface Daylygradeassessmentmain2Mapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    long countByExample(Daylygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(Daylygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int insert(Daylygradeassessmentmain2 record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Daylygradeassessmentmain2 record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    List<Daylygradeassessmentmain2> selectByExample(Daylygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    Daylygradeassessmentmain2 selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Daylygradeassessmentmain2 record, @Param("example") Daylygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Daylygradeassessmentmain2 record, @Param("example") Daylygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Daylygradeassessmentmain2 record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Daylygradeassessmentmain2 record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/EarlywarningmainMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Earlywarningmain;
+import com.gyee.frame.model.auto.EarlywarningmainExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface EarlywarningmainMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    long countByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int insert(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    List<Earlywarningmain> selectByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    Earlywarningmain selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Earlywarningmain record, @Param("example") EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Earlywarningmain record, @Param("example") EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Earlywarningmain record);
+}

+ 96 - 0
src/main/java/com/gyee/frame/mapper/auto/EarlywarningmainMapper.java.1

@@ -0,0 +1,96 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Earlywarningmain;
+import com.gyee.frame.model.auto.EarlywarningmainExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface EarlywarningmainMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    long countByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(Short id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int insert(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    List<Earlywarningmain> selectByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    Earlywarningmain selectByPrimaryKey(Short id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Earlywarningmain record, @Param("example") EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Earlywarningmain record, @Param("example") EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Earlywarningmain record);
+}

+ 96 - 0
src/main/java/com/gyee/frame/mapper/auto/EarlywarningmainMapper.java.2

@@ -0,0 +1,96 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Earlywarningmain;
+import com.gyee.frame.model.auto.EarlywarningmainExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface EarlywarningmainMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    long countByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(Short id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int insert(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    List<Earlywarningmain> selectByExample(EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    Earlywarningmain selectByPrimaryKey(Short id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Earlywarningmain record, @Param("example") EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Earlywarningmain record, @Param("example") EarlywarningmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Earlywarningmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table EARLYWARNINGMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Earlywarningmain record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/FailurestatisticsmainMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Failurestatisticsmain;
+import com.gyee.frame.model.auto.FailurestatisticsmainExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface FailurestatisticsmainMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    long countByExample(FailurestatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(FailurestatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int insert(Failurestatisticsmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Failurestatisticsmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    List<Failurestatisticsmain> selectByExample(FailurestatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    Failurestatisticsmain selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Failurestatisticsmain record, @Param("example") FailurestatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Failurestatisticsmain record, @Param("example") FailurestatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Failurestatisticsmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table FAILURESTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Failurestatisticsmain record);
+}

+ 96 - 0
src/main/java/com/gyee/frame/mapper/auto/Monthlygradeassessmentmain2Mapper.java

@@ -0,0 +1,96 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Monthlygradeassessmentmain2;
+import com.gyee.frame.model.auto.Monthlygradeassessmentmain2Example;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface Monthlygradeassessmentmain2Mapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    long countByExample(Monthlygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(Monthlygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int insert(Monthlygradeassessmentmain2 record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Monthlygradeassessmentmain2 record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    List<Monthlygradeassessmentmain2> selectByExample(Monthlygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    Monthlygradeassessmentmain2 selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Monthlygradeassessmentmain2 record, @Param("example") Monthlygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Monthlygradeassessmentmain2 record, @Param("example") Monthlygradeassessmentmain2Example example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Monthlygradeassessmentmain2 record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Monthlygradeassessmentmain2 record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/P3TaskMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.P3Task;
+import com.gyee.frame.model.auto.P3TaskExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface P3TaskMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    long countByExample(P3TaskExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(P3TaskExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int insert(P3Task record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int insertSelective(P3Task record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    List<P3Task> selectByExample(P3TaskExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    P3Task selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") P3Task record, @Param("example") P3TaskExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") P3Task record, @Param("example") P3TaskExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(P3Task record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table P3_TASK
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(P3Task record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/PartstatisticsmainMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Partstatisticsmain;
+import com.gyee.frame.model.auto.PartstatisticsmainExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface PartstatisticsmainMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    long countByExample(PartstatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(PartstatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int insert(Partstatisticsmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Partstatisticsmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    List<Partstatisticsmain> selectByExample(PartstatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    Partstatisticsmain selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Partstatisticsmain record, @Param("example") PartstatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Partstatisticsmain record, @Param("example") PartstatisticsmainExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Partstatisticsmain record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTSTATISTICSMAIN
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Partstatisticsmain record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/ParttemperaturesubMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Parttemperaturesub;
+import com.gyee.frame.model.auto.ParttemperaturesubExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface ParttemperaturesubMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    long countByExample(ParttemperaturesubExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(ParttemperaturesubExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int insert(Parttemperaturesub record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Parttemperaturesub record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    List<Parttemperaturesub> selectByExample(ParttemperaturesubExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    Parttemperaturesub selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Parttemperaturesub record, @Param("example") ParttemperaturesubExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Parttemperaturesub record, @Param("example") ParttemperaturesubExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Parttemperaturesub record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Parttemperaturesub record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/StatejudgmentrecordMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Statejudgmentrecord;
+import com.gyee.frame.model.auto.StatejudgmentrecordExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface StatejudgmentrecordMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    long countByExample(StatejudgmentrecordExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(StatejudgmentrecordExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int insert(Statejudgmentrecord record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Statejudgmentrecord record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    List<Statejudgmentrecord> selectByExample(StatejudgmentrecordExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    Statejudgmentrecord selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Statejudgmentrecord record, @Param("example") StatejudgmentrecordExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Statejudgmentrecord record, @Param("example") StatejudgmentrecordExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Statejudgmentrecord record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Statejudgmentrecord record);
+}

+ 97 - 0
src/main/java/com/gyee/frame/mapper/auto/StoptypeMapper.java

@@ -0,0 +1,97 @@
+package com.gyee.frame.mapper.auto;
+
+import com.gyee.frame.model.auto.Stoptype;
+import com.gyee.frame.model.auto.StoptypeExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface StoptypeMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    long countByExample(StoptypeExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int deleteByExample(StoptypeExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int insert(Stoptype record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int insertSelective(Stoptype record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    List<Stoptype> selectByExample(StoptypeExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    Stoptype selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int updateByExampleSelective(@Param("record") Stoptype record, @Param("example") StoptypeExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int updateByExample(@Param("record") Stoptype record, @Param("example") StoptypeExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKeySelective(Stoptype record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    int updateByPrimaryKey(Stoptype record);
+}

+ 443 - 0
src/main/java/com/gyee/frame/model/auto/Daylygradeassessmentmain2.java

@@ -0,0 +1,443 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class Daylygradeassessmentmain2 implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @mbg.generated
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @mbg.generated
+     */
+    private String wtid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @mbg.generated
+     */
+    private String wpid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @mbg.generated
+     */
+    private String projectid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @mbg.generated
+     */
+    private String lineid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @mbg.generated
+     */
+    private Date recorddate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @mbg.generated
+     */
+    private Double score;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @mbg.generated
+     */
+    private String plevel;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @mbg.generated
+     */
+    private Double state;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @mbg.generated
+     */
+    private Double modscore;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @mbg.generated
+     */
+    private String modlevel;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @mbg.generated
+     */
+    private Double totalscore;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column DAYLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @mbg.generated
+     */
+    private String tid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table DAYLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @mbg.generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @param id the value for DAYLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @mbg.generated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @mbg.generated
+     */
+    public String getWtid() {
+        return wtid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @param wtid the value for DAYLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @mbg.generated
+     */
+    public void setWtid(String wtid) {
+        this.wtid = wtid == null ? null : wtid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @mbg.generated
+     */
+    public String getWpid() {
+        return wpid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @param wpid the value for DAYLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @mbg.generated
+     */
+    public void setWpid(String wpid) {
+        this.wpid = wpid == null ? null : wpid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @mbg.generated
+     */
+    public String getProjectid() {
+        return projectid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @param projectid the value for DAYLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @mbg.generated
+     */
+    public void setProjectid(String projectid) {
+        this.projectid = projectid == null ? null : projectid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @mbg.generated
+     */
+    public String getLineid() {
+        return lineid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @param lineid the value for DAYLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @mbg.generated
+     */
+    public void setLineid(String lineid) {
+        this.lineid = lineid == null ? null : lineid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @mbg.generated
+     */
+    public Date getRecorddate() {
+        return recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @param recorddate the value for DAYLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @mbg.generated
+     */
+    public void setRecorddate(Date recorddate) {
+        this.recorddate = recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @mbg.generated
+     */
+    public Double getScore() {
+        return score;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @param score the value for DAYLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @mbg.generated
+     */
+    public void setScore(Double score) {
+        this.score = score;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @mbg.generated
+     */
+    public String getPlevel() {
+        return plevel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @param plevel the value for DAYLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @mbg.generated
+     */
+    public void setPlevel(String plevel) {
+        this.plevel = plevel == null ? null : plevel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @mbg.generated
+     */
+    public Double getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @param state the value for DAYLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @mbg.generated
+     */
+    public void setState(Double state) {
+        this.state = state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @mbg.generated
+     */
+    public Double getModscore() {
+        return modscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @param modscore the value for DAYLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @mbg.generated
+     */
+    public void setModscore(Double modscore) {
+        this.modscore = modscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @mbg.generated
+     */
+    public String getModlevel() {
+        return modlevel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @param modlevel the value for DAYLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @mbg.generated
+     */
+    public void setModlevel(String modlevel) {
+        this.modlevel = modlevel == null ? null : modlevel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @mbg.generated
+     */
+    public Double getTotalscore() {
+        return totalscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @param totalscore the value for DAYLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @mbg.generated
+     */
+    public void setTotalscore(Double totalscore) {
+        this.totalscore = totalscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column DAYLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @return the value of DAYLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @mbg.generated
+     */
+    public String getTid() {
+        return tid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column DAYLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @param tid the value for DAYLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @mbg.generated
+     */
+    public void setTid(String tid) {
+        this.tid = tid == null ? null : tid.trim();
+    }
+}

Plik diff jest za duży
+ 1163 - 0
src/main/java/com/gyee/frame/model/auto/Daylygradeassessmentmain2Example.java


Plik diff jest za duży
+ 1400 - 0
src/main/java/com/gyee/frame/model/auto/Earlywarningmain.java


Plik diff jest za duży
+ 3013 - 0
src/main/java/com/gyee/frame/model/auto/EarlywarningmainExample.java


Plik diff jest za duży
+ 1400 - 0
src/main/java/com/gyee/frame/model/auto/Failurestatisticsmain.java


Plik diff jest za duży
+ 3013 - 0
src/main/java/com/gyee/frame/model/auto/FailurestatisticsmainExample.java


+ 509 - 0
src/main/java/com/gyee/frame/model/auto/Monthlygradeassessmentmain2.java

@@ -0,0 +1,509 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class Monthlygradeassessmentmain2 implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @mbg.generated
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @mbg.generated
+     */
+    private String wtid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @mbg.generated
+     */
+    private String wpid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @mbg.generated
+     */
+    private String projectid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @mbg.generated
+     */
+    private String lineid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.YEAR
+     *
+     * @mbg.generated
+     */
+    private String year;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.MONTH
+     *
+     * @mbg.generated
+     */
+    private String month;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @mbg.generated
+     */
+    private Date recorddate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @mbg.generated
+     */
+    private Double score;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @mbg.generated
+     */
+    private String plevel;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @mbg.generated
+     */
+    private Double state;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @mbg.generated
+     */
+    private Double modscore;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @mbg.generated
+     */
+    private String modlevel;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @mbg.generated
+     */
+    private Double totalscore;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column MONTHLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @mbg.generated
+     */
+    private String tid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table MONTHLYGRADEASSESSMENTMAIN2
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @mbg.generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @param id the value for MONTHLYGRADEASSESSMENTMAIN2.ID
+     *
+     * @mbg.generated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @mbg.generated
+     */
+    public String getWtid() {
+        return wtid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @param wtid the value for MONTHLYGRADEASSESSMENTMAIN2.WTID
+     *
+     * @mbg.generated
+     */
+    public void setWtid(String wtid) {
+        this.wtid = wtid == null ? null : wtid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @mbg.generated
+     */
+    public String getWpid() {
+        return wpid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @param wpid the value for MONTHLYGRADEASSESSMENTMAIN2.WPID
+     *
+     * @mbg.generated
+     */
+    public void setWpid(String wpid) {
+        this.wpid = wpid == null ? null : wpid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @mbg.generated
+     */
+    public String getProjectid() {
+        return projectid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @param projectid the value for MONTHLYGRADEASSESSMENTMAIN2.PROJECTID
+     *
+     * @mbg.generated
+     */
+    public void setProjectid(String projectid) {
+        this.projectid = projectid == null ? null : projectid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @mbg.generated
+     */
+    public String getLineid() {
+        return lineid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @param lineid the value for MONTHLYGRADEASSESSMENTMAIN2.LINEID
+     *
+     * @mbg.generated
+     */
+    public void setLineid(String lineid) {
+        this.lineid = lineid == null ? null : lineid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.YEAR
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.YEAR
+     *
+     * @mbg.generated
+     */
+    public String getYear() {
+        return year;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.YEAR
+     *
+     * @param year the value for MONTHLYGRADEASSESSMENTMAIN2.YEAR
+     *
+     * @mbg.generated
+     */
+    public void setYear(String year) {
+        this.year = year == null ? null : year.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.MONTH
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.MONTH
+     *
+     * @mbg.generated
+     */
+    public String getMonth() {
+        return month;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.MONTH
+     *
+     * @param month the value for MONTHLYGRADEASSESSMENTMAIN2.MONTH
+     *
+     * @mbg.generated
+     */
+    public void setMonth(String month) {
+        this.month = month == null ? null : month.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @mbg.generated
+     */
+    public Date getRecorddate() {
+        return recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @param recorddate the value for MONTHLYGRADEASSESSMENTMAIN2.RECORDDATE
+     *
+     * @mbg.generated
+     */
+    public void setRecorddate(Date recorddate) {
+        this.recorddate = recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @mbg.generated
+     */
+    public Double getScore() {
+        return score;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @param score the value for MONTHLYGRADEASSESSMENTMAIN2.SCORE
+     *
+     * @mbg.generated
+     */
+    public void setScore(Double score) {
+        this.score = score;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @mbg.generated
+     */
+    public String getPlevel() {
+        return plevel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @param plevel the value for MONTHLYGRADEASSESSMENTMAIN2.PLEVEL
+     *
+     * @mbg.generated
+     */
+    public void setPlevel(String plevel) {
+        this.plevel = plevel == null ? null : plevel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @mbg.generated
+     */
+    public Double getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @param state the value for MONTHLYGRADEASSESSMENTMAIN2.STATE
+     *
+     * @mbg.generated
+     */
+    public void setState(Double state) {
+        this.state = state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @mbg.generated
+     */
+    public Double getModscore() {
+        return modscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @param modscore the value for MONTHLYGRADEASSESSMENTMAIN2.MODSCORE
+     *
+     * @mbg.generated
+     */
+    public void setModscore(Double modscore) {
+        this.modscore = modscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @mbg.generated
+     */
+    public String getModlevel() {
+        return modlevel;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @param modlevel the value for MONTHLYGRADEASSESSMENTMAIN2.MODLEVEL
+     *
+     * @mbg.generated
+     */
+    public void setModlevel(String modlevel) {
+        this.modlevel = modlevel == null ? null : modlevel.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @mbg.generated
+     */
+    public Double getTotalscore() {
+        return totalscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @param totalscore the value for MONTHLYGRADEASSESSMENTMAIN2.TOTALSCORE
+     *
+     * @mbg.generated
+     */
+    public void setTotalscore(Double totalscore) {
+        this.totalscore = totalscore;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column MONTHLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @return the value of MONTHLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @mbg.generated
+     */
+    public String getTid() {
+        return tid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column MONTHLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @param tid the value for MONTHLYGRADEASSESSMENTMAIN2.TID
+     *
+     * @mbg.generated
+     */
+    public void setTid(String tid) {
+        this.tid = tid == null ? null : tid.trim();
+    }
+}

Plik diff jest za duży
+ 1303 - 0
src/main/java/com/gyee/frame/model/auto/Monthlygradeassessmentmain2Example.java


Plik diff jest za duży
+ 1037 - 0
src/main/java/com/gyee/frame/model/auto/P3Task.java


Plik diff jest za duży
+ 2323 - 0
src/main/java/com/gyee/frame/model/auto/P3TaskExample.java


Plik diff jest za duży
+ 3050 - 0
src/main/java/com/gyee/frame/model/auto/Partstatisticsmain.java


Plik diff jest za duży
+ 6263 - 0
src/main/java/com/gyee/frame/model/auto/PartstatisticsmainExample.java


+ 311 - 0
src/main/java/com/gyee/frame/model/auto/Parttemperaturesub.java

@@ -0,0 +1,311 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class Parttemperaturesub implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.ID
+     *
+     * @mbg.generated
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.RECODEDATE
+     *
+     * @mbg.generated
+     */
+    private Date recodedate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.WPID
+     *
+     * @mbg.generated
+     */
+    private String wpid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.WTID
+     *
+     * @mbg.generated
+     */
+    private String wtid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.WTNAME
+     *
+     * @mbg.generated
+     */
+    private String wtname;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.TRANGE
+     *
+     * @mbg.generated
+     */
+    private String trange;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.TSNUMBER
+     *
+     * @mbg.generated
+     */
+    private Integer tsnumber;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.POINTNAME
+     *
+     * @mbg.generated
+     */
+    private String pointname;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column PARTTEMPERATURESUB.PARTNAME
+     *
+     * @mbg.generated
+     */
+    private String partname;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.ID
+     *
+     * @return the value of PARTTEMPERATURESUB.ID
+     *
+     * @mbg.generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.ID
+     *
+     * @param id the value for PARTTEMPERATURESUB.ID
+     *
+     * @mbg.generated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.RECODEDATE
+     *
+     * @return the value of PARTTEMPERATURESUB.RECODEDATE
+     *
+     * @mbg.generated
+     */
+    public Date getRecodedate() {
+        return recodedate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.RECODEDATE
+     *
+     * @param recodedate the value for PARTTEMPERATURESUB.RECODEDATE
+     *
+     * @mbg.generated
+     */
+    public void setRecodedate(Date recodedate) {
+        this.recodedate = recodedate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.WPID
+     *
+     * @return the value of PARTTEMPERATURESUB.WPID
+     *
+     * @mbg.generated
+     */
+    public String getWpid() {
+        return wpid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.WPID
+     *
+     * @param wpid the value for PARTTEMPERATURESUB.WPID
+     *
+     * @mbg.generated
+     */
+    public void setWpid(String wpid) {
+        this.wpid = wpid == null ? null : wpid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.WTID
+     *
+     * @return the value of PARTTEMPERATURESUB.WTID
+     *
+     * @mbg.generated
+     */
+    public String getWtid() {
+        return wtid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.WTID
+     *
+     * @param wtid the value for PARTTEMPERATURESUB.WTID
+     *
+     * @mbg.generated
+     */
+    public void setWtid(String wtid) {
+        this.wtid = wtid == null ? null : wtid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.WTNAME
+     *
+     * @return the value of PARTTEMPERATURESUB.WTNAME
+     *
+     * @mbg.generated
+     */
+    public String getWtname() {
+        return wtname;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.WTNAME
+     *
+     * @param wtname the value for PARTTEMPERATURESUB.WTNAME
+     *
+     * @mbg.generated
+     */
+    public void setWtname(String wtname) {
+        this.wtname = wtname == null ? null : wtname.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.TRANGE
+     *
+     * @return the value of PARTTEMPERATURESUB.TRANGE
+     *
+     * @mbg.generated
+     */
+    public String getTrange() {
+        return trange;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.TRANGE
+     *
+     * @param trange the value for PARTTEMPERATURESUB.TRANGE
+     *
+     * @mbg.generated
+     */
+    public void setTrange(String trange) {
+        this.trange = trange == null ? null : trange.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.TSNUMBER
+     *
+     * @return the value of PARTTEMPERATURESUB.TSNUMBER
+     *
+     * @mbg.generated
+     */
+    public Integer getTsnumber() {
+        return tsnumber;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.TSNUMBER
+     *
+     * @param tsnumber the value for PARTTEMPERATURESUB.TSNUMBER
+     *
+     * @mbg.generated
+     */
+    public void setTsnumber(Integer tsnumber) {
+        this.tsnumber = tsnumber;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.POINTNAME
+     *
+     * @return the value of PARTTEMPERATURESUB.POINTNAME
+     *
+     * @mbg.generated
+     */
+    public String getPointname() {
+        return pointname;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.POINTNAME
+     *
+     * @param pointname the value for PARTTEMPERATURESUB.POINTNAME
+     *
+     * @mbg.generated
+     */
+    public void setPointname(String pointname) {
+        this.pointname = pointname == null ? null : pointname.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column PARTTEMPERATURESUB.PARTNAME
+     *
+     * @return the value of PARTTEMPERATURESUB.PARTNAME
+     *
+     * @mbg.generated
+     */
+    public String getPartname() {
+        return partname;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column PARTTEMPERATURESUB.PARTNAME
+     *
+     * @param partname the value for PARTTEMPERATURESUB.PARTNAME
+     *
+     * @mbg.generated
+     */
+    public void setPartname(String partname) {
+        this.partname = partname == null ? null : partname.trim();
+    }
+}

+ 913 - 0
src/main/java/com/gyee/frame/model/auto/ParttemperaturesubExample.java

@@ -0,0 +1,913 @@
+package com.gyee.frame.model.auto;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class ParttemperaturesubExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public ParttemperaturesubExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("ID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("ID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            addCriterion("ID =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            addCriterion("ID <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("ID >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("ID >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("ID <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("ID <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("ID like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("ID not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("ID in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("ID not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("ID between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("ID not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateIsNull() {
+            addCriterion("RECODEDATE is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateIsNotNull() {
+            addCriterion("RECODEDATE is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateEqualTo(Date value) {
+            addCriterion("RECODEDATE =", value, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateNotEqualTo(Date value) {
+            addCriterion("RECODEDATE <>", value, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateGreaterThan(Date value) {
+            addCriterion("RECODEDATE >", value, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateGreaterThanOrEqualTo(Date value) {
+            addCriterion("RECODEDATE >=", value, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateLessThan(Date value) {
+            addCriterion("RECODEDATE <", value, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateLessThanOrEqualTo(Date value) {
+            addCriterion("RECODEDATE <=", value, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateIn(List<Date> values) {
+            addCriterion("RECODEDATE in", values, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateNotIn(List<Date> values) {
+            addCriterion("RECODEDATE not in", values, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateBetween(Date value1, Date value2) {
+            addCriterion("RECODEDATE between", value1, value2, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andRecodedateNotBetween(Date value1, Date value2) {
+            addCriterion("RECODEDATE not between", value1, value2, "recodedate");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidIsNull() {
+            addCriterion("WPID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidIsNotNull() {
+            addCriterion("WPID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidEqualTo(String value) {
+            addCriterion("WPID =", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotEqualTo(String value) {
+            addCriterion("WPID <>", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidGreaterThan(String value) {
+            addCriterion("WPID >", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidGreaterThanOrEqualTo(String value) {
+            addCriterion("WPID >=", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidLessThan(String value) {
+            addCriterion("WPID <", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidLessThanOrEqualTo(String value) {
+            addCriterion("WPID <=", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidLike(String value) {
+            addCriterion("WPID like", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotLike(String value) {
+            addCriterion("WPID not like", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidIn(List<String> values) {
+            addCriterion("WPID in", values, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotIn(List<String> values) {
+            addCriterion("WPID not in", values, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidBetween(String value1, String value2) {
+            addCriterion("WPID between", value1, value2, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotBetween(String value1, String value2) {
+            addCriterion("WPID not between", value1, value2, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidIsNull() {
+            addCriterion("WTID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidIsNotNull() {
+            addCriterion("WTID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidEqualTo(String value) {
+            addCriterion("WTID =", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotEqualTo(String value) {
+            addCriterion("WTID <>", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidGreaterThan(String value) {
+            addCriterion("WTID >", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidGreaterThanOrEqualTo(String value) {
+            addCriterion("WTID >=", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidLessThan(String value) {
+            addCriterion("WTID <", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidLessThanOrEqualTo(String value) {
+            addCriterion("WTID <=", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidLike(String value) {
+            addCriterion("WTID like", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotLike(String value) {
+            addCriterion("WTID not like", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidIn(List<String> values) {
+            addCriterion("WTID in", values, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotIn(List<String> values) {
+            addCriterion("WTID not in", values, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidBetween(String value1, String value2) {
+            addCriterion("WTID between", value1, value2, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotBetween(String value1, String value2) {
+            addCriterion("WTID not between", value1, value2, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameIsNull() {
+            addCriterion("WTNAME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameIsNotNull() {
+            addCriterion("WTNAME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameEqualTo(String value) {
+            addCriterion("WTNAME =", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameNotEqualTo(String value) {
+            addCriterion("WTNAME <>", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameGreaterThan(String value) {
+            addCriterion("WTNAME >", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameGreaterThanOrEqualTo(String value) {
+            addCriterion("WTNAME >=", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameLessThan(String value) {
+            addCriterion("WTNAME <", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameLessThanOrEqualTo(String value) {
+            addCriterion("WTNAME <=", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameLike(String value) {
+            addCriterion("WTNAME like", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameNotLike(String value) {
+            addCriterion("WTNAME not like", value, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameIn(List<String> values) {
+            addCriterion("WTNAME in", values, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameNotIn(List<String> values) {
+            addCriterion("WTNAME not in", values, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameBetween(String value1, String value2) {
+            addCriterion("WTNAME between", value1, value2, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtnameNotBetween(String value1, String value2) {
+            addCriterion("WTNAME not between", value1, value2, "wtname");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeIsNull() {
+            addCriterion("TRANGE is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeIsNotNull() {
+            addCriterion("TRANGE is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeEqualTo(String value) {
+            addCriterion("TRANGE =", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeNotEqualTo(String value) {
+            addCriterion("TRANGE <>", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeGreaterThan(String value) {
+            addCriterion("TRANGE >", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeGreaterThanOrEqualTo(String value) {
+            addCriterion("TRANGE >=", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeLessThan(String value) {
+            addCriterion("TRANGE <", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeLessThanOrEqualTo(String value) {
+            addCriterion("TRANGE <=", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeLike(String value) {
+            addCriterion("TRANGE like", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeNotLike(String value) {
+            addCriterion("TRANGE not like", value, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeIn(List<String> values) {
+            addCriterion("TRANGE in", values, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeNotIn(List<String> values) {
+            addCriterion("TRANGE not in", values, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeBetween(String value1, String value2) {
+            addCriterion("TRANGE between", value1, value2, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTrangeNotBetween(String value1, String value2) {
+            addCriterion("TRANGE not between", value1, value2, "trange");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberIsNull() {
+            addCriterion("TSNUMBER is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberIsNotNull() {
+            addCriterion("TSNUMBER is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberEqualTo(Integer value) {
+            addCriterion("TSNUMBER =", value, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberNotEqualTo(Integer value) {
+            addCriterion("TSNUMBER <>", value, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberGreaterThan(Integer value) {
+            addCriterion("TSNUMBER >", value, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberGreaterThanOrEqualTo(Integer value) {
+            addCriterion("TSNUMBER >=", value, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberLessThan(Integer value) {
+            addCriterion("TSNUMBER <", value, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberLessThanOrEqualTo(Integer value) {
+            addCriterion("TSNUMBER <=", value, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberIn(List<Integer> values) {
+            addCriterion("TSNUMBER in", values, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberNotIn(List<Integer> values) {
+            addCriterion("TSNUMBER not in", values, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberBetween(Integer value1, Integer value2) {
+            addCriterion("TSNUMBER between", value1, value2, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andTsnumberNotBetween(Integer value1, Integer value2) {
+            addCriterion("TSNUMBER not between", value1, value2, "tsnumber");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameIsNull() {
+            addCriterion("POINTNAME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameIsNotNull() {
+            addCriterion("POINTNAME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameEqualTo(String value) {
+            addCriterion("POINTNAME =", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameNotEqualTo(String value) {
+            addCriterion("POINTNAME <>", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameGreaterThan(String value) {
+            addCriterion("POINTNAME >", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameGreaterThanOrEqualTo(String value) {
+            addCriterion("POINTNAME >=", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameLessThan(String value) {
+            addCriterion("POINTNAME <", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameLessThanOrEqualTo(String value) {
+            addCriterion("POINTNAME <=", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameLike(String value) {
+            addCriterion("POINTNAME like", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameNotLike(String value) {
+            addCriterion("POINTNAME not like", value, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameIn(List<String> values) {
+            addCriterion("POINTNAME in", values, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameNotIn(List<String> values) {
+            addCriterion("POINTNAME not in", values, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameBetween(String value1, String value2) {
+            addCriterion("POINTNAME between", value1, value2, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointnameNotBetween(String value1, String value2) {
+            addCriterion("POINTNAME not between", value1, value2, "pointname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameIsNull() {
+            addCriterion("PARTNAME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameIsNotNull() {
+            addCriterion("PARTNAME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameEqualTo(String value) {
+            addCriterion("PARTNAME =", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameNotEqualTo(String value) {
+            addCriterion("PARTNAME <>", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameGreaterThan(String value) {
+            addCriterion("PARTNAME >", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameGreaterThanOrEqualTo(String value) {
+            addCriterion("PARTNAME >=", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameLessThan(String value) {
+            addCriterion("PARTNAME <", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameLessThanOrEqualTo(String value) {
+            addCriterion("PARTNAME <=", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameLike(String value) {
+            addCriterion("PARTNAME like", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameNotLike(String value) {
+            addCriterion("PARTNAME not like", value, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameIn(List<String> values) {
+            addCriterion("PARTNAME in", values, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameNotIn(List<String> values) {
+            addCriterion("PARTNAME not in", values, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameBetween(String value1, String value2) {
+            addCriterion("PARTNAME between", value1, value2, "partname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPartnameNotBetween(String value1, String value2) {
+            addCriterion("PARTNAME not between", value1, value2, "partname");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated do_not_delete_during_merge
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table PARTTEMPERATURESUB
+     *
+     * @mbg.generated
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 145 - 0
src/main/java/com/gyee/frame/model/auto/Statejudgmentrecord.java

@@ -0,0 +1,145 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+
+public class Statejudgmentrecord implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STATEJUDGMENTRECORD.ID
+     *
+     * @mbg.generated
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STATEJUDGMENTRECORD.WPID
+     *
+     * @mbg.generated
+     */
+    private String wpid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STATEJUDGMENTRECORD.WTID
+     *
+     * @mbg.generated
+     */
+    private String wtid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STATEJUDGMENTRECORD.STATEJUDGMENT
+     *
+     * @mbg.generated
+     */
+    private String statejudgment;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STATEJUDGMENTRECORD.ID
+     *
+     * @return the value of STATEJUDGMENTRECORD.ID
+     *
+     * @mbg.generated
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STATEJUDGMENTRECORD.ID
+     *
+     * @param id the value for STATEJUDGMENTRECORD.ID
+     *
+     * @mbg.generated
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STATEJUDGMENTRECORD.WPID
+     *
+     * @return the value of STATEJUDGMENTRECORD.WPID
+     *
+     * @mbg.generated
+     */
+    public String getWpid() {
+        return wpid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STATEJUDGMENTRECORD.WPID
+     *
+     * @param wpid the value for STATEJUDGMENTRECORD.WPID
+     *
+     * @mbg.generated
+     */
+    public void setWpid(String wpid) {
+        this.wpid = wpid == null ? null : wpid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STATEJUDGMENTRECORD.WTID
+     *
+     * @return the value of STATEJUDGMENTRECORD.WTID
+     *
+     * @mbg.generated
+     */
+    public String getWtid() {
+        return wtid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STATEJUDGMENTRECORD.WTID
+     *
+     * @param wtid the value for STATEJUDGMENTRECORD.WTID
+     *
+     * @mbg.generated
+     */
+    public void setWtid(String wtid) {
+        this.wtid = wtid == null ? null : wtid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STATEJUDGMENTRECORD.STATEJUDGMENT
+     *
+     * @return the value of STATEJUDGMENTRECORD.STATEJUDGMENT
+     *
+     * @mbg.generated
+     */
+    public String getStatejudgment() {
+        return statejudgment;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STATEJUDGMENTRECORD.STATEJUDGMENT
+     *
+     * @param statejudgment the value for STATEJUDGMENTRECORD.STATEJUDGMENT
+     *
+     * @mbg.generated
+     */
+    public void setStatejudgment(String statejudgment) {
+        this.statejudgment = statejudgment == null ? null : statejudgment.trim();
+    }
+}

+ 572 - 0
src/main/java/com/gyee/frame/model/auto/StatejudgmentrecordExample.java

@@ -0,0 +1,572 @@
+package com.gyee.frame.model.auto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class StatejudgmentrecordExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public StatejudgmentrecordExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("ID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("ID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("ID =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("ID <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("ID >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("ID >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("ID <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("ID <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("ID in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("ID not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("ID between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("ID not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidIsNull() {
+            addCriterion("WPID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidIsNotNull() {
+            addCriterion("WPID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidEqualTo(String value) {
+            addCriterion("WPID =", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotEqualTo(String value) {
+            addCriterion("WPID <>", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidGreaterThan(String value) {
+            addCriterion("WPID >", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidGreaterThanOrEqualTo(String value) {
+            addCriterion("WPID >=", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidLessThan(String value) {
+            addCriterion("WPID <", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidLessThanOrEqualTo(String value) {
+            addCriterion("WPID <=", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidLike(String value) {
+            addCriterion("WPID like", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotLike(String value) {
+            addCriterion("WPID not like", value, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidIn(List<String> values) {
+            addCriterion("WPID in", values, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotIn(List<String> values) {
+            addCriterion("WPID not in", values, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidBetween(String value1, String value2) {
+            addCriterion("WPID between", value1, value2, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWpidNotBetween(String value1, String value2) {
+            addCriterion("WPID not between", value1, value2, "wpid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidIsNull() {
+            addCriterion("WTID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidIsNotNull() {
+            addCriterion("WTID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidEqualTo(String value) {
+            addCriterion("WTID =", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotEqualTo(String value) {
+            addCriterion("WTID <>", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidGreaterThan(String value) {
+            addCriterion("WTID >", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidGreaterThanOrEqualTo(String value) {
+            addCriterion("WTID >=", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidLessThan(String value) {
+            addCriterion("WTID <", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidLessThanOrEqualTo(String value) {
+            addCriterion("WTID <=", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidLike(String value) {
+            addCriterion("WTID like", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotLike(String value) {
+            addCriterion("WTID not like", value, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidIn(List<String> values) {
+            addCriterion("WTID in", values, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotIn(List<String> values) {
+            addCriterion("WTID not in", values, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidBetween(String value1, String value2) {
+            addCriterion("WTID between", value1, value2, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andWtidNotBetween(String value1, String value2) {
+            addCriterion("WTID not between", value1, value2, "wtid");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentIsNull() {
+            addCriterion("STATEJUDGMENT is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentIsNotNull() {
+            addCriterion("STATEJUDGMENT is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentEqualTo(String value) {
+            addCriterion("STATEJUDGMENT =", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentNotEqualTo(String value) {
+            addCriterion("STATEJUDGMENT <>", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentGreaterThan(String value) {
+            addCriterion("STATEJUDGMENT >", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentGreaterThanOrEqualTo(String value) {
+            addCriterion("STATEJUDGMENT >=", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentLessThan(String value) {
+            addCriterion("STATEJUDGMENT <", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentLessThanOrEqualTo(String value) {
+            addCriterion("STATEJUDGMENT <=", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentLike(String value) {
+            addCriterion("STATEJUDGMENT like", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentNotLike(String value) {
+            addCriterion("STATEJUDGMENT not like", value, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentIn(List<String> values) {
+            addCriterion("STATEJUDGMENT in", values, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentNotIn(List<String> values) {
+            addCriterion("STATEJUDGMENT not in", values, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentBetween(String value1, String value2) {
+            addCriterion("STATEJUDGMENT between", value1, value2, "statejudgment");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatejudgmentNotBetween(String value1, String value2) {
+            addCriterion("STATEJUDGMENT not between", value1, value2, "statejudgment");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated do_not_delete_during_merge
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table STATEJUDGMENTRECORD
+     *
+     * @mbg.generated
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 178 - 0
src/main/java/com/gyee/frame/model/auto/Stoptype.java

@@ -0,0 +1,178 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+
+public class Stoptype implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STOPTYPE.ID
+     *
+     * @mbg.generated
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STOPTYPE.NAME
+     *
+     * @mbg.generated
+     */
+    private String name;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STOPTYPE.ISPLAN
+     *
+     * @mbg.generated
+     */
+    private Integer isplan;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STOPTYPE.PARENTID
+     *
+     * @mbg.generated
+     */
+    private String parentid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column STOPTYPE.NWYS
+     *
+     * @mbg.generated
+     */
+    private String nwys;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STOPTYPE.ID
+     *
+     * @return the value of STOPTYPE.ID
+     *
+     * @mbg.generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STOPTYPE.ID
+     *
+     * @param id the value for STOPTYPE.ID
+     *
+     * @mbg.generated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STOPTYPE.NAME
+     *
+     * @return the value of STOPTYPE.NAME
+     *
+     * @mbg.generated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STOPTYPE.NAME
+     *
+     * @param name the value for STOPTYPE.NAME
+     *
+     * @mbg.generated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STOPTYPE.ISPLAN
+     *
+     * @return the value of STOPTYPE.ISPLAN
+     *
+     * @mbg.generated
+     */
+    public Integer getIsplan() {
+        return isplan;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STOPTYPE.ISPLAN
+     *
+     * @param isplan the value for STOPTYPE.ISPLAN
+     *
+     * @mbg.generated
+     */
+    public void setIsplan(Integer isplan) {
+        this.isplan = isplan;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STOPTYPE.PARENTID
+     *
+     * @return the value of STOPTYPE.PARENTID
+     *
+     * @mbg.generated
+     */
+    public String getParentid() {
+        return parentid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STOPTYPE.PARENTID
+     *
+     * @param parentid the value for STOPTYPE.PARENTID
+     *
+     * @mbg.generated
+     */
+    public void setParentid(String parentid) {
+        this.parentid = parentid == null ? null : parentid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column STOPTYPE.NWYS
+     *
+     * @return the value of STOPTYPE.NWYS
+     *
+     * @mbg.generated
+     */
+    public String getNwys() {
+        return nwys;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column STOPTYPE.NWYS
+     *
+     * @param nwys the value for STOPTYPE.NWYS
+     *
+     * @mbg.generated
+     */
+    public void setNwys(String nwys) {
+        this.nwys = nwys == null ? null : nwys.trim();
+    }
+}

+ 642 - 0
src/main/java/com/gyee/frame/model/auto/StoptypeExample.java

@@ -0,0 +1,642 @@
+package com.gyee.frame.model.auto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class StoptypeExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public StoptypeExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("ID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("ID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            addCriterion("ID =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            addCriterion("ID <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("ID >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("ID >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("ID <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("ID <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("ID like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("ID not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("ID in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("ID not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("ID between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("ID not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNull() {
+            addCriterion("NAME is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNotNull() {
+            addCriterion("NAME is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualTo(String value) {
+            addCriterion("NAME =", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualTo(String value) {
+            addCriterion("NAME <>", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThan(String value) {
+            addCriterion("NAME >", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualTo(String value) {
+            addCriterion("NAME >=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThan(String value) {
+            addCriterion("NAME <", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualTo(String value) {
+            addCriterion("NAME <=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLike(String value) {
+            addCriterion("NAME like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotLike(String value) {
+            addCriterion("NAME not like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIn(List<String> values) {
+            addCriterion("NAME in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotIn(List<String> values) {
+            addCriterion("NAME not in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameBetween(String value1, String value2) {
+            addCriterion("NAME between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotBetween(String value1, String value2) {
+            addCriterion("NAME not between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanIsNull() {
+            addCriterion("ISPLAN is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanIsNotNull() {
+            addCriterion("ISPLAN is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanEqualTo(Integer value) {
+            addCriterion("ISPLAN =", value, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanNotEqualTo(Integer value) {
+            addCriterion("ISPLAN <>", value, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanGreaterThan(Integer value) {
+            addCriterion("ISPLAN >", value, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanGreaterThanOrEqualTo(Integer value) {
+            addCriterion("ISPLAN >=", value, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanLessThan(Integer value) {
+            addCriterion("ISPLAN <", value, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanLessThanOrEqualTo(Integer value) {
+            addCriterion("ISPLAN <=", value, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanIn(List<Integer> values) {
+            addCriterion("ISPLAN in", values, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanNotIn(List<Integer> values) {
+            addCriterion("ISPLAN not in", values, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanBetween(Integer value1, Integer value2) {
+            addCriterion("ISPLAN between", value1, value2, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsplanNotBetween(Integer value1, Integer value2) {
+            addCriterion("ISPLAN not between", value1, value2, "isplan");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidIsNull() {
+            addCriterion("PARENTID is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidIsNotNull() {
+            addCriterion("PARENTID is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidEqualTo(String value) {
+            addCriterion("PARENTID =", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidNotEqualTo(String value) {
+            addCriterion("PARENTID <>", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidGreaterThan(String value) {
+            addCriterion("PARENTID >", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidGreaterThanOrEqualTo(String value) {
+            addCriterion("PARENTID >=", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidLessThan(String value) {
+            addCriterion("PARENTID <", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidLessThanOrEqualTo(String value) {
+            addCriterion("PARENTID <=", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidLike(String value) {
+            addCriterion("PARENTID like", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidNotLike(String value) {
+            addCriterion("PARENTID not like", value, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidIn(List<String> values) {
+            addCriterion("PARENTID in", values, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidNotIn(List<String> values) {
+            addCriterion("PARENTID not in", values, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidBetween(String value1, String value2) {
+            addCriterion("PARENTID between", value1, value2, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andParentidNotBetween(String value1, String value2) {
+            addCriterion("PARENTID not between", value1, value2, "parentid");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysIsNull() {
+            addCriterion("NWYS is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysIsNotNull() {
+            addCriterion("NWYS is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysEqualTo(String value) {
+            addCriterion("NWYS =", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysNotEqualTo(String value) {
+            addCriterion("NWYS <>", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysGreaterThan(String value) {
+            addCriterion("NWYS >", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysGreaterThanOrEqualTo(String value) {
+            addCriterion("NWYS >=", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysLessThan(String value) {
+            addCriterion("NWYS <", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysLessThanOrEqualTo(String value) {
+            addCriterion("NWYS <=", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysLike(String value) {
+            addCriterion("NWYS like", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysNotLike(String value) {
+            addCriterion("NWYS not like", value, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysIn(List<String> values) {
+            addCriterion("NWYS in", values, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysNotIn(List<String> values) {
+            addCriterion("NWYS not in", values, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysBetween(String value1, String value2) {
+            addCriterion("NWYS between", value1, value2, "nwys");
+            return (Criteria) this;
+        }
+
+        public Criteria andNwysNotBetween(String value1, String value2) {
+            addCriterion("NWYS not between", value1, value2, "nwys");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated do_not_delete_during_merge
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table STOPTYPE
+     *
+     * @mbg.generated
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 32 - 0
src/main/java/com/gyee/frame/model/custom/ActivityVo.java

@@ -0,0 +1,32 @@
+package com.gyee.frame.model.custom;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class ActivityVo implements Serializable {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 1L;
+
+    private List<Long> xData;
+    private List<DatasetsVo> datasets;
+
+    public List<Long> getxData() {
+        return xData;
+    }
+
+    public void setxData(List<Long> xData) {
+        this.xData = xData;
+    }
+
+    public List<DatasetsVo> getDatasets() {
+        return datasets;
+    }
+
+    public void setDatasets(List<DatasetsVo> datasets) {
+        this.datasets = datasets;
+    }
+
+}

+ 58 - 0
src/main/java/com/gyee/frame/model/custom/DatasetsVo.java

@@ -0,0 +1,58 @@
+package com.gyee.frame.model.custom;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class DatasetsVo implements Serializable {
+
+    /**
+	 * 
+	 */
+    private static final long serialVersionUID = 1L;
+    private List<Double> data;
+    private String name;
+    private String unit;
+    private String type;
+    private Integer valueDecimals;
+
+    public List<Double> getData() {
+        return data;
+    }
+
+    public void setData(List<Double> data) {
+        this.data = data;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getUnit() {
+        return unit;
+    }
+
+    public void setUnit(String unit) {
+        this.unit = unit;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public Integer getValueDecimals() {
+        return valueDecimals;
+    }
+
+    public void setValueDecimals(Integer valueDecimals) {
+        this.valueDecimals = valueDecimals;
+    }
+
+}

+ 57 - 0
src/main/java/com/gyee/frame/model/custom/GzfxVo.java

@@ -0,0 +1,57 @@
+package com.gyee.frame.model.custom;
+
+public class GzfxVo {
+
+    private String name;
+    private String top1gzname;
+    private Integer top1gznum;
+    private String top2gzname;
+    private Integer top2gznum;
+    private String top3gzname;
+    private Integer top3gznum;
+    public String getName() {
+        return name;
+    }
+    public void setName(String name) {
+        this.name = name;
+    }
+    public String getTop1gzname() {
+        return top1gzname;
+    }
+    public void setTop1gzname(String top1gzname) {
+        this.top1gzname = top1gzname;
+    }
+    public Integer getTop1gznum() {
+        return top1gznum;
+    }
+    public void setTop1gznum(Integer top1gznum) {
+        this.top1gznum = top1gznum;
+    }
+    public String getTop2gzname() {
+        return top2gzname;
+    }
+    public void setTop2gzname(String top2gzname) {
+        this.top2gzname = top2gzname;
+    }
+    public Integer getTop2gznum() {
+        return top2gznum;
+    }
+    public void setTop2gznum(Integer top2gznum) {
+        this.top2gznum = top2gznum;
+    }
+    public String getTop3gzname() {
+        return top3gzname;
+    }
+    public void setTop3gzname(String top3gzname) {
+        this.top3gzname = top3gzname;
+    }
+    public Integer getTop3gznum() {
+        return top3gznum;
+    }
+    public void setTop3gznum(Integer top3gznum) {
+        this.top3gznum = top3gznum;
+    }
+
+  
+
+}

+ 30 - 0
src/main/java/com/gyee/frame/model/custom/XnfxVo.java

@@ -0,0 +1,30 @@
+package com.gyee.frame.model.custom;
+
+public class XnfxVo {
+
+    private String name;
+    private String levelname;
+    private Integer topnum;
+    
+    public String getName() {
+        return name;
+    }
+    public void setName(String name) {
+        this.name = name;
+    }
+    public String getLevelname() {
+        return levelname;
+    }
+    public void setLevelname(String levelname) {
+        this.levelname = levelname;
+    }
+    public Integer getTopnum() {
+        return topnum;
+    }
+    public void setTopnum(Integer topnum) {
+        this.topnum = topnum;
+    }
+
+
+
+}

+ 57 - 0
src/main/java/com/gyee/frame/model/custom/YjfxVo.java

@@ -0,0 +1,57 @@
+package com.gyee.frame.model.custom;
+
+public class YjfxVo {
+
+    private String name;
+    private String top1gzname;
+    private Integer top1gznum;
+    private String top2gzname;
+    private Integer top2gznum;
+    private String top3gzname;
+    private Integer top3gznum;
+    public String getName() {
+        return name;
+    }
+    public void setName(String name) {
+        this.name = name;
+    }
+    public String getTop1gzname() {
+        return top1gzname;
+    }
+    public void setTop1gzname(String top1gzname) {
+        this.top1gzname = top1gzname;
+    }
+    public Integer getTop1gznum() {
+        return top1gznum;
+    }
+    public void setTop1gznum(Integer top1gznum) {
+        this.top1gznum = top1gznum;
+    }
+    public String getTop2gzname() {
+        return top2gzname;
+    }
+    public void setTop2gzname(String top2gzname) {
+        this.top2gzname = top2gzname;
+    }
+    public Integer getTop2gznum() {
+        return top2gznum;
+    }
+    public void setTop2gznum(Integer top2gznum) {
+        this.top2gznum = top2gznum;
+    }
+    public String getTop3gzname() {
+        return top3gzname;
+    }
+    public void setTop3gzname(String top3gzname) {
+        this.top3gzname = top3gzname;
+    }
+    public Integer getTop3gznum() {
+        return top3gznum;
+    }
+    public void setTop3gznum(Integer top3gznum) {
+        this.top3gznum = top3gznum;
+    }
+
+  
+
+}

+ 87 - 0
src/main/java/com/gyee/frame/model/custom/YxfxVo.java

@@ -0,0 +1,87 @@
+package com.gyee.frame.model.custom;
+
+public class YxfxVo {
+
+    private String name;
+    private Integer numfdj;
+    private Integer numclx;
+    private Integer numzz;
+    private Integer numbj;
+    private Integer numph;
+    private Integer numjc;
+    private Integer numbpq;
+    private Integer numzk;
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public Integer getNumfdj() {
+        return numfdj;
+    }
+
+    public void setNumfdj(Integer numfdj) {
+        this.numfdj = numfdj;
+    }
+
+    public Integer getNumclx() {
+        return numclx;
+    }
+
+    public void setNumclx(Integer numclx) {
+        this.numclx = numclx;
+    }
+
+    public Integer getNumzz() {
+        return numzz;
+    }
+
+    public void setNumzz(Integer numzz) {
+        this.numzz = numzz;
+    }
+
+    public Integer getNumbj() {
+        return numbj;
+    }
+
+    public void setNumbj(Integer numbj) {
+        this.numbj = numbj;
+    }
+
+    public Integer getNumph() {
+        return numph;
+    }
+
+    public void setNumph(Integer numph) {
+        this.numph = numph;
+    }
+
+    public Integer getNumjc() {
+        return numjc;
+    }
+
+    public void setNumjc(Integer numjc) {
+        this.numjc = numjc;
+    }
+
+    public Integer getNumbpq() {
+        return numbpq;
+    }
+
+    public void setNumbpq(Integer numbpq) {
+        this.numbpq = numbpq;
+    }
+
+    public Integer getNumzk() {
+        return numzk;
+    }
+
+    public void setNumzk(Integer numzk) {
+        this.numzk = numzk;
+    }
+
+}

+ 43 - 1
src/main/java/com/gyee/frame/service/CurvefittingsubService.java

@@ -25,6 +25,7 @@ import java.util.*;
 @Service
 public class CurvefittingsubService implements BaseService<Curvefittingsub, CurvefittingsubExample> {
 
+	private final int DIGIT = 2;
 	@Resource
 	private CurvefittingsubMapper curvefittingsubMapper;
 	private SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
@@ -205,7 +206,7 @@ public class CurvefittingsubService implements BaseService<Curvefittingsub, Curv
 		return vos;
 	}
 
-	private double getNuberValue(Map<String, List<Curvefittingsub>> daymap, Windturbine wt) {
+	public double getNuberValue(Map<String, List<Curvefittingsub>> daymap, Windturbine wt) {
 
 		if (daymap.containsKey(wt.getId())) {
 
@@ -225,4 +226,45 @@ public class CurvefittingsubService implements BaseService<Curvefittingsub, Curv
 		}
 		return 0.0;
 	}
+
+
+	public Map<String, List<Curvefittingsub>> findCurvefittingmapByDate(Date recorddate,String wtId, Double min,Double max)  {
+
+		Map<String, List<Curvefittingsub>> cfvmap=new HashMap<>();
+
+		CurvefittingsubExample example=new CurvefittingsubExample();
+
+
+
+		CurvefittingsubExample.Criteria criteria =example.createCriteria();
+
+		criteria.andWindturbineidEqualTo(wtId);
+
+		Date endDate= DateUtils.addDays(recorddate,1);
+		criteria.andRecorddateGreaterThanOrEqualTo(recorddate).andRecorddateLessThan(endDate);
+
+		criteria.andSpeedGreaterThanOrEqualTo(min);
+		criteria.andSpeedLessThanOrEqualTo(max);
+		List<Curvefittingsub>  cfvls=curvefittingsubMapper.selectByExample(example);
+
+		if (!cfvls.isEmpty()) {
+
+			for (Curvefittingsub cfv : cfvls) {
+
+				if (cfvmap.containsKey(cfv.getWindturbineid())) {
+					List<Curvefittingsub> ls = cfvmap.get(cfv.getWindturbineid());
+					ls.add(cfv);
+					cfvmap.put(cfv.getWindturbineid(), ls);
+				} else {
+					List<Curvefittingsub> ls = new ArrayList<Curvefittingsub>();
+					ls.add(cfv);
+					cfvmap.put(cfv.getWindturbineid(), ls);
+				}
+			}
+		}
+		return cfvmap;
+
+	}
+
+
 }

+ 141 - 0
src/main/java/com/gyee/frame/service/Daylygradeassessmentmain2Service.java

@@ -0,0 +1,141 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.Daylygradeassessmentmain2Mapper;
+import com.gyee.frame.model.auto.Daylygradeassessmentmain2;
+import com.gyee.frame.model.auto.Daylygradeassessmentmain2Example;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.SnowflakeIdWorker;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+
+@Service
+public class Daylygradeassessmentmain2Service implements BaseService<Daylygradeassessmentmain2, Daylygradeassessmentmain2Example> {
+	@Resource
+	private Daylygradeassessmentmain2Mapper daylygradeassessmentmain2Mapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<String> lista=Convert.toListStrArray(ids);
+			Daylygradeassessmentmain2Example example=new Daylygradeassessmentmain2Example();
+			example.createCriteria().andIdIn(lista);
+			return daylygradeassessmentmain2Mapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Daylygradeassessmentmain2 selectByPrimaryKey(String id) {
+				
+			return daylygradeassessmentmain2Mapper.selectByPrimaryKey(id);
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Daylygradeassessmentmain2 record) {
+		return daylygradeassessmentmain2Mapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Daylygradeassessmentmain2 record) {
+				
+		//添加雪花主键id
+		record.setId(SnowflakeIdWorker.getUUID());
+			
+				
+		return daylygradeassessmentmain2Mapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Daylygradeassessmentmain2 record, Daylygradeassessmentmain2Example example) {
+		
+		return daylygradeassessmentmain2Mapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Daylygradeassessmentmain2 record, Daylygradeassessmentmain2Example example) {
+		
+		return daylygradeassessmentmain2Mapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Daylygradeassessmentmain2> selectByExample(Daylygradeassessmentmain2Example example) {
+		
+		return daylygradeassessmentmain2Mapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(Daylygradeassessmentmain2Example example) {
+		
+		return daylygradeassessmentmain2Mapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(Daylygradeassessmentmain2Example example) {
+		
+		return daylygradeassessmentmain2Mapper.deleteByExample(example);
+	}
+
+
+	public List<Daylygradeassessmentmain2> getDaylygradeassessmentmain2ListBywtId(String wtId, Date recorddate) {
+
+		List<Daylygradeassessmentmain2> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(recorddate) ) {
+
+			Daylygradeassessmentmain2Example example=new Daylygradeassessmentmain2Example();
+			example.setOrderByClause("recorddate DESC");
+
+			Daylygradeassessmentmain2Example.Criteria criteria =example.createCriteria();
+
+			Date endDate= DateUtils.addDays(recorddate,1);
+			criteria.andRecorddateGreaterThanOrEqualTo(recorddate).andRecorddateLessThan(endDate);
+
+			criteria.andWtidEqualTo(wtId);
+			list= daylygradeassessmentmain2Mapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+
+	public List<Daylygradeassessmentmain2> getDaylygradeassessmentmain2ListBywtId(String wtId, Date beginDate, Date endDate) {
+
+		List<Daylygradeassessmentmain2> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate) ) {
+
+			Daylygradeassessmentmain2Example example=new Daylygradeassessmentmain2Example();
+			example.setOrderByClause("recorddate DESC");
+
+			Daylygradeassessmentmain2Example.Criteria criteria =example.createCriteria();
+
+			criteria.andRecorddateGreaterThanOrEqualTo(beginDate).andRecorddateLessThan(endDate);
+
+			criteria.andWtidEqualTo(wtId);
+			list= daylygradeassessmentmain2Mapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+}

+ 116 - 0
src/main/java/com/gyee/frame/service/EarlywarningmainService.java

@@ -0,0 +1,116 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.EarlywarningmainMapper;
+import com.gyee.frame.model.auto.Earlywarningmain;
+import com.gyee.frame.model.auto.EarlywarningmainExample;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+
+@Service
+public class EarlywarningmainService implements BaseService<Earlywarningmain, EarlywarningmainExample> {
+	@Resource
+	private EarlywarningmainMapper earlywarningmainMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<Integer> lista=Convert.toIntArrayList(ids);
+			EarlywarningmainExample example=new EarlywarningmainExample();
+			example.createCriteria().andIdIn(lista);
+			return earlywarningmainMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Earlywarningmain selectByPrimaryKey(String id) {
+				
+			return earlywarningmainMapper.selectByPrimaryKey(Integer.valueOf(id));
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Earlywarningmain record) {
+		return earlywarningmainMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Earlywarningmain record) {
+				
+
+		return earlywarningmainMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Earlywarningmain record, EarlywarningmainExample example) {
+		
+		return earlywarningmainMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Earlywarningmain record, EarlywarningmainExample example) {
+		
+		return earlywarningmainMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Earlywarningmain> selectByExample(EarlywarningmainExample example) {
+		
+		return earlywarningmainMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(EarlywarningmainExample example) {
+		
+		return earlywarningmainMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(EarlywarningmainExample example) {
+		
+		return earlywarningmainMapper.deleteByExample(example);
+	}
+
+
+	public List<Earlywarningmain> getEarlywarningmainListBywtId(String wtId, Date recorddate) {
+
+		List<Earlywarningmain> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(recorddate) ) {
+
+			EarlywarningmainExample example=new EarlywarningmainExample();
+			example.setOrderByClause("recodedate DESC");
+
+			EarlywarningmainExample.Criteria criteria =example.createCriteria();
+
+			Date endDate= DateUtils.addDays(recorddate,1);
+			criteria.andRecodedateGreaterThanOrEqualTo(recorddate).andRecodedateLessThan(endDate);
+
+			criteria.andWtidEqualTo(wtId);
+			list= earlywarningmainMapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+}

+ 116 - 0
src/main/java/com/gyee/frame/service/FailurestatisticsmainService.java

@@ -0,0 +1,116 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.FailurestatisticsmainMapper;
+import com.gyee.frame.model.auto.Failurestatisticsmain;
+import com.gyee.frame.model.auto.FailurestatisticsmainExample;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+
+@Service
+public class FailurestatisticsmainService implements BaseService<Failurestatisticsmain, FailurestatisticsmainExample> {
+	@Resource
+	private FailurestatisticsmainMapper failurestatisticsmainMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<Integer> lista=Convert.toIntArrayList(ids);
+			FailurestatisticsmainExample example=new FailurestatisticsmainExample();
+			example.createCriteria().andIdIn(lista);
+			return failurestatisticsmainMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Failurestatisticsmain selectByPrimaryKey(String id) {
+				
+			return failurestatisticsmainMapper.selectByPrimaryKey(Integer.valueOf(id));
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Failurestatisticsmain record) {
+		return failurestatisticsmainMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Failurestatisticsmain record) {
+				
+
+				
+		return failurestatisticsmainMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Failurestatisticsmain record, FailurestatisticsmainExample example) {
+		
+		return failurestatisticsmainMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Failurestatisticsmain record, FailurestatisticsmainExample example) {
+		
+		return failurestatisticsmainMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Failurestatisticsmain> selectByExample(FailurestatisticsmainExample example) {
+		
+		return failurestatisticsmainMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(FailurestatisticsmainExample example) {
+		
+		return failurestatisticsmainMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(FailurestatisticsmainExample example) {
+		
+		return failurestatisticsmainMapper.deleteByExample(example);
+	}
+
+	public List<Failurestatisticsmain> getFailurestatisticsmainListBywtId(String wtId, Date recorddate) {
+
+		List<Failurestatisticsmain> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(recorddate) ) {
+
+			FailurestatisticsmainExample example=new FailurestatisticsmainExample();
+			example.setOrderByClause("recodedate DESC");
+
+			FailurestatisticsmainExample.Criteria criteria =example.createCriteria();
+
+			Date endDate= DateUtils.addDays(recorddate,1);
+			criteria.andRecodedateGreaterThanOrEqualTo(recorddate).andRecodedateLessThan(endDate);
+
+			criteria.andWtidEqualTo(wtId);
+			list= failurestatisticsmainMapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+}

+ 117 - 0
src/main/java/com/gyee/frame/service/Monthlygradeassessmentmain2Service.java

@@ -0,0 +1,117 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.Monthlygradeassessmentmain2Mapper;
+import com.gyee.frame.model.auto.Monthlygradeassessmentmain2;
+import com.gyee.frame.model.auto.Monthlygradeassessmentmain2Example;
+import com.gyee.frame.util.SnowflakeIdWorker;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.List;
+
+
+@Service
+public class Monthlygradeassessmentmain2Service implements BaseService<Monthlygradeassessmentmain2, Monthlygradeassessmentmain2Example> {
+	@Resource
+	private Monthlygradeassessmentmain2Mapper monthlygradeassessmentmain2Mapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<String> lista=Convert.toListStrArray(ids);
+			Monthlygradeassessmentmain2Example example=new Monthlygradeassessmentmain2Example();
+			example.createCriteria().andIdIn(lista);
+			return monthlygradeassessmentmain2Mapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Monthlygradeassessmentmain2 selectByPrimaryKey(String id) {
+				
+			return monthlygradeassessmentmain2Mapper.selectByPrimaryKey(id);
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Monthlygradeassessmentmain2 record) {
+		return monthlygradeassessmentmain2Mapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Monthlygradeassessmentmain2 record) {
+				
+		//添加雪花主键id
+		record.setId(SnowflakeIdWorker.getUUID());
+			
+				
+		return monthlygradeassessmentmain2Mapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Monthlygradeassessmentmain2 record, Monthlygradeassessmentmain2Example example) {
+		
+		return monthlygradeassessmentmain2Mapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Monthlygradeassessmentmain2 record, Monthlygradeassessmentmain2Example example) {
+		
+		return monthlygradeassessmentmain2Mapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Monthlygradeassessmentmain2> selectByExample(Monthlygradeassessmentmain2Example example) {
+		
+		return monthlygradeassessmentmain2Mapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(Monthlygradeassessmentmain2Example example) {
+		
+		return monthlygradeassessmentmain2Mapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(Monthlygradeassessmentmain2Example example) {
+		
+		return monthlygradeassessmentmain2Mapper.deleteByExample(example);
+	}
+
+	public List<Monthlygradeassessmentmain2> getMonthlygradeassessmentmain2ListBywtId(String wtId, String year, String month) {
+
+
+		List<Monthlygradeassessmentmain2> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(year) && StringUtils.notEmp(month)) {
+
+			Monthlygradeassessmentmain2Example example=new Monthlygradeassessmentmain2Example();
+			example.setOrderByClause("recorddate DESC");
+
+			Monthlygradeassessmentmain2Example.Criteria criteria =example.createCriteria();
+
+			criteria.andWtidEqualTo(wtId);
+			criteria.andYearEqualTo(year);
+			criteria.andMonthEqualTo(month);
+			list= monthlygradeassessmentmain2Mapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+}

+ 96 - 0
src/main/java/com/gyee/frame/service/P3TaskService.java

@@ -0,0 +1,96 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.P3TaskMapper;
+import com.gyee.frame.model.auto.P3Task;
+import com.gyee.frame.model.auto.P3TaskExample;
+import com.gyee.frame.util.SnowflakeIdWorker;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+
+@Service
+public class P3TaskService implements BaseService<P3Task, P3TaskExample> {
+	@Resource
+	private P3TaskMapper p3TaskMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<String> lista=Convert.toListStrArray(ids);
+			P3TaskExample example=new P3TaskExample();
+			example.createCriteria().andIdIn(lista);
+			return p3TaskMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public P3Task selectByPrimaryKey(String id) {
+				
+			return p3TaskMapper.selectByPrimaryKey(id);
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(P3Task record) {
+		return p3TaskMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(P3Task record) {
+				
+		//添加雪花主键id
+		record.setId(SnowflakeIdWorker.getUUID());
+			
+				
+		return p3TaskMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(P3Task record, P3TaskExample example) {
+		
+		return p3TaskMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(P3Task record, P3TaskExample example) {
+		
+		return p3TaskMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<P3Task> selectByExample(P3TaskExample example) {
+		
+		return p3TaskMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(P3TaskExample example) {
+		
+		return p3TaskMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(P3TaskExample example) {
+		
+		return p3TaskMapper.deleteByExample(example);
+	}
+
+
+
+}

+ 119 - 0
src/main/java/com/gyee/frame/service/PartstatisticsmainService.java

@@ -0,0 +1,119 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.PartstatisticsmainMapper;
+import com.gyee.frame.model.auto.Partstatisticsmain;
+import com.gyee.frame.model.auto.PartstatisticsmainExample;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+
+@Service
+public class PartstatisticsmainService implements BaseService<Partstatisticsmain, PartstatisticsmainExample> {
+	@Resource
+	private PartstatisticsmainMapper partstatisticsmainMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<Integer> lista=Convert.toIntArrayList(ids);
+			PartstatisticsmainExample example=new PartstatisticsmainExample();
+			example.createCriteria().andIdIn(lista);
+			return partstatisticsmainMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Partstatisticsmain selectByPrimaryKey(String id) {
+				
+			return partstatisticsmainMapper.selectByPrimaryKey(Integer.valueOf(id));
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Partstatisticsmain record) {
+		return partstatisticsmainMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Partstatisticsmain record) {
+				
+
+				
+		return partstatisticsmainMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Partstatisticsmain record, PartstatisticsmainExample example) {
+		
+		return partstatisticsmainMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Partstatisticsmain record, PartstatisticsmainExample example) {
+		
+		return partstatisticsmainMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Partstatisticsmain> selectByExample(PartstatisticsmainExample example) {
+		
+		return partstatisticsmainMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(PartstatisticsmainExample example) {
+		
+		return partstatisticsmainMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(PartstatisticsmainExample example) {
+		
+		return partstatisticsmainMapper.deleteByExample(example);
+	}
+
+
+	public List<Partstatisticsmain> getPartstatisticsmainListBywtId(String wtId, Date recorddate) {
+
+		List<Partstatisticsmain> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(recorddate) ) {
+
+			PartstatisticsmainExample example=new PartstatisticsmainExample();
+			example.setOrderByClause("recodedate DESC");
+
+			PartstatisticsmainExample.Criteria criteria =example.createCriteria();
+
+			Date endDate= DateUtils.addDays(recorddate,1);
+			criteria.andRecodedateGreaterThanOrEqualTo(recorddate).andRecodedateLessThan(endDate);
+
+			criteria.andWtidEqualTo(wtId);
+			list= partstatisticsmainMapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+
+
+}

+ 228 - 0
src/main/java/com/gyee/frame/service/ParttemperaturesubService.java

@@ -0,0 +1,228 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.ParttemperaturesubMapper;
+import com.gyee.frame.model.auto.Parttemperaturesub;
+import com.gyee.frame.model.auto.ParttemperaturesubExample;
+import com.gyee.frame.model.custom.YxfxVo;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.SnowflakeIdWorker;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.*;
+
+
+@Service
+public class ParttemperaturesubService implements BaseService<Parttemperaturesub, ParttemperaturesubExample> {
+	@Resource
+	private ParttemperaturesubMapper parttemperaturesubMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<String> lista=Convert.toListStrArray(ids);
+			ParttemperaturesubExample example=new ParttemperaturesubExample();
+			example.createCriteria().andIdIn(lista);
+			return parttemperaturesubMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Parttemperaturesub selectByPrimaryKey(String id) {
+				
+			return parttemperaturesubMapper.selectByPrimaryKey(id);
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Parttemperaturesub record) {
+		return parttemperaturesubMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Parttemperaturesub record) {
+				
+		//添加雪花主键id
+		record.setId(SnowflakeIdWorker.getUUID());
+			
+				
+		return parttemperaturesubMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Parttemperaturesub record, ParttemperaturesubExample example) {
+		
+		return parttemperaturesubMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Parttemperaturesub record, ParttemperaturesubExample example) {
+		
+		return parttemperaturesubMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Parttemperaturesub> selectByExample(ParttemperaturesubExample example) {
+		
+		return parttemperaturesubMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(ParttemperaturesubExample example) {
+		
+		return parttemperaturesubMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(ParttemperaturesubExample example) {
+		
+		return parttemperaturesubMapper.deleteByExample(example);
+	}
+
+
+	public List<Parttemperaturesub> getParttemperaturesubListBywtId(String wtId, Date recorddate) {
+
+		List<Parttemperaturesub> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId) && StringUtils.notEmp(recorddate) ) {
+
+			ParttemperaturesubExample example=new ParttemperaturesubExample();
+
+			example.setOrderByClause("recodedate DESC");
+
+			ParttemperaturesubExample.Criteria criteria =example.createCriteria();
+
+			Date endDate= DateUtils.addDays(recorddate,1);
+
+			criteria.andRecodedateGreaterThanOrEqualTo(recorddate).andRecodedateLessThan(endDate);
+
+			criteria.andWtidEqualTo(wtId);
+
+			list= parttemperaturesubMapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+
+
+	public List<YxfxVo> getListValue(List<Parttemperaturesub> ls) {
+
+		Map<String, Map<String, List<Parttemperaturesub>>> ptmap = new HashMap<>();
+
+		List<YxfxVo> list = new ArrayList<>();
+
+		if (!ls.isEmpty()) {
+			for (Parttemperaturesub sub : ls) {
+				if (ptmap.containsKey(sub.getTrange())) {
+					Map<String, List<Parttemperaturesub>> map = ptmap.get(sub.getTrange());
+					if (map.containsKey(sub.getPartname())) {
+						List<Parttemperaturesub> subls = map.get(sub.getPartname());
+						subls.add(sub);
+					} else {
+						List<Parttemperaturesub> subls = new ArrayList<>();
+						subls.add(sub);
+						map.put(sub.getPartname(), subls);
+					}
+					ptmap.put(sub.getTrange(), map);
+				} else {
+					Map<String, List<Parttemperaturesub>> map = new HashMap<>();
+					List<Parttemperaturesub> subls = new ArrayList<>();
+					subls.add(sub);
+					map.put(sub.getPartname(), subls);
+					ptmap.put(sub.getTrange(), map);
+				}
+			}
+		}
+
+		Set<Map.Entry<String, Map<String, List<Parttemperaturesub>>>> ptset = ptmap.entrySet();
+		//按照温度区间》测点》统计数量
+		for (Iterator<Map.Entry<String, Map<String, List<Parttemperaturesub>>>> ptit = ptset.iterator(); ptit.hasNext();) {
+
+			Map.Entry<String, Map<String, List<Parttemperaturesub>>> ptentry = (Map.Entry<String, Map<String, List<Parttemperaturesub>>>) ptit.next();
+
+			Map<String, List<Parttemperaturesub>> map=ptentry.getValue();
+			YxfxVo sub=new YxfxVo();
+			sub.setName(ptentry.getKey());
+			setVoValaue(map, sub,"clx");
+			setVoValaue(map, sub,"fdj");
+			setVoValaue(map, sub,"zk");
+			setVoValaue(map, sub,"bj");
+			sub.setNumzz(0);
+			sub.setNumph(0);
+			sub.setNumbpq(0);
+			sub.setNumjc(0);
+			list.add(sub);
+		}
+		Collections.sort(list, new Comparator<YxfxVo>() {
+			public int compare(YxfxVo arg0, YxfxVo arg1) {
+				return arg0.getName().compareTo(arg1.getName());
+			}
+		});
+		return list;
+	}
+
+
+	private void setVoValaue(Map<String, List<Parttemperaturesub>> map, YxfxVo sub,String key) {
+		if(map.containsKey(key))
+		{
+			int num=0;
+			List<Parttemperaturesub> subls=map.get(key);
+			for(Parttemperaturesub s:subls)
+			{
+				num=num+s.getTsnumber();
+			}
+			switch (key) {
+				case "clx":
+					sub.setNumclx(num);
+					break;
+				case "fdj":
+					sub.setNumfdj(num);
+					break;
+				case "zk":
+					sub.setNumzk(num);
+					break;
+				case "bj":
+					sub.setNumbj(num);
+					break;
+				default:
+					break;
+			}
+
+		}else
+		{
+			switch (key) {
+				case "clx":
+					sub.setNumclx(0);
+					break;
+				case "fdj":
+					sub.setNumfdj(0);
+					break;
+				case "zk":
+					sub.setNumzk(0);
+					break;
+				case "bj":
+					sub.setNumbj(0);
+					break;
+				default:
+					break;
+			}
+		}
+	}
+
+}

+ 64 - 1
src/main/java/com/gyee/frame/service/ShutdowneventService.java

@@ -1,17 +1,20 @@
 package com.gyee.frame.service;
 
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
 import com.gyee.frame.common.base.BaseService;
 import com.gyee.frame.common.spring.InitialRunner;
 import com.gyee.frame.common.support.Convert;
 import com.gyee.frame.mapper.auto.ShutdowneventMapper;
 import com.gyee.frame.model.auto.Shutdownevent;
 import com.gyee.frame.model.auto.ShutdowneventExample;
+import com.gyee.frame.model.auto.Stoptype;
 import com.gyee.frame.model.custom.ShutdowneventVo;
 import com.gyee.frame.util.SnowflakeIdWorker;
 import com.gyee.frame.util.StringUtils;
-import javax.annotation.Resource;
 import org.springframework.stereotype.Service;
 
+import javax.annotation.Resource;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -150,4 +153,64 @@ public class ShutdowneventService implements BaseService<Shutdownevent, Shutdown
 		return sdelist;
 
 	}
+
+	public List<ShutdowneventVo> queryStopTop10(String wtId) {
+
+		List<Shutdownevent> list=new ArrayList<>();
+
+		ShutdowneventExample example=new ShutdowneventExample();
+		example.setOrderByClause(" StopTime ASC");
+
+		ShutdowneventExample.Criteria criteria =example.createCriteria();
+
+		if(StringUtils.isNotEmpty(wtId))
+		{
+			criteria.andWindturbineidEqualTo(wtId);
+		}
+		criteria.andStophoursIsNotNull();
+		criteria.andStoptypeidNotEqualTo("wh");
+		criteria.andStoptypeidNotEqualTo("gzbmq");
+		criteria.andStoptypeidNotEqualTo("other");
+		PageHelper.startPage(0, 10);
+
+
+		list= shutdowneventMapper.selectByExample(example);
+
+		PageInfo<Shutdownevent> pageInfo = new PageInfo<Shutdownevent>(list);
+
+		List<ShutdowneventVo> sdelist=new ArrayList<>();
+
+		if(null!=list && !list.isEmpty())
+		{
+			for(Shutdownevent sde:list)
+			{
+				ShutdowneventVo event = new ShutdowneventVo();
+				event.setId(sde.getId());
+
+				event.setWindPowerStationId(sde.getWindpowerstationid());
+				event.setWpName(InitialRunner.wpmap.get(sde.getWindpowerstationid()).getName());
+				event.setWindTurbineId(sde.getWindturbineid());
+				event.setWtName(InitialRunner.wtmap.get(sde.getWindturbineid()).getCode());
+				event.setWarningId(sde.getWarningid());
+
+				if(InitialRunner.stoptypemap.containsKey(sde.getStoptypeid()))
+				{
+					Stoptype stoptype=InitialRunner.stoptypemap.get(sde.getStoptypeid());
+					event.setWarnDesc(stoptype.getName());
+				}
+				event.setStartTime(sde.getStarttime());
+				event.setStopTime(sde.getStoptime());
+				event.setStopHours(sde.getStophours());
+				event.setStopTypeId(sde.getStoptypeid());
+				event.setStatusCode(sde.getStatuscode());
+				sdelist.add(event);
+			}
+		}
+
+		return sdelist;
+
+	}
+
+
+
 }

+ 111 - 0
src/main/java/com/gyee/frame/service/StatejudgmentrecordService.java

@@ -0,0 +1,111 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.StatejudgmentrecordMapper;
+import com.gyee.frame.model.auto.Statejudgmentrecord;
+import com.gyee.frame.model.auto.StatejudgmentrecordExample;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.List;
+
+
+@Service
+public class StatejudgmentrecordService implements BaseService<Statejudgmentrecord, StatejudgmentrecordExample> {
+	@Resource
+	private StatejudgmentrecordMapper statejudgmentrecordMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<Integer> lista=Convert.toIntArrayList(ids);
+			StatejudgmentrecordExample example=new StatejudgmentrecordExample();
+			example.createCriteria().andIdIn(lista);
+			return statejudgmentrecordMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Statejudgmentrecord selectByPrimaryKey(String id) {
+				
+			return statejudgmentrecordMapper.selectByPrimaryKey(Integer.valueOf(id));
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Statejudgmentrecord record) {
+		return statejudgmentrecordMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Statejudgmentrecord record) {
+				
+			
+				
+		return statejudgmentrecordMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Statejudgmentrecord record, StatejudgmentrecordExample example) {
+		
+		return statejudgmentrecordMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Statejudgmentrecord record, StatejudgmentrecordExample example) {
+		
+		return statejudgmentrecordMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Statejudgmentrecord> selectByExample(StatejudgmentrecordExample example) {
+		
+		return statejudgmentrecordMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(StatejudgmentrecordExample example) {
+		
+		return statejudgmentrecordMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(StatejudgmentrecordExample example) {
+		
+		return statejudgmentrecordMapper.deleteByExample(example);
+	}
+
+
+	public List<Statejudgmentrecord> getStatejudgmentrecordListBywtId(String wtId) {
+
+		List<Statejudgmentrecord> list=new ArrayList<>();
+
+		if (StringUtils.notEmp(wtId)  ) {
+
+			StatejudgmentrecordExample example=new StatejudgmentrecordExample();
+			example.setOrderByClause("statejudgment DESC");
+			StatejudgmentrecordExample.Criteria criteria =example.createCriteria();
+
+			criteria.andWtidEqualTo(wtId);
+			list= statejudgmentrecordMapper.selectByExample(example);
+
+		}
+		return list;
+
+	}
+}

+ 95 - 0
src/main/java/com/gyee/frame/service/StoptypeService.java

@@ -0,0 +1,95 @@
+package com.gyee.frame.service;
+
+import com.gyee.frame.common.base.BaseService;
+import com.gyee.frame.common.support.Convert;
+import com.gyee.frame.mapper.auto.StoptypeMapper;
+import com.gyee.frame.model.auto.Stoptype;
+import com.gyee.frame.model.auto.StoptypeExample;
+import com.gyee.frame.util.SnowflakeIdWorker;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+
+@Service
+public class StoptypeService implements BaseService<Stoptype, StoptypeExample> {
+	@Resource
+	private StoptypeMapper stoptypeMapper;
+	
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+				
+			List<String> lista=Convert.toListStrArray(ids);
+			StoptypeExample example=new StoptypeExample();
+			example.createCriteria().andIdIn(lista);
+			return stoptypeMapper.deleteByExample(example);
+			
+				
+	}
+	
+	
+	@Override
+	public Stoptype selectByPrimaryKey(String id) {
+				
+			return stoptypeMapper.selectByPrimaryKey(id);
+				
+	}
+
+	
+	@Override
+	public int updateByPrimaryKeySelective(Stoptype record) {
+		return stoptypeMapper.updateByPrimaryKeySelective(record);
+	}
+	
+	
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Stoptype record) {
+				
+		//添加雪花主键id
+		record.setId(SnowflakeIdWorker.getUUID());
+			
+				
+		return stoptypeMapper.insertSelective(record);
+	}
+	
+	
+	@Override
+	public int updateByExampleSelective(Stoptype record, StoptypeExample example) {
+		
+		return stoptypeMapper.updateByExampleSelective(record, example);
+	}
+
+	
+	@Override
+	public int updateByExample(Stoptype record, StoptypeExample example) {
+		
+		return stoptypeMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Stoptype> selectByExample(StoptypeExample example) {
+		
+		return stoptypeMapper.selectByExample(example);
+	}
+
+	
+	@Override
+	public long countByExample(StoptypeExample example) {
+		
+		return stoptypeMapper.countByExample(example);
+	}
+
+	
+	@Override
+	public int deleteByExample(StoptypeExample example) {
+		
+		return stoptypeMapper.deleteByExample(example);
+	}
+	
+
+}

+ 210 - 94
src/main/java/com/gyee/frame/service/health/HealthMainService.java

@@ -4,11 +4,13 @@ import com.gyee.frame.common.spring.Constant;
 import com.gyee.frame.common.spring.InitialRunner;
 import com.gyee.frame.model.auto.*;
 import com.gyee.frame.model.custom.DNAVal;
+import com.gyee.frame.model.custom.MatrixVo;
 import com.gyee.frame.model.custom.PointData;
 import com.gyee.frame.model.custom.ShutdowneventVo;
 import com.gyee.frame.service.*;
 import com.gyee.frame.util.DateUtils;
 import com.gyee.frame.util.IRealTimeDataBaseUtil;
+import com.gyee.frame.util.MathUtil;
 import com.gyee.frame.util.StringUtils;
 import com.gyee.frame.util.golden.EdosUtil;
 import org.springframework.stereotype.Service;
@@ -33,11 +35,14 @@ public class HealthMainService {
     private WindPowerstationTestingPointService windPowerstationTestingPointService;
 
 
-   private final int digit = 2;
+    private final int digit = 2;
     private final double NUM = 3.6;
     private final double XZNUM = 1.25;
+
     IRealTimeDataBaseUtil realApiUtil = new EdosUtil();
-   public Map<String, Object> findHealthMatrix() throws Exception {
+
+
+    public Map<String, Object> findHealthMatrix() throws Exception {
 
 
         Map<String, Object> map = new HashMap<String, Object>();
@@ -46,90 +51,90 @@ public class HealthMainService {
 
 
 
-                int ysl = 0;// 优数量
-                int lsl = 0;// 良数量
-                int csl = 0;// 差数量
+            int ysl = 0;// 优数量
+            int lsl = 0;// 良数量
+            int csl = 0;// 差数量
 
-                List<String[]> wtIdls = new ArrayList<String[]>();// 风机编号集合
+            List<String[]> wtIdls = new ArrayList<String[]>();// 风机编号集合
 
-                List<Windturbine> wtls = InitialRunner.wp_wtmap.get(wp.getId());
+            List<Windturbine> wtls = InitialRunner.wp_wtmap.get(wp.getId());
 
 
-                String[] jkpoints = new String[wtls.size()];
-                String[] ztpoints = new String[wtls.size()];
+            String[] jkpoints = new String[wtls.size()];
+            String[] ztpoints = new String[wtls.size()];
 
-                // 获得训练参数对象
-                for (int x = 0; x < wtls.size(); x++) {
+            // 获得训练参数对象
+            for (int x = 0; x < wtls.size(); x++) {
 
-                    Windturbine wt=wtls.get(x);
+                Windturbine wt=wtls.get(x);
 
-                    WindTurbineTestingPointAi2 jkztpoint =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wt.getId(),Constant.FJJKZZ);
-                    jkpoints[x] = jkztpoint.getId();
-                    WindTurbineTestingPointAi2 fjztpoint =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wt.getId(),Constant.FJZT);
-                    ztpoints[x] = fjztpoint.getId();
+                WindTurbineTestingPointAi2 jkztpoint =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wt.getId(),Constant.FJJKZZ);
+                jkpoints[x] = jkztpoint.getId();
+                WindTurbineTestingPointAi2 fjztpoint =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wt.getId(),Constant.FJZT);
+                ztpoints[x] = fjztpoint.getId();
 
-                }
+            }
 
-                // 获得风机健康状态结果数组
-                List<PointData> jkvalues = realApiUtil.getRealData(jkpoints);
-                // 获得风机实时状态结果数组
-                List<PointData> ztvalues = realApiUtil.getRealData(ztpoints);
+            // 获得风机健康状态结果数组
+            List<PointData> jkvalues = realApiUtil.getRealData(jkpoints);
+            // 获得风机实时状态结果数组
+            List<PointData> ztvalues = realApiUtil.getRealData(ztpoints);
 
 
-                Calendar cal2 = Calendar.getInstance();
-                Date end = cal2.getTime();
-                cal2.add(Calendar.DAY_OF_MONTH, -1);
-                Date begin = cal2.getTime();
-                for (int x = 0; x < wtls.size(); x++) {
-                    String wtId = wtls.get(x).getId();
-                    double jk = jkvalues.get(x).getPointValueInDouble();
-                    double zt = ztvalues.get(x).getPointValueInDouble();
+            Calendar cal2 = Calendar.getInstance();
+            Date end = cal2.getTime();
+            cal2.add(Calendar.DAY_OF_MONTH, -1);
+            Date begin = cal2.getTime();
+            for (int x = 0; x < wtls.size(); x++) {
+                String wtId = wtls.get(x).getId();
+                double jk = jkvalues.get(x).getPointValueInDouble();
+                double zt = ztvalues.get(x).getPointValueInDouble();
 
 
-                    if (zt == 2.0) {
+                if (zt == 2.0) {
 
-                        String[] str = new String[2];
+                    String[] str = new String[2];
+                    str[0] = wtId;
+                    str[1] = "3";
+                    wtIdls.add(str);
+                    csl++;
+                } else {
+                    String[] str = new String[2];
+                    if (jk >= 60) {
+                        str[0] = wtId;
+                        str[1] = "1";
+                        wtIdls.add(str);
+                        ysl++;
+                    } else if (jk < 60  && jk >= 30) {
+                        str[0] = wtId;
+                        str[1] = "2";
+                        wtIdls.add(str);
+                        lsl++;
+                    } else {
                         str[0] = wtId;
                         str[1] = "3";
                         wtIdls.add(str);
                         csl++;
-                    } else {
-                        String[] str = new String[2];
-                        if (jk >= 60) {
-                            str[0] = wtId;
-                            str[1] = "1";
-                            wtIdls.add(str);
-                            ysl++;
-                        } else if (jk < 60  && jk >= 30) {
-                            str[0] = wtId;
-                            str[1] = "2";
-                            wtIdls.add(str);
-                            lsl++;
-                        } else {
-                            str[0] = wtId;
-                            str[1] = "3";
-                            wtIdls.add(str);
-                            csl++;
-                        }
-
                     }
 
                 }
 
-                map.put(wp.getId() + "_csl", csl);
-                map.put(wp.getId() + "_lsl", lsl);
-                map.put(wp.getId() + "_ysl", ysl);
-                map.put(wp.getId() + "_wtIdls", wtIdls);
+            }
+
+            map.put(wp.getId() + "_csl", csl);
+            map.put(wp.getId() + "_lsl", lsl);
+            map.put(wp.getId() + "_ysl", ysl);
+            map.put(wp.getId() + "_wtIdls", wtIdls);
 
         }
 
         return map;
     }
-
     /**
      * 获得健康状态日情况图表
+     *
      * @param wpId
-     * @param num 多少个点
+     * @param num  多少个点
      * @param type 1、当日2、 7日3、当月
      * @return
      * @throws Exception
@@ -215,7 +220,7 @@ public class HealthMainService {
             for (int x = 0; x < wtidls.size(); x++) {
 
 
-                WindTurbineTestingPointAi2 ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x),codejkls.get(x));
+                WindTurbineTestingPointAi2 ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x), codejkls.get(x));
                 jkpoints[x] = ai.getId();
             }
 
@@ -288,9 +293,9 @@ public class HealthMainService {
     }
 
 
-
     /**
      * 获得全省健康状态基础数据
+     *
      * @return
      * @throws Exception
      */
@@ -333,7 +338,7 @@ public class HealthMainService {
 
                     String temp = wth.getWeather();
                     if (StringUtils.notEmp(temp)) {
-                        String strtemp=temp.substring(temp.length()-6,temp.length()-4);
+                        String strtemp = temp.substring(temp.length() - 6, temp.length() - 4);
                         tqyb = Double.valueOf(strtemp);
                     } else {
                         tqyb = 1.0;
@@ -351,7 +356,7 @@ public class HealthMainService {
                 }
                 // 获得实时风速测点编号
 
-                WindPowerStationTestingPoint2 point =windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wp.getId(),Constant.TPOINT_WP_SSFS);
+                WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wp.getId(), Constant.TPOINT_WP_SSFS);
                 String wppintId = point.getCode();
 
                 PointData ssfspoint = realApiUtil.getRealData(wppintId);
@@ -380,13 +385,12 @@ public class HealthMainService {
                 String[] ztpoints = new String[wtidls.size()];
 
 
-
                 // 获得训练参数对象
                 for (int x = 0; x < wtidls.size(); x++) {
 
-                    WindTurbineTestingPointAi2 ai1 =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x),codejkls.get(x));
+                    WindTurbineTestingPointAi2 ai1 = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x), codejkls.get(x));
                     jkpoints[x] = ai1.getId();
-                    WindTurbineTestingPointAi2 ai2 =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x),codeztls.get(x));
+                    WindTurbineTestingPointAi2 ai2 = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x), codeztls.get(x));
                     ztpoints[x] = ai2.getId();
 
                 }
@@ -407,23 +411,23 @@ public class HealthMainService {
                     double zt = ztvalues[x].DValue;
                     if (zt == 2.0) {
 
-                        List<ShutdowneventVo> svos=shutdowneventService.queryEvents(null,wtId, begin, end,null);
+                        List<ShutdowneventVo> svos = shutdowneventService.queryEvents(null, wtId, begin, end, null);
 
-                        List<Map<String, String>> stoptypels =new ArrayList<Map<String, String>>();
+                        List<Map<String, String>> stoptypels = new ArrayList<Map<String, String>>();
 
-                        if(!svos.isEmpty())
-                        {
-                            for(ShutdowneventVo vo:svos)
-                            {
-                                map.put("stopTypeId", vo.getStopTypeId());
-                                map.put("windTurbineId", vo.getWindTurbineId());
-                                map.put("stopTime", DateUtils.formatDateTime(vo.getStopTime()));
+                        if (!svos.isEmpty()) {
+                            for (ShutdowneventVo vo : svos) {
+                                Map<String, String> stoptypemap = new HashMap<String, String>();
+                                stoptypemap.put("stopTypeId", vo.getStopTypeId());
+                                stoptypemap.put("windTurbineId", vo.getWindTurbineId());
+                                stoptypemap.put("stopTime", DateUtils.formatDateTime(vo.getStopTime()));
 
                                 if (StringUtils.notEmp(vo.getWarningId()) && InitialRunner.warningmap.containsKey(vo.getWarningId())) {
-                                    map.put("warningId", InitialRunner.warningmap.get(vo.getWarningId()).getChinesetext());
+                                    stoptypemap.put("warningId", InitialRunner.warningmap.get(vo.getWarningId()).getChinesetext());
                                 } else {
-                                    map.put("warningId", " ");
+                                    stoptypemap.put("warningId", " ");
                                 }
+                                stoptypels.add(stoptypemap);
                             }
                         }
 
@@ -469,7 +473,7 @@ public class HealthMainService {
 
                             ysl++;
 
-                        } else if (jk < 60  && jk >= 30) {
+                        } else if (jk < 60 && jk >= 30) {
                             lhWtId.add(wtId);
                             lsl++;
                         } else {
@@ -501,6 +505,7 @@ public class HealthMainService {
 
     /**
      * 获得风场健康状态基础数据
+     *
      * @return
      * @throws Exception
      */
@@ -534,12 +539,12 @@ public class HealthMainService {
 
                 // 获得实时风速测点编号
 
-                WindPowerStationTestingPoint2 point =windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpId,Constant.TPOINT_WP_RFDL);
+                WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_RFDL);
                 String wppintId1 = point.getCode();
                 PointData ssfspoint1 = realApiUtil.getRealData(wppintId1);
                 double rfdl = StringUtils.round(ssfspoint1.getPointValueInDouble(), digit);
 
-                WindPowerStationTestingPoint2 point2 =windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpId,Constant.TPOINT_WP_YFDL);
+                WindPowerStationTestingPoint2 point2 = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpId, Constant.TPOINT_WP_YFDL);
                 String wppintId2 = point2.getCode();
                 PointData ssfspoint2 = realApiUtil.getRealData(wppintId2);
                 double yfdl = StringUtils.round(ssfspoint2.getPointValueInDouble(), digit);
@@ -642,9 +647,9 @@ public class HealthMainService {
                 // 获得训练参数对象
                 for (int x = 0; x < wtidls.size(); x++) {
 
-                    WindTurbineTestingPointAi2 ai1 =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x),codejkls.get(x));
+                    WindTurbineTestingPointAi2 ai1 = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x), codejkls.get(x));
                     jkpoints[x] = ai1.getId();
-                    WindTurbineTestingPointAi2 ai2 =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x),codeztls.get(x));
+                    WindTurbineTestingPointAi2 ai2 = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtidls.get(x), codeztls.get(x));
                     ztpoints[x] = ai2.getId();
 
                 }
@@ -673,23 +678,23 @@ public class HealthMainService {
 
                     if (zt == 2.0) {
 
-                        List<ShutdowneventVo> svos=shutdowneventService.queryEvents(null,wtId, begin, end,null);
+                        List<ShutdowneventVo> svos = shutdowneventService.queryEvents(null, wtId, begin, end, null);
 
-                        List<Map<String, String>> stoptypels =new ArrayList<Map<String, String>>();
+                        List<Map<String, String>> stoptypels = new ArrayList<Map<String, String>>();
 
-                        if(!svos.isEmpty())
-                        {
-                            for(ShutdowneventVo vo:svos)
-                            {
-                                map.put("stopTypeId", vo.getStopTypeId());
-                                map.put("windTurbineId", vo.getWindTurbineId());
-                                map.put("stopTime", DateUtils.formatDateTime(vo.getStopTime()));
+                        if (!svos.isEmpty()) {
+                            for (ShutdowneventVo vo : svos) {
+                                Map<String, String> stoptypemap = new HashMap<String, String>();
+                                stoptypemap.put("stopTypeId", vo.getStopTypeId());
+                                stoptypemap.put("windTurbineId", vo.getWindTurbineId());
+                                stoptypemap.put("stopTime", DateUtils.formatDateTime(vo.getStopTime()));
 
                                 if (StringUtils.notEmp(vo.getWarningId()) && InitialRunner.warningmap.containsKey(vo.getWarningId())) {
-                                    map.put("warningId", InitialRunner.warningmap.get(vo.getWarningId()).getChinesetext());
+                                    stoptypemap.put("warningId", InitialRunner.warningmap.get(vo.getWarningId()).getChinesetext());
                                 } else {
-                                    map.put("warningId", " ");
+                                    stoptypemap.put("warningId", " ");
                                 }
+                                stoptypels.add(stoptypemap);
                             }
                         }
                         if (StringUtils.notEmp(stoptypels) && !stoptypels.isEmpty()) {
@@ -697,7 +702,7 @@ public class HealthMainService {
                                 Map<String, String> strmap = stoptypels.get(0);
 
                                 String stoptype = strmap.get("stopTypeId");
-                                if(stoptype==null) {
+                                if (stoptype == null) {
                                     continue;
 
                                 }
@@ -744,7 +749,7 @@ public class HealthMainService {
                             str[1] = "1";
                             wtIdls.add(str);
                             ysl++;
-                        } else if (jk < 60  && jk >= 30) {
+                        } else if (jk < 60 && jk >= 30) {
                             str[0] = wtId;
                             str[1] = "2";
                             wtIdls.add(str);
@@ -825,13 +830,13 @@ public class HealthMainService {
                 Map<Double, Windturbinepowercurvefitting> map = InitialRunner.wpcmap.get(wt.getId());
 
                 Set<Map.Entry<Double, Integer>> set = speedmap.entrySet();
-                for (Iterator<Map.Entry<Double, Integer>> it = set.iterator(); it.hasNext();) {
+                for (Iterator<Map.Entry<Double, Integer>> it = set.iterator(); it.hasNext(); ) {
                     Map.Entry<Double, Integer> entry = (Map.Entry<Double, Integer>) it.next();
                     // System.out.println(entry.getKey() + "--->" +
                     // entry.getValue());
 
                     double speed = entry.getKey() > 24.99 ? entry.getKey() : 24.99;
-                    if (null!=map && map.containsKey(speed)) {
+                    if (null != map && map.containsKey(speed)) {
                         Windturbinepowercurvefitting wc = map.get(speed);
 
                         double actualpower = wc.getActualpower();
@@ -860,4 +865,115 @@ public class HealthMainService {
         }
         return StringUtils.round(power, 2);
     }
+
+
+    public Map<String, Object> findHealthMatrixMap() throws Exception {
+        Map<String, Object> map = new HashMap<String, Object>();
+
+
+        //        Map<String, List<MatrixVo>> fjmap = new HashMap<>();
+        List<List<MatrixVo>> fjvos = new ArrayList<>();
+        Map<String, Map<String, Object>> fczbmap = new HashMap<>();
+        for (Windpowerstation wp : InitialRunner.wpls) {
+
+            Map<String, Object> jczbmap = new HashMap<>();
+
+
+            jczbmap.put("name", wp.getName());
+            /*************************************************风场指标统计*************************************************************/
+
+
+            List<String> jczbls = new ArrayList<>();
+            //良好状态数量
+            jczbls.add(windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wp.getId(), Constant.FJLHSL).getCode());
+            //正常状态数量
+            jczbls.add(windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wp.getId(), Constant.FJZCSL).getCode());
+            //注意状态数量
+            jczbls.add(windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wp.getId(), Constant.FJZYSL).getCode());
+            //严重状态数量
+            jczbls.add(windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wp.getId(), Constant.FJYZSL).getCode());
+
+
+
+            List<PointData> jczblist = realApiUtil.getRealData(jczbls);
+
+            if (!jczblist.isEmpty() && jczblist.size() == jczbls.size()) {
+
+                //良好状态数量
+                jczbmap.put("lhsl", MathUtil.twoBit(jczblist.get(0).getPointValueInDouble()));
+                //正常状态数量
+                jczbmap.put("zcsl", MathUtil.twoBit(jczblist.get(1).getPointValueInDouble()));
+                //注意状态数量
+                jczbmap.put("zysl", MathUtil.twoBit(jczblist.get(2).getPointValueInDouble()));
+                //严重状态数量
+                jczbmap.put("yzsl", MathUtil.twoBit(jczblist.get(3).getPointValueInDouble()));
+
+            } else {
+                //良好状态数量
+                jczbmap.put("lhsl", 0.0);
+                //正常状态数量
+                jczbmap.put("zcsl", 0.0);
+                //注意状态数量
+                jczbmap.put("zysl", 0.0);
+                //严重状态数量
+                jczbmap.put("yzsl", 0.0);
+            }
+
+            fczbmap.put(wp.getId(), jczbmap);
+/*************************************************风场指标统计*************************************************************/
+
+
+/*************************************************风机指标统计*************************************************************/
+            List<String> fjzbls = new ArrayList<>();
+
+            List<Windturbine> wtls = InitialRunner.wp_wtmap.get(wp.getId());
+
+            List<MatrixVo> vos = new ArrayList<>();
+
+            for (Windturbine wt : wtls) {
+                //风机状态
+                fjzbls.add(windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wt.getId(), Constant.FJJKZT).getId());
+
+            }
+
+            List<PointData> fjzblist = realApiUtil.getRealData(fjzbls);
+
+            if (!fjzblist.isEmpty() && fjzblist.size() == fjzbls.size()) {
+
+                for (int i = 0; i < wtls.size(); i++) {
+                    Windturbine wt = wtls.get(i);
+
+                    MatrixVo vo = new MatrixVo();
+                    vo.setWtId(wt.getId());
+                    if (StringUtils.notEmp(wt.getStatus())) {
+                        String num = wt.getStatus().substring(wt.getStatus().length() - 3);
+                        vo.setWtnum(num);
+
+                    }
+
+                    double fjzt = MathUtil.twoBit(fjzblist.get(i).getPointValueInDouble());
+
+                    vo.setFjzt(fjzt);
+                    vo.setWtCode(wt.getCode());
+                    vo.setWpId(wt.getWindpowerstationid());
+                    vos.add(vo);
+
+                }
+
+            }
+            fjvos.add(vos);
+
+/*************************************************风机指标统计*************************************************************/
+
+        }
+        //风场待机台数
+        map.put("fczbmap", fczbmap);
+        //风机指标对象
+        map.put("fjmap", fjvos);
+
+
+
+
+        return map;
+    }
 }

+ 424 - 0
src/main/java/com/gyee/frame/service/health/HealthOperationService.java

@@ -0,0 +1,424 @@
+package com.gyee.frame.service.health;
+
+import com.gyee.frame.common.spring.Constant;
+import com.gyee.frame.common.spring.InitialRunner;
+import com.gyee.frame.model.auto.Project;
+import com.gyee.frame.model.auto.WindPowerStationTestingPoint2;
+import com.gyee.frame.model.auto.Windpowerstation;
+import com.gyee.frame.model.custom.PointData;
+import com.gyee.frame.service.*;
+import com.gyee.frame.util.IRealTimeDataBaseUtil;
+import com.gyee.frame.util.golden.EdosUtil;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+@Service
+public class HealthOperationService {
+
+    @Resource
+    private WindTurbineTestingPointAiService windTurbineTestingPointAiService;
+    @Resource
+    private WeatherfhService weatherfhService;
+    @Resource
+    private WeatherfdService weatherfdService;
+    @Resource
+    private ShutdowneventService shutdowneventService;
+    @Resource
+    private WindPowerstationTestingPointService windPowerstationTestingPointService;
+
+    private final String QS = "0";
+
+    private final int digit = 2;
+    private final double NUM = 3.6;
+    private final double XZNUM = 1.25;
+    IRealTimeDataBaseUtil realApiUtil = new EdosUtil();
+
+    /**
+     * 获得全省各种状态数量
+     * @return
+     * @throws Exception
+     */
+    public Map<String, Integer> countWpNumStatus() throws Exception {
+
+        Map<String, Integer> mapstatus = new HashMap<String, Integer>();
+
+        List<String> idls=new ArrayList<>();
+
+        WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(QS, Constant.FJZCSL);
+        idls.add(point.getCode());// 合格(正常)
+        point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(QS, Constant.FJLHSL);
+        idls.add(point.getCode());// 良好
+        point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(QS, Constant.FJZYSL);
+        idls.add(point.getCode());// 注意
+        point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(QS, Constant.FJYZSL);
+        idls.add(point.getCode());// 严重
+
+
+        List<PointData> pols=realApiUtil.getRealData(idls);
+
+        if(!pols.isEmpty() && pols.size()==idls.size())
+        {
+            Integer zc = ((Double) pols.get(0).getPointValueInDouble()).intValue();
+            Integer lh = ((Double) pols.get(1).getPointValueInDouble()).intValue();
+            Integer zy = ((Double) pols.get(2).getPointValueInDouble()).intValue();
+            Integer yz = ((Double) pols.get(3).getPointValueInDouble()).intValue();
+
+            mapstatus.put("zc", zc);
+            mapstatus.put("lh", lh);
+            mapstatus.put("zy", zy);
+            mapstatus.put("yz", yz);
+        }
+
+
+        return mapstatus;
+    }
+
+    /**
+     * 健康状态占比图表
+     * @param type
+     * @return
+     * @throws Exception
+     */
+    public Map<String, Object> countWpOrProStatus(String type) throws Exception {
+
+        Map<String, Object> mapstatus = new HashMap<String, Object>();
+
+
+        List<Integer> hgList = new ArrayList<Integer>();
+        List<Integer> lhList = new ArrayList<Integer>();
+        List<Integer> zyList = new ArrayList<Integer>();
+        List<Integer> yzList = new ArrayList<Integer>();
+        List<String> name = new ArrayList<String>();
+        if ("1".equals(type)) {
+            List<Windpowerstation> wpList = InitialRunner.wpls;
+            for (int i = 0; i < wpList.size(); i++) {
+                if (wpList.get(i).getCode().indexOf("_FDC") > 0) {
+                    List<String> idls=new ArrayList<>();
+
+                    WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJZCSL);
+                    idls.add(point.getCode());// 合格(正常)
+                    point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJLHSL);
+                    idls.add(point.getCode());// 良好
+                    point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJZYSL);
+                    idls.add(point.getCode());// 注意
+                    point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJYZSL);
+                    idls.add(point.getCode());// 严重
+
+                    List<PointData> pols=realApiUtil.getRealData(idls);
+
+                    if(!pols.isEmpty() && pols.size()==idls.size())
+                    {
+                        Integer zc = ((Double) pols.get(0).getPointValueInDouble()).intValue();
+                        Integer lh = ((Double) pols.get(1).getPointValueInDouble()).intValue();
+                        Integer zy = ((Double) pols.get(2).getPointValueInDouble()).intValue();
+                        Integer yz = ((Double) pols.get(3).getPointValueInDouble()).intValue();
+
+                        hgList.add(zc);
+                        lhList.add(lh);
+                        zyList.add(zy);
+                        yzList.add(yz);
+
+                    }
+
+                    name.add(wpList.get(i).getName());
+                }
+            }
+            mapstatus.put("hgList", hgList);
+            mapstatus.put("lhList", lhList);
+            mapstatus.put("zyList", zyList);
+            mapstatus.put("yzList", yzList);
+            mapstatus.put("name", name);
+
+        } else if ("2".equals(type)) {
+            List<Project> pList = InitialRunner.pjls;
+            for (int i = 0; i < pList.size(); i++) {
+                if (pList.get(i).getWindpowerstationid().indexOf("_FDC") > 0) {
+                    List<String> idls=new ArrayList<>();
+
+                    WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJZCSL);
+                    idls.add(point.getCode());// 合格(正常)
+                    point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJLHSL);
+                    idls.add(point.getCode());// 良好
+                    point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJZYSL);
+                    idls.add(point.getCode());// 注意
+                    point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJYZSL);
+                    idls.add(point.getCode());// 严重
+
+                    List<PointData> pols=realApiUtil.getRealData(idls);
+
+                    if(!pols.isEmpty() && pols.size()==idls.size())
+                    {
+                        Integer zc = ((Double) pols.get(0).getPointValueInDouble()).intValue();
+                        Integer lh = ((Double) pols.get(1).getPointValueInDouble()).intValue();
+                        Integer zy = ((Double) pols.get(2).getPointValueInDouble()).intValue();
+                        Integer yz = ((Double) pols.get(3).getPointValueInDouble()).intValue();
+
+                        hgList.add(zc);
+                        lhList.add(lh);
+                        zyList.add(zy);
+                        yzList.add(yz);
+
+                    }
+                    name.add(pList.get(i).getName());
+                }
+            }
+            mapstatus.put("hgList", hgList);
+            mapstatus.put("lhList", lhList);
+            mapstatus.put("zyList", zyList);
+            mapstatus.put("yzList", yzList);
+            mapstatus.put("name", name);
+        }
+
+        return mapstatus;
+    }
+
+
+    private Map<String, Object> findWpOrProStatusForHistory(String type, String status) throws Exception {
+        Map<String, Object> mapstatus = new HashMap<String, Object>();
+
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
+        List<Integer> lhList = new ArrayList<Integer>();
+        List<Integer> zyList = new ArrayList<Integer>();
+        List<Integer> yzList = new ArrayList<Integer>();
+        Calendar cl = Calendar.getInstance();
+        cl.set(Calendar.HOUR_OF_DAY, 0);
+        cl.set(Calendar.MINUTE, 0);
+        cl.set(Calendar.SECOND, 0);
+        Long start = cl.getTimeInMillis();
+        Long end = new Date().getTime();
+        if ("1".equals(type)) {
+            List<Windpowerstation> wpList = InitialRunner.wpls;
+
+            for (int i = 0; i < wpList.size(); i++) {
+                List<Integer> hgList = new ArrayList<Integer>();
+                List<String> tList = new ArrayList<String>();
+                if (wpList.get(i).getCode().indexOf("_FDC") > 0) {
+                    if ("1".equals(status)) {
+                        WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJZCSL);
+                        String hgCode = point.getCode();// 合格(正常)
+                         point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJLHSL);
+                        String lhCode = point.getCode();// 良好
+                        List<PointData> phgList = realApiUtil.getHistoryDatasSnap(hgCode, start / 1000, end / 1000, 1L,
+                                15 * 60L);
+                        List<PointData> plhList = realApiUtil.getHistoryDatasSnap(lhCode, start / 1000, end / 1000, 1L,
+                                15 * 60L);
+
+                        if (phgList.size() >= plhList.size()) {
+                            for (int ii = 0; ii < phgList.size(); ii++) {
+                                if (plhList.get(ii) == null) {
+                                    Integer total = ((Double) phgList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(phgList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) phgList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) plhList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(phgList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+
+                            }
+                            mapstatus.put(wpList.get(i).getCode(), hgList);
+                            mapstatus.put("time", tList);
+                        } else {
+                            for (int ii = 0; ii < plhList.size(); ii++) {
+                                if (phgList.get(ii) == null) {
+                                    Integer total = ((Double) plhList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(plhList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) plhList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) phgList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(plhList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+                                mapstatus.put(wpList.get(i).getCode(), hgList);
+                                mapstatus.put("time", tList);
+                            }
+                        }
+
+                    } else {
+
+                        WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJZYSL);
+                        String zyCode = point.getCode();// 注意
+                        point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(wpList.get(i).getId(), Constant.FJYZSL);
+                        String yzCode = point.getCode();// 严重
+                        List<PointData> pzyList = realApiUtil.getHistoryDatasSnap(zyCode, start / 1000, end / 1000, 0L,
+                                15 * 60L);
+                        List<PointData> pyzList = realApiUtil.getHistoryDatasSnap(yzCode, start / 1000, end / 1000, 0L,
+                                15 * 60L);
+
+                        if (pzyList.size() >= pyzList.size()) {
+                            for (int ii = 0; ii < pzyList.size(); ii++) {
+                                if (pyzList.get(ii) == null) {
+                                    Integer total = ((Double) pzyList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pzyList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) pzyList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) pyzList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pzyList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+                                mapstatus.put(wpList.get(i).getCode(), hgList);
+                                mapstatus.put("time", tList);
+                            }
+                        } else {
+                            for (int ii = 0; ii < pyzList.size(); ii++) {
+                                if (pzyList.get(ii) == null) {
+                                    Integer total = ((Double) pyzList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pzyList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) pyzList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) pzyList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pzyList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+
+                            }
+                            mapstatus.put(wpList.get(i).getCode(), hgList);
+                            mapstatus.put("time", tList);
+                        }
+
+                    }
+
+                }
+            }
+
+        } else if ("2".equals(type)) {
+            List<Project> pList = InitialRunner.pjls;
+            for (int i = 0; i < pList.size(); i++) {
+                List<Integer> hgList = new ArrayList<Integer>();
+                List<String> tList = new ArrayList<String>();
+                if (pList.get(i).getWindpowerstationid().indexOf("_FDC") > 0) {
+                    if ("1".equals(status)) {
+                        WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJZCSL);
+                        String hgCode = point.getCode();// 合格(正常)
+                        point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJLHSL);
+                        String lhCode = point.getCode();// 良好
+                        List<PointData> phgList = realApiUtil.getHistoryDatasSnap(hgCode, start / 1000, end / 1000, 0L,
+                                15 * 60L);
+                        List<PointData> plhList = realApiUtil.getHistoryDatasSnap(lhCode, start / 1000, end / 1000, 0L,
+                                15 * 60L);
+
+                        if (phgList.size() >= plhList.size()) {
+                            for (int ii = 0; ii < phgList.size(); ii++) {
+                                if (plhList.get(ii) == null) {
+                                    Integer total = ((Double) phgList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(phgList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) phgList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) plhList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(phgList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+
+                            }
+                            mapstatus.put(pList.get(i).getCode(), hgList);
+                            mapstatus.put("time", tList);
+                        } else {
+                            for (int ii = 0; ii < plhList.size(); ii++) {
+                                if (phgList.get(ii) == null) {
+                                    Integer total = ((Double) plhList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(plhList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) plhList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) phgList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(plhList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+
+                            }
+                            mapstatus.put(pList.get(i).getCode(), hgList);
+                            mapstatus.put("time", tList);
+                        }
+
+                    } else {
+                        WindPowerStationTestingPoint2 point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJZYSL);
+                        String zyCode = point.getCode();// 注意
+                        point = windPowerstationTestingPointService.getWindPowerStationTestingPoint2(pList.get(i).getId(), Constant.FJYZSL);
+                        String yzCode = point.getCode();// 严重
+                        List<PointData> pzyList = realApiUtil.getHistoryDatasSnap(zyCode, start / 1000, end / 1000, 0L,
+                                15 * 60L);
+                        List<PointData> pyzList = realApiUtil.getHistoryDatasSnap(yzCode, start / 1000, end / 1000, 0L,
+                                15 * 60L);
+
+                        if (pzyList.size() >= pyzList.size()) {
+                            for (int ii = 0; ii < pzyList.size(); ii++) {
+                                if (pyzList.get(ii) == null) {
+                                    Integer total = ((Double) pzyList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pzyList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) pzyList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) pyzList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pzyList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+                            }
+                            mapstatus.put(pList.get(i).getCode(), hgList);
+                            mapstatus.put("time", tList);
+                        } else {
+                            for (int ii = 0; ii < pyzList.size(); ii++) {
+                                if (pzyList.get(ii) == null) {
+                                    Integer total = ((Double) pyzList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pyzList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                } else {
+                                    Integer total = ((Double) pyzList.get(ii).getPointValueInDouble()).intValue()
+                                            + ((Double) pzyList.get(ii).getPointValueInDouble()).intValue();
+                                    String time = sdf.format(new Date(pyzList.get(ii).getPointTime() * 1000));
+                                    time = time.substring(time.length() - 5);
+                                    hgList.add(total);
+                                    tList.add(time);
+                                }
+                            }
+                            mapstatus.put(pList.get(i).getCode(), hgList);
+                            mapstatus.put("time", tList);
+                        }
+
+                    }
+
+                }
+            }
+
+        }
+        return mapstatus;
+    }
+
+}

+ 857 - 0
src/main/java/com/gyee/frame/service/health/HealthSubService.java

@@ -0,0 +1,857 @@
+package com.gyee.frame.service.health;
+
+import com.gyee.frame.common.spring.Constant;
+import com.gyee.frame.common.spring.InitialRunner;
+import com.gyee.frame.model.auto.*;
+import com.gyee.frame.model.custom.*;
+import com.gyee.frame.service.*;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.IRealTimeDataBaseUtil;
+import com.gyee.frame.util.StringUtils;
+import com.gyee.frame.util.golden.EdosUtil;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+import java.util.*;
+
+@Service
+public class HealthSubService {
+
+    @Resource
+    private WindTurbineTestingPointAiService windTurbineTestingPointAiService;
+    @Resource
+    private FailurestatisticsmainService failurestatisticsmainService;
+    @Resource
+    private EarlywarningmainService earlywarningmainService;
+    @Resource
+    private PartstatisticsmainService partstatisticsmainService;
+    @Resource
+    private Daylygradeassessmentmain2Service daylygradeassessmentmain2Service;
+    @Resource
+    private Monthlygradeassessmentmain2Service monthlygradeassessmentmain2Service;
+    @Resource
+    private ShutdowneventService shutdowneventService;
+    @Resource
+    private StatejudgmentrecordService statejudgmentrecordService;
+    @Resource
+    private CurvefittingsubService curvefittingsubService;
+    @Resource
+    private ParttemperaturesubService parttemperaturesubService;
+
+    private final int digit = 2;
+    private final double NUM = 3.6;
+    private final double XZNUM = 1.25;
+    IRealTimeDataBaseUtil realApiUtil = new EdosUtil();
+    /*********************************************风机明细页面******************************************************/
+    /**
+     * 获取健康管理风机部件基础信息
+     *
+     * @param wtId
+     * @return
+     * @throws Exception
+     */
+    public Map<String, Map<String, Object>> findPartHealthInfo(String wtId) throws Exception {
+
+        Map<String, Map<String, Object>> map = new HashMap<>();
+
+        Map<String, Object> clxmap = new HashMap<>();
+        Map<String, Object> fdjmap = new HashMap<>();
+        Map<String, Object> bjmap = new HashMap<>();
+        Map<String, Object> zkmap = new HashMap<>();
+        Map<String, Object> zzmap = new HashMap<>();
+        Map<String, Object> phmap = new HashMap<>();
+        Map<String, Object> jcmap = new HashMap<>();
+        Map<String, Object> bpqmap = new HashMap<>();
+        Map<String, Object> fjmap = new HashMap<>();
+
+        int totalscore = 0;
+
+        // 获得风机健康状态结果数组
+        String[] jkpoints = new String[5];
+
+        WindTurbineTestingPointAi2 ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.CLXJKZT);
+        jkpoints[0] = ai.getId();
+        ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.FDJJKZT);
+        jkpoints[1] = ai.getId();
+        ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.BJJKZT);
+        jkpoints[2] = ai.getId();
+        ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.ZKJKZT);
+        jkpoints[3] = ai.getId();
+        ai = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.FJJKZT);
+        jkpoints[4] = ai.getId();
+
+        DNAVal[] ssjkvalues = realApiUtil.getRealtimeTagValues(jkpoints);
+
+
+        clxmap.put("jkzt", String.valueOf(ssjkvalues[0].DValue));
+        fdjmap.put("jkzt", String.valueOf(ssjkvalues[1].DValue));
+        bjmap.put("jkzt", String.valueOf(ssjkvalues[2].DValue));
+        zkmap.put("jkzt", String.valueOf(ssjkvalues[3].DValue));
+        fjmap.put("jkzt", String.valueOf(ssjkvalues[4].DValue));
+
+
+        totalscore = calScore(totalscore, ssjkvalues[0].DValue);
+        totalscore = calScore(totalscore, ssjkvalues[1].DValue);
+        totalscore = calScore(totalscore, ssjkvalues[2].DValue);
+        totalscore = calScore(totalscore, ssjkvalues[3].DValue);
+
+
+        zzmap.put("jkzt", "1.0");
+        phmap.put("jkzt", "1.0");
+        jcmap.put("jkzt", "1.0");
+        bpqmap.put("jkzt", "1.0");
+
+
+        Windturbine wt = InitialRunner.wtmap.get(wtId);
+
+        int smlv = 0;
+
+        if (StringUtils.notEmp(wt.getFirstintegratedtime())) {
+            Calendar cal = Calendar.getInstance();
+            cal.setTime(wt.getFirstintegratedtime());
+            cal.set(Calendar.HOUR_OF_DAY, 0);
+            cal.set(Calendar.MINUTE, 0);
+            cal.set(Calendar.SECOND, 0);
+
+            Date beginDate = cal.getTime();
+            cal.add(Calendar.YEAR, 9);
+            cal.set(Calendar.HOUR_OF_DAY, 0);
+            cal.set(Calendar.MINUTE, 0);
+            cal.set(Calendar.SECOND, 0);
+            Date endDate = cal.getTime();
+            // 获得开始使用到设备报废的小时
+            double smsj = DateUtils.hoursDiff(beginDate, endDate);
+            cal = Calendar.getInstance();
+            cal.setTime(wt.getFirstintegratedtime());
+            cal.set(Calendar.HOUR_OF_DAY, 0);
+            cal.set(Calendar.MINUTE, 0);
+            cal.set(Calendar.SECOND, 0);
+
+            beginDate = cal.getTime();
+            cal = Calendar.getInstance();
+            cal.set(Calendar.HOUR_OF_DAY, 0);
+            cal.set(Calendar.MINUTE, 0);
+            cal.set(Calendar.SECOND, 0);
+            endDate = cal.getTime();
+            // 当前使用时间小时
+            double syxs = DateUtils.daysDiff(beginDate, endDate);
+
+            // 寿命使用率
+            smlv = 100 - new BigDecimal(syxs).divide(new BigDecimal(smsj), 4, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).intValue();
+        } else {
+            smlv = 100;
+        }
+
+        clxmap.put("smsyl", String.valueOf(smlv));
+        fdjmap.put("smsyl", String.valueOf(smlv));
+        bjmap.put("smsyl", String.valueOf(smlv));
+        zkmap.put("smsyl", String.valueOf(smlv));
+        zzmap.put("smsyl", String.valueOf(smlv));
+        phmap.put("smsyl", String.valueOf(smlv));
+        jcmap.put("smsyl", String.valueOf(smlv));
+        bpqmap.put("smsyl", String.valueOf(smlv));
+
+        int fjsmlv = new BigDecimal(totalscore).divide(new BigDecimal(32), 0, RoundingMode.HALF_EVEN).intValue();
+
+        fjmap.put("smsyl", String.valueOf(fjsmlv));
+
+
+        map.put("clx", clxmap);
+        map.put("fdj", fdjmap);
+        map.put("bj", bjmap);
+        map.put("zk", zkmap);
+        map.put("zz", zzmap);
+        map.put("ph", phmap);
+        map.put("jc", jcmap);
+        map.put("bpq", bpqmap);
+
+        map.put("fj", fjmap);
+
+
+        return map;
+    }
+
+    private int calScore(int total, double score) {
+        if (score == 1) {
+            total = total + 4;
+        } else if (score == 2) {
+            total = total + 3;
+        } else if (score == 3) {
+            total = total + 2;
+        } else if (score == 4) {
+            total = total + 1;
+        }
+
+        return total;
+    }
+
+    /**
+     * 故障数据统计
+     * @param wtId
+     * @param recodedate
+     * @return
+     */
+    public List<GzfxVo> initalGzjfx(String wtId, Date recodedate) {
+        List<Failurestatisticsmain> ewls = failurestatisticsmainService.getFailurestatisticsmainListBywtId(wtId, recodedate);
+        List<GzfxVo> ls = new ArrayList<GzfxVo>();
+        if (!ewls.isEmpty()) {
+            Failurestatisticsmain po = ewls.get(0);
+            GzfxVo vo1 = new GzfxVo();
+            vo1.setName("1天故障数据分析");
+            vo1.setTop1gzname(po.getDay1top1name());
+            vo1.setTop1gznum(po.getDay1top1());
+            vo1.setTop2gzname(po.getDay1top2name());
+            vo1.setTop2gznum(po.getDay1top2());
+            vo1.setTop3gzname(po.getDay1top3name());
+            vo1.setTop3gznum(po.getDay1top3());
+            ls.add(vo1);
+
+            GzfxVo vo2 = new GzfxVo();
+            vo2.setName("3天故障数据分析");
+            vo2.setTop1gzname(po.getDay3top1name());
+            vo2.setTop1gznum(po.getDay3top1());
+            vo2.setTop2gzname(po.getDay3top2name());
+            vo2.setTop2gznum(po.getDay3top2());
+            vo2.setTop3gzname(po.getDay3top3name());
+            vo2.setTop3gznum(po.getDay3top3());
+            ls.add(vo2);
+        }
+        return ls;
+    }
+
+    /**
+     * 预警数据统计
+     * @param wtId
+     * @param recodedate
+     * @return
+     */
+    public List<YjfxVo> initalYjfx(String wtId, Date recodedate) {
+        List<Earlywarningmain> ewls = earlywarningmainService.getEarlywarningmainListBywtId(wtId, recodedate);
+        List<YjfxVo> ls = new ArrayList<YjfxVo>();
+        if (!ewls.isEmpty()) {
+            Earlywarningmain po = ewls.get(0);
+            YjfxVo vo1 = new YjfxVo();
+            vo1.setName("1天预警数据分析");
+            vo1.setTop1gzname(po.getDay1top1name());
+            vo1.setTop1gznum(po.getDay1top1());
+            vo1.setTop2gzname(po.getDay1top2name());
+            vo1.setTop2gznum(po.getDay1top2());
+            vo1.setTop3gzname(po.getDay1top3name());
+            vo1.setTop3gznum(po.getDay1top3());
+            ls.add(vo1);
+
+            YjfxVo vo2 = new YjfxVo();
+            vo2.setName("3天预警数据分析");
+            vo2.setTop1gzname(po.getDay3top1name());
+            vo2.setTop1gznum(po.getDay3top1());
+            vo2.setTop2gzname(po.getDay3top2name());
+            vo2.setTop2gznum(po.getDay3top2());
+            vo2.setTop3gzname(po.getDay3top3name());
+            vo2.setTop3gznum(po.getDay3top3());
+            ls.add(vo2);
+        }
+        return ls;
+    }
+
+    /**
+     * 部件运行数据
+     * @param wtId
+     * @param recodedate
+     * @return
+     */
+    public List<YxfxVo> initalYxfx(String wtId, Date recodedate) {
+        List<Partstatisticsmain> psls = partstatisticsmainService.getPartstatisticsmainListBywtId(wtId, recodedate);
+        List<YxfxVo> ls = new ArrayList<YxfxVo>();
+        if (!psls.isEmpty()) {
+
+            Partstatisticsmain po = psls.get(0);
+            int day1fdj = po.getDay1fdj();
+            int day1clx = po.getDay1clx();
+            int day1zz = po.getDay1zz();
+            int day1bj = po.getDay1bj();
+            int day1ph = po.getDay1ph();
+            int day1jc = po.getDay1jc();
+            int day1bpq = po.getDay1bpq();
+            int day1zk = po.getDay1zk();
+
+            int day3fdj = po.getDay3fdj();
+            int day3clx = po.getDay3clx();
+            int day3zz = po.getDay3zz();
+            int day3bj = po.getDay3bj();
+            int day3ph = po.getDay3ph();
+            int day3jc = po.getDay3jc();
+            int day3bpq = po.getDay3bpq();
+            int day3zk = po.getDay3zk();
+
+            YxfxVo vo1 = new YxfxVo();
+            vo1.setName("1天运行数据分析");
+            vo1.setNumbj(day1bj);
+            vo1.setNumbpq(day1bpq);
+            vo1.setNumclx(day1clx);
+            vo1.setNumfdj(day1fdj);
+            vo1.setNumjc(day1jc);
+            vo1.setNumph(day1ph);
+            vo1.setNumzk(day1zk);
+            vo1.setNumzz(day1zz);
+
+            ls.add(vo1);
+
+            YxfxVo vo2 = new YxfxVo();
+            vo2.setName("3天运行数据分析");
+            vo2.setNumbj(day3bj);
+            vo2.setNumbpq(day3bpq);
+            vo2.setNumclx(day3clx);
+            vo2.setNumfdj(day3fdj);
+            vo2.setNumjc(day3jc);
+            vo2.setNumph(day3ph);
+            vo2.setNumzk(day3zk);
+            vo2.setNumzz(day3zz);
+
+            ls.add(vo2);
+        }
+        return ls;
+    }
+
+    /**
+     * 获得日、月等级评估
+     * @param cal
+     * @param wtId
+     * @return
+     */
+    public List<XnfxVo> initalXnfx(String wtId,Calendar cal) {
+
+        List<XnfxVo> ls = new ArrayList<XnfxVo>();
+
+
+        cal.add(Calendar.DAY_OF_MONTH, -1);
+
+        List<Daylygradeassessmentmain2> day1ls = daylygradeassessmentmain2Service.getDaylygradeassessmentmain2ListBywtId(wtId, DateUtils.truncate(cal.getTime()));
+        if (!day1ls.isEmpty()) {
+            Daylygradeassessmentmain2 top = day1ls.get(0);
+            XnfxVo vo = new XnfxVo();
+            vo.setName("日等级评估数据分析");
+            vo.setLevelname(top.getModlevel());
+            vo.setTopnum(top.getModscore().intValue());
+            ls.add(vo);
+        }
+
+
+        String year = String.valueOf(cal.get(Calendar.YEAR));
+        int m = cal.get(Calendar.MONTH);
+        String month = null;
+        if ((m + 1) < 10) {
+            StringBuilder sb = new StringBuilder();
+            sb.append("0").append(m + 1);
+            month = String.valueOf(sb);
+        } else {
+            month = String.valueOf(m + 1);
+        }
+
+
+        List<Monthlygradeassessmentmain2> day3ls = monthlygradeassessmentmain2Service.getMonthlygradeassessmentmain2ListBywtId(wtId, year, month);
+        if (!day3ls.isEmpty()) {
+            Monthlygradeassessmentmain2 top = day3ls.get(0);
+            XnfxVo vo = new XnfxVo();
+            vo.setName("月等级评估数据分析");
+            vo.setLevelname(top.getModlevel());
+            vo.setTopnum(top.getModscore().intValue());
+            ls.add(vo);
+        }
+        return ls;
+    }
+
+    /**
+     * 获得当日停机事件
+     * @param wtId
+     * @return
+     */
+    public List<ShutdowneventVo> initalShutdown(String wtId) {
+
+        List<ShutdowneventVo> vos = new ArrayList<>();
+
+        if (StringUtils.notEmp(wtId)) {
+            Calendar cal = Calendar.getInstance();
+            cal.set(Calendar.HOUR_OF_DAY, 0);
+            cal.set(Calendar.MINUTE, 0);
+            cal.set(Calendar.SECOND, 0);
+
+            Date beginDate = cal.getTime();
+            cal.add(Calendar.DAY_OF_MONTH, 1);
+            Date endDate = cal.getTime();
+
+            vos = shutdowneventService.queryEvents(null, wtId, beginDate, endDate, null);
+        }
+
+        return vos;
+    }
+
+    /**
+     * 获得健康评价列表
+     * @param wtId
+     * @return
+     * @throws Exception
+     */
+    public List<ValueVo> findJudgmentList(String wtId) throws Exception {
+
+        List<ValueVo> vols = new ArrayList<ValueVo>();
+
+        if (StringUtils.notEmp(wtId)) {
+
+
+            List<Statejudgmentrecord> ls = statejudgmentrecordService.getStatejudgmentrecordListBywtId(wtId);
+
+
+            if (!ls.isEmpty()) {
+                String[] str = ls.get(0).getStatejudgment().split("-");
+                if (str.length == 4) {
+                    ValueVo vo1 = new ValueVo();
+                    ValueVo vo2 = new ValueVo();
+                    ValueVo vo3 = new ValueVo();
+                    ValueVo vo4 = new ValueVo();
+
+
+                    vo1.setName("运行状态为故障!");
+                    vo2.setName("风机部件温度超出合理值范围!");
+                    vo3.setName("性能损失率连续三天大于基准值");
+                    vo4.setName("曲线偏差率率连续三天大于基准值");
+
+
+                    setScoreValue(str[0], vo1);
+                    setScoreValue(str[1], vo2);
+                    setScoreValue(str[2], vo3);
+                    setScoreValue(str[3], vo4);
+
+
+                    vols.add(vo1);
+                    vols.add(vo2);
+                    vols.add(vo3);
+                    vols.add(vo4);
+
+                }
+            }
+
+        }
+        return vols;
+
+    }
+
+    private void setScoreValue(String str, ValueVo vo1) {
+        if(str.equals("1"))
+        {
+            vo1.setValue("进行扣分处理!");
+        }else {
+            vo1.setValue("未扣分!");
+        }
+    }
+
+    /**
+     * 各个区间曲线偏差率
+     * @param wtId
+     * @return
+     */
+    public List<QxpcVo> findQxpcList(String wtId)  {
+
+        List<QxpcVo> ls = new ArrayList<QxpcVo>();
+        Map<String, List<Curvefittingsub>> cfmap = new HashMap<>();
+        Calendar cal = Calendar.getInstance();
+        cal.add(Calendar.DAY_OF_MONTH, -1);
+        if (StringUtils.notEmp(wtId)) {
+
+            Windturbine wt=InitialRunner.wtmap.get(wtId);
+            QxpcVo vo=new QxpcVo();
+            cfmap = curvefittingsubService.findCurvefittingmapByDate(cal.getTime(), wtId,3.0,5.0);
+            double qxpc1=curvefittingsubService.getNuberValue(cfmap, wt);
+            cfmap = curvefittingsubService.findCurvefittingmapByDate(cal.getTime(), wtId,5.0,11.0);
+            double qxpc2=curvefittingsubService.getNuberValue(cfmap, wt);
+            cfmap = curvefittingsubService.findCurvefittingmapByDate(cal.getTime(), wtId,11.0,25.0);
+            double qxpc3=curvefittingsubService.getNuberValue(cfmap, wt);
+            vo.setQxpc1(qxpc1);
+            vo.setQxpc2(qxpc2);
+            vo.setQxpc3(qxpc3);
+            ls.add(vo);
+        }
+
+
+        return ls;
+    }
+
+    /**
+     * 温度范围
+     * @param wtId
+     * @return
+     */
+    public List<YxfxVo> findWdList(String wtId)  {
+
+        List<Parttemperaturesub> ls = new ArrayList<Parttemperaturesub>();
+        List<YxfxVo> vos=new ArrayList<>();
+        Calendar cal = Calendar.getInstance();
+        Date recodedate = DateUtils.truncate(cal.getTime());
+        if (StringUtils.notEmp(wtId)) {
+
+            ls = parttemperaturesubService.getParttemperaturesubListBywtId( wtId,recodedate);
+            vos=parttemperaturesubService.getListValue(ls);
+        }
+
+
+        return vos;
+    }
+    /**********************************************风机明细页面*****************************************************/
+    /**********************************************风机明细页面*****************************************************/
+    /**
+     * 获得等级评估前5数据
+     * @param wtId
+     * @return
+     * @throws Exception
+     */
+    public  Map<String, Object>  gadaytop5(String wtId) throws Exception {
+
+
+        Calendar cal = Calendar.getInstance();
+        cal.set(Calendar.HOUR_OF_DAY, 0);
+        cal.set(Calendar.MINUTE, 0);
+        cal.set(Calendar.SECOND, 0);
+        Date endDate = cal.getTime();
+        cal.add(Calendar.MONTH, -1);
+        Date beginDate = cal.getTime();
+
+
+        List<Daylygradeassessmentmain2> ls = daylygradeassessmentmain2Service.getDaylygradeassessmentmain2ListBywtId(wtId, beginDate,endDate);
+        Map<String, Object> map = new HashMap<String, Object>();
+        int num=1;
+        for(Daylygradeassessmentmain2 top:ls)
+        {
+            if(num<=5)
+            {
+                String[] str=new String[5];
+                str[0]=String.valueOf(top.getId());
+                str[1]=DateUtils.format(top.getRecorddate());
+                str[2]=String.valueOf(top.getModlevel());
+                str[3]=String.valueOf(top.getWpid());
+                str[4]=String.valueOf(top.getWtid());
+                map.put(String.valueOf(num), str);
+                num++;
+            }else
+            {
+                break;
+            }
+        }
+
+
+
+
+        return map;
+    }
+
+    /**
+     * 获取最新的十次停机事件
+     * @param wtId
+     * @return
+     */
+    public List<ShutdowneventVo> queryStopTop10(String wtId){
+
+        List<ShutdowneventVo> vos=shutdowneventService.queryStopTop10(wtId);
+
+
+        return vos;
+    }
+
+    /**
+     * 获得实际功率和理论功率曲线
+     * @param wtId
+     * @return
+     * @throws Exception
+     */
+    public Map<String, Object[]> findPowerChar(String wtId) throws Exception {
+
+        Map<String, Object[]> resultmap = new HashMap<String, Object[]>();
+
+        Integer[] begin = new Integer[3];
+        Integer[] end = new Integer[3];
+
+        Calendar cal = Calendar.getInstance();
+
+        cal.set(Calendar.HOUR_OF_DAY, 0);
+        cal.set(Calendar.MINUTE, 0);
+        cal.set(Calendar.SECOND, 0);
+
+        end[0] = cal.get(Calendar.YEAR);
+        end[1] = cal.get(Calendar.MONTH);
+        end[2] = cal.get(Calendar.DAY_OF_MONTH);
+        Date endDate = cal.getTime();
+        int length = 30;
+        cal.add(Calendar.DAY_OF_MONTH, -30);
+        Date beginDate = cal.getTime();
+
+        begin[0] = cal.get(Calendar.YEAR);
+        begin[1] = cal.get(Calendar.MONTH);
+        begin[2] = cal.get(Calendar.DAY_OF_MONTH);
+
+        Double[] sjglarr = new Double[length];
+        Double[] llglarr = new Double[length];
+        Double[] sjfsarr = new Double[length];
+
+        WindTurbineTestingPointAi2 sjgl = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.TPOINT_WT_FJGL);
+
+        List<PointData> sjglls = realApiUtil.getHistoryDatasSnap(sjgl, beginDate.getTime() / 1000, endDate.getTime() / 1000, (long) length, 24*3600L);
+
+        if (!sjglls.isEmpty()) {
+            for (int i = 0; i < sjglls.size() - 1; i++) {
+                sjglarr[i] = sjglls.get(i).getPointValueInDouble();
+            }
+        }
+        WindTurbineTestingPointAi2 llgl = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.TPOINT_WT_LLGL);
+
+        List<PointData> llglls = realApiUtil.getHistoryDatasSnap(llgl, beginDate.getTime() / 1000, endDate.getTime() / 1000, (long) length, 24*3600L);
+
+        if (!llglls.isEmpty()) {
+            for (int i = 0; i < llglls.size() - 1; i++) {
+                llglarr[i] = llglls.get(i).getPointValueInDouble();
+            }
+        }
+
+        WindTurbineTestingPointAi2 ssfs = windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId, Constant.TPOINT_WT_FJSSFS);
+
+        List<PointData> ssfsls = realApiUtil.getHistoryDatasSnap(ssfs, beginDate.getTime() / 1000, endDate.getTime() / 1000, (long) length, 24*3600L);
+
+        if (!ssfsls.isEmpty()) {
+            for (int i = 0; i < ssfsls.size() - 1; i++) {
+                sjfsarr[i] = ssfsls.get(i).getPointValueInDouble();
+            }
+        }
+
+        resultmap.put("sjgl", sjglarr);
+        resultmap.put("llgl", llglarr);
+        resultmap.put("ssfs", sjfsarr);
+
+        resultmap.put("begin", begin);
+        resultmap.put("end", end);
+
+        return resultmap;
+    }
+
+    /**********************************************风机明细页面*****************************************************/
+    /**********************************************风机健康曲线*****************************************************/
+    /**
+     * 获取风机、部件健康状态图表
+     * @param wtId
+     * @param beginDate
+     * @param endDate
+     * @return
+     * @throws Exception
+     */
+    public ActivityVo hsFjValueIndex(String wtId,Date beginDate,Date endDate) throws Exception {
+
+        ActivityVo vo = null;
+        long num=96;
+        long step=900;
+
+        int length=DateUtils.daysDiff(beginDate, endDate);
+
+        if(length>30)
+        {
+            num=length;
+            step=3600*24;
+        }else if(length>=15 && length<30){
+            num=length*2;
+            step=3600*12;
+        }else if(length>=7 && length<15){
+            num=length*4;
+            step=3600*6;
+        }else if(length>=3 && length<7){
+            num=length*8;
+            step=3600*3;
+        }
+        vo = getWTChart(wtId, beginDate, endDate, num, step);
+
+
+        return vo;
+    }
+
+
+    private ActivityVo getWTChart(String wtId, Date beginDate, Date endDate, long num, long step) throws Exception {
+        ActivityVo vo = new ActivityVo();
+        List<DatasetsVo> datasets = new ArrayList<DatasetsVo>();
+
+
+        WindTurbineTestingPointAi2 fj =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId,Constant.FJJKZZ);
+        WindTurbineTestingPointAi2 clx =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId,Constant.CLXJKJL);
+        WindTurbineTestingPointAi2 fdj =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId,Constant.FDJJKJL);
+        WindTurbineTestingPointAi2 kzys =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId,Constant.BJJKJL);
+        WindTurbineTestingPointAi2 jcxt =windTurbineTestingPointAiService.getWindTurbineTestingPointAi2(wtId,Constant.ZKJKJL);
+
+
+        if (null != fj) {
+            List<PointData> fjls = realApiUtil.getHistoryDatasSnap(fj, beginDate.getTime() / 1000,
+                    endDate.getTime() / 1000, num, step);
+
+            List<Long> xData = new ArrayList<Long>();
+            List<Double> data = new ArrayList<Double>();
+
+            DatasetsVo dvo = new DatasetsVo();
+            dvo.setUnit("");
+            dvo.setName("风机");
+            dvo.setType("line");
+            dvo.setValueDecimals(2);
+
+            for (int i = 0; i < fjls.size(); i++) {
+
+                xData.add(fjls.get(i).getPointTime() * 1000);
+
+                double temp = fjls.get(i).getPointValueInDouble();
+                temp = new BigDecimal(temp).divide(new BigDecimal(100), 2, RoundingMode.HALF_EVEN).doubleValue();
+                data.add(temp);
+
+            }
+            dvo.setData(data);
+            datasets.add(dvo);
+            vo.setxData(xData);
+        }
+        if (null != fdj) {
+            List<PointData> fdjls = realApiUtil.getHistoryDatasSnap(fdj, beginDate.getTime() / 1000,
+                    endDate.getTime() / 1000, (long) 96, 900L);
+
+            List<Long> xData = new ArrayList<Long>();
+            List<Double> data = new ArrayList<Double>();
+
+            DatasetsVo dvo = new DatasetsVo();
+            dvo.setUnit("");
+            dvo.setName("发电机");
+            dvo.setType("line");
+            dvo.setValueDecimals(2);
+
+            for (int i = 0; i < fdjls.size(); i++) {
+
+                xData.add(fdjls.get(i).getPointTime() * 1000);
+
+                // System.out.println(DateUtils.toDate1(new
+                // Date(fdjls.get(i).getPointTime() * 1000)));
+                data.add(StringUtils.round(fdjls.get(i).getPointValueInDouble(), 2));
+
+            }
+            dvo.setData(data);
+            datasets.add(dvo);
+            vo.setxData(xData);
+        }
+
+        if (null != kzys) {
+            List<PointData> kzysls = realApiUtil.getHistoryDatasSnap(kzys, beginDate.getTime() / 1000,
+                    endDate.getTime() / 1000, (long) 96, 900L);
+
+            List<Long> xData = new ArrayList<Long>();
+            List<Double> data = new ArrayList<Double>();
+
+            DatasetsVo dvo = new DatasetsVo();
+            dvo.setUnit("");
+            dvo.setName("变桨系统");
+            dvo.setType("line");
+            dvo.setValueDecimals(2);
+            datasets.add(dvo);
+            for (int i = 0; i < kzysls.size(); i++) {
+
+                xData.add(kzysls.get(i).getPointTime() * 1000);
+                // data.add(kzysls.get(i).getPointValueInDouble());
+                data.add(StringUtils.round(kzysls.get(i).getPointValueInDouble(), 2));
+            }
+            dvo.setData(data);
+            vo.setxData(xData);
+        }
+
+        if (null != jcxt) {
+            List<PointData> jcxtls = realApiUtil.getHistoryDatasSnap(jcxt, beginDate.getTime() / 1000,
+                    endDate.getTime() / 1000, (long) 96, 900L);
+
+            List<Long> xData = new ArrayList<Long>();
+            List<Double> data = new ArrayList<Double>();
+            DatasetsVo dvo = new DatasetsVo();
+            dvo.setUnit("");
+            dvo.setName("主控系统");
+            dvo.setType("line");
+            dvo.setValueDecimals(2);
+            datasets.add(dvo);
+            for (int i = 0; i < jcxtls.size(); i++) {
+
+                xData.add(jcxtls.get(i).getPointTime() * 1000);
+                // data.add(jcxtls.get(i).getPointValueInDouble());
+                if (jcxtls.get(i).getPointTime() * 1000 <= DateUtils.now().getTime()) {
+                    data.add(StringUtils.round(jcxtls.get(i).getPointValueInDouble(), 2));
+                    // data.add(jcxtls.get(i).getPointValueInDouble());
+                }
+            }
+            dvo.setData(data);
+            vo.setxData(xData);
+        }
+        if (null != clx) {
+            List<PointData> clxls = realApiUtil.getHistoryDatasSnap(clx, beginDate.getTime() / 1000,
+                    endDate.getTime() / 1000, (long) 96, 900L);
+            List<Long> xData = new ArrayList<Long>();
+            List<Double> data1 = new ArrayList<Double>();
+            // List<Double> data2 = new ArrayList<Double>();
+            // List<Double> data3 = new ArrayList<Double>();
+            // List<Double> data4 = new ArrayList<Double>();
+            // List<Double> data5 = new ArrayList<Double>();
+            DatasetsVo dvo1 = new DatasetsVo();
+            dvo1.setUnit("");
+            dvo1.setName("齿轮箱");
+            dvo1.setType("line");
+            dvo1.setValueDecimals(2);
+
+            // DatasetsVo dvo2 = new DatasetsVo();
+            // dvo2.setUnit("");
+            // dvo2.setName("偏航");
+            // dvo2.setType("line");
+            // dvo2.setValueDecimals(2);
+            //
+            // DatasetsVo dvo3 = new DatasetsVo();
+            // dvo3.setUnit("");
+            // dvo3.setName("机舱");
+            // dvo3.setType("line");
+            // dvo3.setValueDecimals(2);
+            //
+            // DatasetsVo dvo4 = new DatasetsVo();
+            // dvo4.setUnit("");
+            // dvo4.setName("主控");
+            // dvo4.setType("line");
+            // dvo4.setValueDecimals(2);
+            //
+            // DatasetsVo dvo5 = new DatasetsVo();
+            // dvo5.setUnit("");
+            // dvo5.setName("变频器");
+            // dvo5.setType("line");
+            // dvo5.setValueDecimals(2);
+
+            for (int i = 0; i < clxls.size(); i++) {
+
+                xData.add(clxls.get(i).getPointTime() * 1000);
+                // data.add(clxls.get(i).getPointValueInDouble());
+
+                if (clxls.get(i).getPointTime() * 1000 <= DateUtils.now().getTime()) {
+                    data1.add(StringUtils.round(clxls.get(i).getPointValueInDouble(), 2));
+                    // data2.add(1.0);
+                    // data3.add(1.0);
+                    // data4.add(1.0);
+                    // data5.add(1.0);
+
+                }
+            }
+            dvo1.setData(data1);
+            // dvo2.setData(data2);
+            // dvo3.setData(data3);
+            // dvo4.setData(data4);
+            // dvo5.setData(data5);
+
+            datasets.add(dvo1);
+            // datasets.add(dvo2);
+            // datasets.add(dvo3);
+            // datasets.add(dvo4);
+            // datasets.add(dvo5);
+            vo.setxData(xData);
+        }
+
+        vo.setDatasets(datasets);
+        return vo;
+    }
+    /*************************************************风机健康曲线**************************************************/
+
+}

+ 3 - 2
src/main/resources/mybatis-generator.xml

@@ -105,8 +105,9 @@
 <!--        <table tableName='Windturbine' domainObjectName='WindturbineSql'/>-->
 <!--        <table tableName='Equipment' domainObjectName='EquipmentSql'/>-->
 
-        <table tableName='Weatherfh' domainObjectName='Weatherfh'/>
-        <table tableName='Weatherfd' domainObjectName='Weatherfd'/>
+
+        <table tableName='stoptype' domainObjectName='Stoptype'/>
+
 
     </context>
 </generatorConfiguration>

+ 398 - 0
src/main/resources/mybatis/auto/Daylygradeassessmentmain2Mapper.xml

@@ -0,0 +1,398 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.Daylygradeassessmentmain2Mapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="VARCHAR" property="id" />
+    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
+    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
+    <result column="PROJECTID" jdbcType="VARCHAR" property="projectid" />
+    <result column="LINEID" jdbcType="VARCHAR" property="lineid" />
+    <result column="RECORDDATE" jdbcType="TIMESTAMP" property="recorddate" />
+    <result column="SCORE" jdbcType="DECIMAL" property="score" />
+    <result column="PLEVEL" jdbcType="VARCHAR" property="plevel" />
+    <result column="STATE" jdbcType="DECIMAL" property="state" />
+    <result column="MODSCORE" jdbcType="DECIMAL" property="modscore" />
+    <result column="MODLEVEL" jdbcType="VARCHAR" property="modlevel" />
+    <result column="TOTALSCORE" jdbcType="DECIMAL" property="totalscore" />
+    <result column="TID" jdbcType="VARCHAR" property="tid" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, WTID, WPID, PROJECTID, LINEID, RECORDDATE, SCORE, PLEVEL, STATE, MODSCORE, MODLEVEL, 
+    TOTALSCORE, TID
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from DAYLYGRADEASSESSMENTMAIN2
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from DAYLYGRADEASSESSMENTMAIN2
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from DAYLYGRADEASSESSMENTMAIN2
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from DAYLYGRADEASSESSMENTMAIN2
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into DAYLYGRADEASSESSMENTMAIN2 (ID, WTID, WPID, 
+      PROJECTID, LINEID, RECORDDATE, 
+      SCORE, PLEVEL, STATE, 
+      MODSCORE, MODLEVEL, TOTALSCORE, 
+      TID)
+    values (#{id,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wpid,jdbcType=VARCHAR}, 
+      #{projectid,jdbcType=VARCHAR}, #{lineid,jdbcType=VARCHAR}, #{recorddate,jdbcType=TIMESTAMP}, 
+      #{score,jdbcType=DECIMAL}, #{plevel,jdbcType=VARCHAR}, #{state,jdbcType=DECIMAL}, 
+      #{modscore,jdbcType=DECIMAL}, #{modlevel,jdbcType=VARCHAR}, #{totalscore,jdbcType=DECIMAL}, 
+      #{tid,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into DAYLYGRADEASSESSMENTMAIN2
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="wtid != null">
+        WTID,
+      </if>
+      <if test="wpid != null">
+        WPID,
+      </if>
+      <if test="projectid != null">
+        PROJECTID,
+      </if>
+      <if test="lineid != null">
+        LINEID,
+      </if>
+      <if test="recorddate != null">
+        RECORDDATE,
+      </if>
+      <if test="score != null">
+        SCORE,
+      </if>
+      <if test="plevel != null">
+        PLEVEL,
+      </if>
+      <if test="state != null">
+        STATE,
+      </if>
+      <if test="modscore != null">
+        MODSCORE,
+      </if>
+      <if test="modlevel != null">
+        MODLEVEL,
+      </if>
+      <if test="totalscore != null">
+        TOTALSCORE,
+      </if>
+      <if test="tid != null">
+        TID,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpid != null">
+        #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="recorddate != null">
+        #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="score != null">
+        #{score,jdbcType=DECIMAL},
+      </if>
+      <if test="plevel != null">
+        #{plevel,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null">
+        #{state,jdbcType=DECIMAL},
+      </if>
+      <if test="modscore != null">
+        #{modscore,jdbcType=DECIMAL},
+      </if>
+      <if test="modlevel != null">
+        #{modlevel,jdbcType=VARCHAR},
+      </if>
+      <if test="totalscore != null">
+        #{totalscore,jdbcType=DECIMAL},
+      </if>
+      <if test="tid != null">
+        #{tid,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2Example" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from DAYLYGRADEASSESSMENTMAIN2
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update DAYLYGRADEASSESSMENTMAIN2
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtid != null">
+        WTID = #{record.wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wpid != null">
+        WPID = #{record.wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.projectid != null">
+        PROJECTID = #{record.projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.lineid != null">
+        LINEID = #{record.lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.recorddate != null">
+        RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.score != null">
+        SCORE = #{record.score,jdbcType=DECIMAL},
+      </if>
+      <if test="record.plevel != null">
+        PLEVEL = #{record.plevel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.state != null">
+        STATE = #{record.state,jdbcType=DECIMAL},
+      </if>
+      <if test="record.modscore != null">
+        MODSCORE = #{record.modscore,jdbcType=DECIMAL},
+      </if>
+      <if test="record.modlevel != null">
+        MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.totalscore != null">
+        TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
+      </if>
+      <if test="record.tid != null">
+        TID = #{record.tid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update DAYLYGRADEASSESSMENTMAIN2
+    set ID = #{record.id,jdbcType=VARCHAR},
+      WTID = #{record.wtid,jdbcType=VARCHAR},
+      WPID = #{record.wpid,jdbcType=VARCHAR},
+      PROJECTID = #{record.projectid,jdbcType=VARCHAR},
+      LINEID = #{record.lineid,jdbcType=VARCHAR},
+      RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
+      SCORE = #{record.score,jdbcType=DECIMAL},
+      PLEVEL = #{record.plevel,jdbcType=VARCHAR},
+      STATE = #{record.state,jdbcType=DECIMAL},
+      MODSCORE = #{record.modscore,jdbcType=DECIMAL},
+      MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
+      TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
+      TID = #{record.tid,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update DAYLYGRADEASSESSMENTMAIN2
+    <set>
+      <if test="wtid != null">
+        WTID = #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpid != null">
+        WPID = #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        PROJECTID = #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        LINEID = #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="recorddate != null">
+        RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="score != null">
+        SCORE = #{score,jdbcType=DECIMAL},
+      </if>
+      <if test="plevel != null">
+        PLEVEL = #{plevel,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null">
+        STATE = #{state,jdbcType=DECIMAL},
+      </if>
+      <if test="modscore != null">
+        MODSCORE = #{modscore,jdbcType=DECIMAL},
+      </if>
+      <if test="modlevel != null">
+        MODLEVEL = #{modlevel,jdbcType=VARCHAR},
+      </if>
+      <if test="totalscore != null">
+        TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
+      </if>
+      <if test="tid != null">
+        TID = #{tid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Daylygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update DAYLYGRADEASSESSMENTMAIN2
+    set WTID = #{wtid,jdbcType=VARCHAR},
+      WPID = #{wpid,jdbcType=VARCHAR},
+      PROJECTID = #{projectid,jdbcType=VARCHAR},
+      LINEID = #{lineid,jdbcType=VARCHAR},
+      RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
+      SCORE = #{score,jdbcType=DECIMAL},
+      PLEVEL = #{plevel,jdbcType=VARCHAR},
+      STATE = #{state,jdbcType=DECIMAL},
+      MODSCORE = #{modscore,jdbcType=DECIMAL},
+      MODLEVEL = #{modlevel,jdbcType=VARCHAR},
+      TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
+      TID = #{tid,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 857 - 0
src/main/resources/mybatis/auto/EarlywarningmainMapper.xml

@@ -0,0 +1,857 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.EarlywarningmainMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Earlywarningmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="DECIMAL" property="id" />
+    <result column="RECODEDATE" jdbcType="TIMESTAMP" property="recodedate" />
+    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
+    <result column="WPNAME" jdbcType="VARCHAR" property="wpname" />
+    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
+    <result column="WTNAME" jdbcType="VARCHAR" property="wtname" />
+    <result column="DAY3TOP1" jdbcType="DECIMAL" property="day3top1" />
+    <result column="DAY3TOP2" jdbcType="DECIMAL" property="day3top2" />
+    <result column="DAY3TOP3" jdbcType="DECIMAL" property="day3top3" />
+    <result column="DAY7TOP1" jdbcType="DECIMAL" property="day7top1" />
+    <result column="DAY7TOP2" jdbcType="DECIMAL" property="day7top2" />
+    <result column="DAY7TOP3" jdbcType="DECIMAL" property="day7top3" />
+    <result column="DAY15TOP1" jdbcType="DECIMAL" property="day15top1" />
+    <result column="DAY15TOP2" jdbcType="DECIMAL" property="day15top2" />
+    <result column="DAY15TOP3" jdbcType="DECIMAL" property="day15top3" />
+    <result column="MONTH1TOP1" jdbcType="DECIMAL" property="month1top1" />
+    <result column="MONTH1TOP2" jdbcType="DECIMAL" property="month1top2" />
+    <result column="MONTH1TOP3" jdbcType="DECIMAL" property="month1top3" />
+    <result column="DAY3TOP1NAME" jdbcType="VARCHAR" property="day3top1name" />
+    <result column="DAY3TOP2NAME" jdbcType="VARCHAR" property="day3top2name" />
+    <result column="DAY3TOP3NAME" jdbcType="VARCHAR" property="day3top3name" />
+    <result column="DAY7TOP1NAME" jdbcType="VARCHAR" property="day7top1name" />
+    <result column="DAY7TOP2NAME" jdbcType="VARCHAR" property="day7top2name" />
+    <result column="DAY7TOP3NAME" jdbcType="VARCHAR" property="day7top3name" />
+    <result column="DAY15TOP1NAME" jdbcType="VARCHAR" property="day15top1name" />
+    <result column="DAY15TOP2NAME" jdbcType="VARCHAR" property="day15top2name" />
+    <result column="DAY15TOP3NAME" jdbcType="VARCHAR" property="day15top3name" />
+    <result column="MONTH1TOP1NAME" jdbcType="VARCHAR" property="month1top1name" />
+    <result column="MONTH1TOP2NAME" jdbcType="VARCHAR" property="month1top2name" />
+    <result column="MONTH1TOP3NAME" jdbcType="VARCHAR" property="month1top3name" />
+    <result column="MONTH1TOPNUM" jdbcType="DECIMAL" property="month1topnum" />
+    <result column="DAY7TOPNUM" jdbcType="DECIMAL" property="day7topnum" />
+    <result column="DAY15TOPNUM" jdbcType="DECIMAL" property="day15topnum" />
+    <result column="DAY3TOPNUM" jdbcType="DECIMAL" property="day3topnum" />
+    <result column="SYNTHESISTOPNUM" jdbcType="DECIMAL" property="synthesistopnum" />
+    <result column="DAY1TOP1" jdbcType="DECIMAL" property="day1top1" />
+    <result column="DAY1TOP2" jdbcType="DECIMAL" property="day1top2" />
+    <result column="DAY1TOP3" jdbcType="DECIMAL" property="day1top3" />
+    <result column="DAY1TOP1NAME" jdbcType="VARCHAR" property="day1top1name" />
+    <result column="DAY1TOP2NAME" jdbcType="VARCHAR" property="day1top2name" />
+    <result column="DAY1TOP3NAME" jdbcType="VARCHAR" property="day1top3name" />
+    <result column="DAY1TOPNUM" jdbcType="DECIMAL" property="day1topnum" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, RECODEDATE, WPID, WPNAME, WTID, WTNAME, DAY3TOP1, DAY3TOP2, DAY3TOP3, DAY7TOP1, 
+    DAY7TOP2, DAY7TOP3, DAY15TOP1, DAY15TOP2, DAY15TOP3, MONTH1TOP1, MONTH1TOP2, MONTH1TOP3, 
+    DAY3TOP1NAME, DAY3TOP2NAME, DAY3TOP3NAME, DAY7TOP1NAME, DAY7TOP2NAME, DAY7TOP3NAME, 
+    DAY15TOP1NAME, DAY15TOP2NAME, DAY15TOP3NAME, MONTH1TOP1NAME, MONTH1TOP2NAME, MONTH1TOP3NAME, 
+    MONTH1TOPNUM, DAY7TOPNUM, DAY15TOPNUM, DAY3TOPNUM, SYNTHESISTOPNUM, DAY1TOP1, DAY1TOP2, 
+    DAY1TOP3, DAY1TOP1NAME, DAY1TOP2NAME, DAY1TOP3NAME, DAY1TOPNUM
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.EarlywarningmainExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from EARLYWARNINGMAIN
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from EARLYWARNINGMAIN
+    where ID = #{id,jdbcType=DECIMAL}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from EARLYWARNINGMAIN
+    where ID = #{id,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.EarlywarningmainExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from EARLYWARNINGMAIN
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Earlywarningmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into EARLYWARNINGMAIN (ID, RECODEDATE, WPID, 
+      WPNAME, WTID, WTNAME, 
+      DAY3TOP1, DAY3TOP2, DAY3TOP3, 
+      DAY7TOP1, DAY7TOP2, DAY7TOP3, 
+      DAY15TOP1, DAY15TOP2, DAY15TOP3, 
+      MONTH1TOP1, MONTH1TOP2, MONTH1TOP3, 
+      DAY3TOP1NAME, DAY3TOP2NAME, DAY3TOP3NAME, 
+      DAY7TOP1NAME, DAY7TOP2NAME, DAY7TOP3NAME, 
+      DAY15TOP1NAME, DAY15TOP2NAME, DAY15TOP3NAME, 
+      MONTH1TOP1NAME, MONTH1TOP2NAME, MONTH1TOP3NAME, 
+      MONTH1TOPNUM, DAY7TOPNUM, DAY15TOPNUM, 
+      DAY3TOPNUM, SYNTHESISTOPNUM, DAY1TOP1, 
+      DAY1TOP2, DAY1TOP3, DAY1TOP1NAME, 
+      DAY1TOP2NAME, DAY1TOP3NAME, DAY1TOPNUM
+      )
+    values (#{id,jdbcType=DECIMAL}, #{recodedate,jdbcType=TIMESTAMP}, #{wpid,jdbcType=VARCHAR}, 
+      #{wpname,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wtname,jdbcType=VARCHAR}, 
+      #{day3top1,jdbcType=DECIMAL}, #{day3top2,jdbcType=DECIMAL}, #{day3top3,jdbcType=DECIMAL}, 
+      #{day7top1,jdbcType=DECIMAL}, #{day7top2,jdbcType=DECIMAL}, #{day7top3,jdbcType=DECIMAL}, 
+      #{day15top1,jdbcType=DECIMAL}, #{day15top2,jdbcType=DECIMAL}, #{day15top3,jdbcType=DECIMAL}, 
+      #{month1top1,jdbcType=DECIMAL}, #{month1top2,jdbcType=DECIMAL}, #{month1top3,jdbcType=DECIMAL}, 
+      #{day3top1name,jdbcType=VARCHAR}, #{day3top2name,jdbcType=VARCHAR}, #{day3top3name,jdbcType=VARCHAR}, 
+      #{day7top1name,jdbcType=VARCHAR}, #{day7top2name,jdbcType=VARCHAR}, #{day7top3name,jdbcType=VARCHAR}, 
+      #{day15top1name,jdbcType=VARCHAR}, #{day15top2name,jdbcType=VARCHAR}, #{day15top3name,jdbcType=VARCHAR}, 
+      #{month1top1name,jdbcType=VARCHAR}, #{month1top2name,jdbcType=VARCHAR}, #{month1top3name,jdbcType=VARCHAR}, 
+      #{month1topnum,jdbcType=DECIMAL}, #{day7topnum,jdbcType=DECIMAL}, #{day15topnum,jdbcType=DECIMAL}, 
+      #{day3topnum,jdbcType=DECIMAL}, #{synthesistopnum,jdbcType=DECIMAL}, #{day1top1,jdbcType=DECIMAL}, 
+      #{day1top2,jdbcType=DECIMAL}, #{day1top3,jdbcType=DECIMAL}, #{day1top1name,jdbcType=VARCHAR}, 
+      #{day1top2name,jdbcType=VARCHAR}, #{day1top3name,jdbcType=VARCHAR}, #{day1topnum,jdbcType=DECIMAL}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Earlywarningmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into EARLYWARNINGMAIN
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="recodedate != null">
+        RECODEDATE,
+      </if>
+      <if test="wpid != null">
+        WPID,
+      </if>
+      <if test="wpname != null">
+        WPNAME,
+      </if>
+      <if test="wtid != null">
+        WTID,
+      </if>
+      <if test="wtname != null">
+        WTNAME,
+      </if>
+      <if test="day3top1 != null">
+        DAY3TOP1,
+      </if>
+      <if test="day3top2 != null">
+        DAY3TOP2,
+      </if>
+      <if test="day3top3 != null">
+        DAY3TOP3,
+      </if>
+      <if test="day7top1 != null">
+        DAY7TOP1,
+      </if>
+      <if test="day7top2 != null">
+        DAY7TOP2,
+      </if>
+      <if test="day7top3 != null">
+        DAY7TOP3,
+      </if>
+      <if test="day15top1 != null">
+        DAY15TOP1,
+      </if>
+      <if test="day15top2 != null">
+        DAY15TOP2,
+      </if>
+      <if test="day15top3 != null">
+        DAY15TOP3,
+      </if>
+      <if test="month1top1 != null">
+        MONTH1TOP1,
+      </if>
+      <if test="month1top2 != null">
+        MONTH1TOP2,
+      </if>
+      <if test="month1top3 != null">
+        MONTH1TOP3,
+      </if>
+      <if test="day3top1name != null">
+        DAY3TOP1NAME,
+      </if>
+      <if test="day3top2name != null">
+        DAY3TOP2NAME,
+      </if>
+      <if test="day3top3name != null">
+        DAY3TOP3NAME,
+      </if>
+      <if test="day7top1name != null">
+        DAY7TOP1NAME,
+      </if>
+      <if test="day7top2name != null">
+        DAY7TOP2NAME,
+      </if>
+      <if test="day7top3name != null">
+        DAY7TOP3NAME,
+      </if>
+      <if test="day15top1name != null">
+        DAY15TOP1NAME,
+      </if>
+      <if test="day15top2name != null">
+        DAY15TOP2NAME,
+      </if>
+      <if test="day15top3name != null">
+        DAY15TOP3NAME,
+      </if>
+      <if test="month1top1name != null">
+        MONTH1TOP1NAME,
+      </if>
+      <if test="month1top2name != null">
+        MONTH1TOP2NAME,
+      </if>
+      <if test="month1top3name != null">
+        MONTH1TOP3NAME,
+      </if>
+      <if test="month1topnum != null">
+        MONTH1TOPNUM,
+      </if>
+      <if test="day7topnum != null">
+        DAY7TOPNUM,
+      </if>
+      <if test="day15topnum != null">
+        DAY15TOPNUM,
+      </if>
+      <if test="day3topnum != null">
+        DAY3TOPNUM,
+      </if>
+      <if test="synthesistopnum != null">
+        SYNTHESISTOPNUM,
+      </if>
+      <if test="day1top1 != null">
+        DAY1TOP1,
+      </if>
+      <if test="day1top2 != null">
+        DAY1TOP2,
+      </if>
+      <if test="day1top3 != null">
+        DAY1TOP3,
+      </if>
+      <if test="day1top1name != null">
+        DAY1TOP1NAME,
+      </if>
+      <if test="day1top2name != null">
+        DAY1TOP2NAME,
+      </if>
+      <if test="day1top3name != null">
+        DAY1TOP3NAME,
+      </if>
+      <if test="day1topnum != null">
+        DAY1TOPNUM,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=DECIMAL},
+      </if>
+      <if test="recodedate != null">
+        #{recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="wpid != null">
+        #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpname != null">
+        #{wpname,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtname != null">
+        #{wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top1 != null">
+        #{day3top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top2 != null">
+        #{day3top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top3 != null">
+        #{day3top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top1 != null">
+        #{day7top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top2 != null">
+        #{day7top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top3 != null">
+        #{day7top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top1 != null">
+        #{day15top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top2 != null">
+        #{day15top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top3 != null">
+        #{day15top3,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top1 != null">
+        #{month1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top2 != null">
+        #{month1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top3 != null">
+        #{month1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top1name != null">
+        #{day3top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top2name != null">
+        #{day3top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top3name != null">
+        #{day3top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top1name != null">
+        #{day7top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top2name != null">
+        #{day7top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top3name != null">
+        #{day7top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top1name != null">
+        #{day15top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top2name != null">
+        #{day15top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top3name != null">
+        #{day15top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top1name != null">
+        #{month1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top2name != null">
+        #{month1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top3name != null">
+        #{month1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1topnum != null">
+        #{month1topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day7topnum != null">
+        #{day7topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day15topnum != null">
+        #{day15topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day3topnum != null">
+        #{day3topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="synthesistopnum != null">
+        #{synthesistopnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1 != null">
+        #{day1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top2 != null">
+        #{day1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top3 != null">
+        #{day1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1name != null">
+        #{day1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top2name != null">
+        #{day1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top3name != null">
+        #{day1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1topnum != null">
+        #{day1topnum,jdbcType=DECIMAL},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.EarlywarningmainExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from EARLYWARNINGMAIN
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update EARLYWARNINGMAIN
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=DECIMAL},
+      </if>
+      <if test="record.recodedate != null">
+        RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.wpid != null">
+        WPID = #{record.wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wpname != null">
+        WPNAME = #{record.wpname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtid != null">
+        WTID = #{record.wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtname != null">
+        WTNAME = #{record.wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day3top1 != null">
+        DAY3TOP1 = #{record.day3top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3top2 != null">
+        DAY3TOP2 = #{record.day3top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3top3 != null">
+        DAY3TOP3 = #{record.day3top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7top1 != null">
+        DAY7TOP1 = #{record.day7top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7top2 != null">
+        DAY7TOP2 = #{record.day7top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7top3 != null">
+        DAY7TOP3 = #{record.day7top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15top1 != null">
+        DAY15TOP1 = #{record.day15top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15top2 != null">
+        DAY15TOP2 = #{record.day15top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15top3 != null">
+        DAY15TOP3 = #{record.day15top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.month1top1 != null">
+        MONTH1TOP1 = #{record.month1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.month1top2 != null">
+        MONTH1TOP2 = #{record.month1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.month1top3 != null">
+        MONTH1TOP3 = #{record.month1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3top1name != null">
+        DAY3TOP1NAME = #{record.day3top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day3top2name != null">
+        DAY3TOP2NAME = #{record.day3top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day3top3name != null">
+        DAY3TOP3NAME = #{record.day3top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day7top1name != null">
+        DAY7TOP1NAME = #{record.day7top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day7top2name != null">
+        DAY7TOP2NAME = #{record.day7top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day7top3name != null">
+        DAY7TOP3NAME = #{record.day7top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day15top1name != null">
+        DAY15TOP1NAME = #{record.day15top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day15top2name != null">
+        DAY15TOP2NAME = #{record.day15top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day15top3name != null">
+        DAY15TOP3NAME = #{record.day15top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1top1name != null">
+        MONTH1TOP1NAME = #{record.month1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1top2name != null">
+        MONTH1TOP2NAME = #{record.month1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1top3name != null">
+        MONTH1TOP3NAME = #{record.month1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1topnum != null">
+        MONTH1TOPNUM = #{record.month1topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7topnum != null">
+        DAY7TOPNUM = #{record.day7topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15topnum != null">
+        DAY15TOPNUM = #{record.day15topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3topnum != null">
+        DAY3TOPNUM = #{record.day3topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.synthesistopnum != null">
+        SYNTHESISTOPNUM = #{record.synthesistopnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top1 != null">
+        DAY1TOP1 = #{record.day1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top2 != null">
+        DAY1TOP2 = #{record.day1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top3 != null">
+        DAY1TOP3 = #{record.day1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top1name != null">
+        DAY1TOP1NAME = #{record.day1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day1top2name != null">
+        DAY1TOP2NAME = #{record.day1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day1top3name != null">
+        DAY1TOP3NAME = #{record.day1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day1topnum != null">
+        DAY1TOPNUM = #{record.day1topnum,jdbcType=DECIMAL},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update EARLYWARNINGMAIN
+    set ID = #{record.id,jdbcType=DECIMAL},
+      RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
+      WPID = #{record.wpid,jdbcType=VARCHAR},
+      WPNAME = #{record.wpname,jdbcType=VARCHAR},
+      WTID = #{record.wtid,jdbcType=VARCHAR},
+      WTNAME = #{record.wtname,jdbcType=VARCHAR},
+      DAY3TOP1 = #{record.day3top1,jdbcType=DECIMAL},
+      DAY3TOP2 = #{record.day3top2,jdbcType=DECIMAL},
+      DAY3TOP3 = #{record.day3top3,jdbcType=DECIMAL},
+      DAY7TOP1 = #{record.day7top1,jdbcType=DECIMAL},
+      DAY7TOP2 = #{record.day7top2,jdbcType=DECIMAL},
+      DAY7TOP3 = #{record.day7top3,jdbcType=DECIMAL},
+      DAY15TOP1 = #{record.day15top1,jdbcType=DECIMAL},
+      DAY15TOP2 = #{record.day15top2,jdbcType=DECIMAL},
+      DAY15TOP3 = #{record.day15top3,jdbcType=DECIMAL},
+      MONTH1TOP1 = #{record.month1top1,jdbcType=DECIMAL},
+      MONTH1TOP2 = #{record.month1top2,jdbcType=DECIMAL},
+      MONTH1TOP3 = #{record.month1top3,jdbcType=DECIMAL},
+      DAY3TOP1NAME = #{record.day3top1name,jdbcType=VARCHAR},
+      DAY3TOP2NAME = #{record.day3top2name,jdbcType=VARCHAR},
+      DAY3TOP3NAME = #{record.day3top3name,jdbcType=VARCHAR},
+      DAY7TOP1NAME = #{record.day7top1name,jdbcType=VARCHAR},
+      DAY7TOP2NAME = #{record.day7top2name,jdbcType=VARCHAR},
+      DAY7TOP3NAME = #{record.day7top3name,jdbcType=VARCHAR},
+      DAY15TOP1NAME = #{record.day15top1name,jdbcType=VARCHAR},
+      DAY15TOP2NAME = #{record.day15top2name,jdbcType=VARCHAR},
+      DAY15TOP3NAME = #{record.day15top3name,jdbcType=VARCHAR},
+      MONTH1TOP1NAME = #{record.month1top1name,jdbcType=VARCHAR},
+      MONTH1TOP2NAME = #{record.month1top2name,jdbcType=VARCHAR},
+      MONTH1TOP3NAME = #{record.month1top3name,jdbcType=VARCHAR},
+      MONTH1TOPNUM = #{record.month1topnum,jdbcType=DECIMAL},
+      DAY7TOPNUM = #{record.day7topnum,jdbcType=DECIMAL},
+      DAY15TOPNUM = #{record.day15topnum,jdbcType=DECIMAL},
+      DAY3TOPNUM = #{record.day3topnum,jdbcType=DECIMAL},
+      SYNTHESISTOPNUM = #{record.synthesistopnum,jdbcType=DECIMAL},
+      DAY1TOP1 = #{record.day1top1,jdbcType=DECIMAL},
+      DAY1TOP2 = #{record.day1top2,jdbcType=DECIMAL},
+      DAY1TOP3 = #{record.day1top3,jdbcType=DECIMAL},
+      DAY1TOP1NAME = #{record.day1top1name,jdbcType=VARCHAR},
+      DAY1TOP2NAME = #{record.day1top2name,jdbcType=VARCHAR},
+      DAY1TOP3NAME = #{record.day1top3name,jdbcType=VARCHAR},
+      DAY1TOPNUM = #{record.day1topnum,jdbcType=DECIMAL}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Earlywarningmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update EARLYWARNINGMAIN
+    <set>
+      <if test="recodedate != null">
+        RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="wpid != null">
+        WPID = #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpname != null">
+        WPNAME = #{wpname,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        WTID = #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtname != null">
+        WTNAME = #{wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top1 != null">
+        DAY3TOP1 = #{day3top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top2 != null">
+        DAY3TOP2 = #{day3top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top3 != null">
+        DAY3TOP3 = #{day3top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top1 != null">
+        DAY7TOP1 = #{day7top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top2 != null">
+        DAY7TOP2 = #{day7top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top3 != null">
+        DAY7TOP3 = #{day7top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top1 != null">
+        DAY15TOP1 = #{day15top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top2 != null">
+        DAY15TOP2 = #{day15top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top3 != null">
+        DAY15TOP3 = #{day15top3,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top1 != null">
+        MONTH1TOP1 = #{month1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top2 != null">
+        MONTH1TOP2 = #{month1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top3 != null">
+        MONTH1TOP3 = #{month1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top1name != null">
+        DAY3TOP1NAME = #{day3top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top2name != null">
+        DAY3TOP2NAME = #{day3top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top3name != null">
+        DAY3TOP3NAME = #{day3top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top1name != null">
+        DAY7TOP1NAME = #{day7top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top2name != null">
+        DAY7TOP2NAME = #{day7top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top3name != null">
+        DAY7TOP3NAME = #{day7top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top1name != null">
+        DAY15TOP1NAME = #{day15top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top2name != null">
+        DAY15TOP2NAME = #{day15top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top3name != null">
+        DAY15TOP3NAME = #{day15top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top1name != null">
+        MONTH1TOP1NAME = #{month1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top2name != null">
+        MONTH1TOP2NAME = #{month1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top3name != null">
+        MONTH1TOP3NAME = #{month1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1topnum != null">
+        MONTH1TOPNUM = #{month1topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day7topnum != null">
+        DAY7TOPNUM = #{day7topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day15topnum != null">
+        DAY15TOPNUM = #{day15topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day3topnum != null">
+        DAY3TOPNUM = #{day3topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="synthesistopnum != null">
+        SYNTHESISTOPNUM = #{synthesistopnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1 != null">
+        DAY1TOP1 = #{day1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top2 != null">
+        DAY1TOP2 = #{day1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top3 != null">
+        DAY1TOP3 = #{day1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1name != null">
+        DAY1TOP1NAME = #{day1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top2name != null">
+        DAY1TOP2NAME = #{day1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top3name != null">
+        DAY1TOP3NAME = #{day1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1topnum != null">
+        DAY1TOPNUM = #{day1topnum,jdbcType=DECIMAL},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Earlywarningmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update EARLYWARNINGMAIN
+    set RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
+      WPID = #{wpid,jdbcType=VARCHAR},
+      WPNAME = #{wpname,jdbcType=VARCHAR},
+      WTID = #{wtid,jdbcType=VARCHAR},
+      WTNAME = #{wtname,jdbcType=VARCHAR},
+      DAY3TOP1 = #{day3top1,jdbcType=DECIMAL},
+      DAY3TOP2 = #{day3top2,jdbcType=DECIMAL},
+      DAY3TOP3 = #{day3top3,jdbcType=DECIMAL},
+      DAY7TOP1 = #{day7top1,jdbcType=DECIMAL},
+      DAY7TOP2 = #{day7top2,jdbcType=DECIMAL},
+      DAY7TOP3 = #{day7top3,jdbcType=DECIMAL},
+      DAY15TOP1 = #{day15top1,jdbcType=DECIMAL},
+      DAY15TOP2 = #{day15top2,jdbcType=DECIMAL},
+      DAY15TOP3 = #{day15top3,jdbcType=DECIMAL},
+      MONTH1TOP1 = #{month1top1,jdbcType=DECIMAL},
+      MONTH1TOP2 = #{month1top2,jdbcType=DECIMAL},
+      MONTH1TOP3 = #{month1top3,jdbcType=DECIMAL},
+      DAY3TOP1NAME = #{day3top1name,jdbcType=VARCHAR},
+      DAY3TOP2NAME = #{day3top2name,jdbcType=VARCHAR},
+      DAY3TOP3NAME = #{day3top3name,jdbcType=VARCHAR},
+      DAY7TOP1NAME = #{day7top1name,jdbcType=VARCHAR},
+      DAY7TOP2NAME = #{day7top2name,jdbcType=VARCHAR},
+      DAY7TOP3NAME = #{day7top3name,jdbcType=VARCHAR},
+      DAY15TOP1NAME = #{day15top1name,jdbcType=VARCHAR},
+      DAY15TOP2NAME = #{day15top2name,jdbcType=VARCHAR},
+      DAY15TOP3NAME = #{day15top3name,jdbcType=VARCHAR},
+      MONTH1TOP1NAME = #{month1top1name,jdbcType=VARCHAR},
+      MONTH1TOP2NAME = #{month1top2name,jdbcType=VARCHAR},
+      MONTH1TOP3NAME = #{month1top3name,jdbcType=VARCHAR},
+      MONTH1TOPNUM = #{month1topnum,jdbcType=DECIMAL},
+      DAY7TOPNUM = #{day7topnum,jdbcType=DECIMAL},
+      DAY15TOPNUM = #{day15topnum,jdbcType=DECIMAL},
+      DAY3TOPNUM = #{day3topnum,jdbcType=DECIMAL},
+      SYNTHESISTOPNUM = #{synthesistopnum,jdbcType=DECIMAL},
+      DAY1TOP1 = #{day1top1,jdbcType=DECIMAL},
+      DAY1TOP2 = #{day1top2,jdbcType=DECIMAL},
+      DAY1TOP3 = #{day1top3,jdbcType=DECIMAL},
+      DAY1TOP1NAME = #{day1top1name,jdbcType=VARCHAR},
+      DAY1TOP2NAME = #{day1top2name,jdbcType=VARCHAR},
+      DAY1TOP3NAME = #{day1top3name,jdbcType=VARCHAR},
+      DAY1TOPNUM = #{day1topnum,jdbcType=DECIMAL}
+    where ID = #{id,jdbcType=DECIMAL}
+  </update>
+</mapper>

+ 857 - 0
src/main/resources/mybatis/auto/FailurestatisticsmainMapper.xml

@@ -0,0 +1,857 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.FailurestatisticsmainMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Failurestatisticsmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="DECIMAL" property="id" />
+    <result column="RECODEDATE" jdbcType="TIMESTAMP" property="recodedate" />
+    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
+    <result column="WPNAME" jdbcType="VARCHAR" property="wpname" />
+    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
+    <result column="WTNAME" jdbcType="VARCHAR" property="wtname" />
+    <result column="DAY3TOP1" jdbcType="DECIMAL" property="day3top1" />
+    <result column="DAY3TOP2" jdbcType="DECIMAL" property="day3top2" />
+    <result column="DAY3TOP3" jdbcType="DECIMAL" property="day3top3" />
+    <result column="DAY7TOP1" jdbcType="DECIMAL" property="day7top1" />
+    <result column="DAY7TOP2" jdbcType="DECIMAL" property="day7top2" />
+    <result column="DAY7TOP3" jdbcType="DECIMAL" property="day7top3" />
+    <result column="DAY15TOP1" jdbcType="DECIMAL" property="day15top1" />
+    <result column="DAY15TOP2" jdbcType="DECIMAL" property="day15top2" />
+    <result column="DAY15TOP3" jdbcType="DECIMAL" property="day15top3" />
+    <result column="MONTH1TOP1" jdbcType="DECIMAL" property="month1top1" />
+    <result column="MONTH1TOP2" jdbcType="DECIMAL" property="month1top2" />
+    <result column="MONTH1TOP3" jdbcType="DECIMAL" property="month1top3" />
+    <result column="DAY3TOP1NAME" jdbcType="VARCHAR" property="day3top1name" />
+    <result column="DAY3TOP2NAME" jdbcType="VARCHAR" property="day3top2name" />
+    <result column="DAY3TOP3NAME" jdbcType="VARCHAR" property="day3top3name" />
+    <result column="DAY7TOP1NAME" jdbcType="VARCHAR" property="day7top1name" />
+    <result column="DAY7TOP2NAME" jdbcType="VARCHAR" property="day7top2name" />
+    <result column="DAY7TOP3NAME" jdbcType="VARCHAR" property="day7top3name" />
+    <result column="DAY15TOP1NAME" jdbcType="VARCHAR" property="day15top1name" />
+    <result column="DAY15TOP2NAME" jdbcType="VARCHAR" property="day15top2name" />
+    <result column="DAY15TOP3NAME" jdbcType="VARCHAR" property="day15top3name" />
+    <result column="MONTH1TOP1NAME" jdbcType="VARCHAR" property="month1top1name" />
+    <result column="MONTH1TOP2NAME" jdbcType="VARCHAR" property="month1top2name" />
+    <result column="MONTH1TOP3NAME" jdbcType="VARCHAR" property="month1top3name" />
+    <result column="MONTH1TOPNUM" jdbcType="DECIMAL" property="month1topnum" />
+    <result column="DAY7TOPNUM" jdbcType="DECIMAL" property="day7topnum" />
+    <result column="DAY15TOPNUM" jdbcType="DECIMAL" property="day15topnum" />
+    <result column="DAY3TOPNUM" jdbcType="DECIMAL" property="day3topnum" />
+    <result column="SYNTHESISTOPNUM" jdbcType="DECIMAL" property="synthesistopnum" />
+    <result column="DAY1TOP1" jdbcType="DECIMAL" property="day1top1" />
+    <result column="DAY1TOP2" jdbcType="DECIMAL" property="day1top2" />
+    <result column="DAY1TOP3" jdbcType="DECIMAL" property="day1top3" />
+    <result column="DAY1TOP1NAME" jdbcType="VARCHAR" property="day1top1name" />
+    <result column="DAY1TOP2NAME" jdbcType="VARCHAR" property="day1top2name" />
+    <result column="DAY1TOP3NAME" jdbcType="VARCHAR" property="day1top3name" />
+    <result column="DAY1TOPNUM" jdbcType="DECIMAL" property="day1topnum" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, RECODEDATE, WPID, WPNAME, WTID, WTNAME, DAY3TOP1, DAY3TOP2, DAY3TOP3, DAY7TOP1, 
+    DAY7TOP2, DAY7TOP3, DAY15TOP1, DAY15TOP2, DAY15TOP3, MONTH1TOP1, MONTH1TOP2, MONTH1TOP3, 
+    DAY3TOP1NAME, DAY3TOP2NAME, DAY3TOP3NAME, DAY7TOP1NAME, DAY7TOP2NAME, DAY7TOP3NAME, 
+    DAY15TOP1NAME, DAY15TOP2NAME, DAY15TOP3NAME, MONTH1TOP1NAME, MONTH1TOP2NAME, MONTH1TOP3NAME, 
+    MONTH1TOPNUM, DAY7TOPNUM, DAY15TOPNUM, DAY3TOPNUM, SYNTHESISTOPNUM, DAY1TOP1, DAY1TOP2, 
+    DAY1TOP3, DAY1TOP1NAME, DAY1TOP2NAME, DAY1TOP3NAME, DAY1TOPNUM
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.FailurestatisticsmainExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from FAILURESTATISTICSMAIN
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from FAILURESTATISTICSMAIN
+    where ID = #{id,jdbcType=DECIMAL}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from FAILURESTATISTICSMAIN
+    where ID = #{id,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.FailurestatisticsmainExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from FAILURESTATISTICSMAIN
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into FAILURESTATISTICSMAIN (ID, RECODEDATE, WPID, 
+      WPNAME, WTID, WTNAME, 
+      DAY3TOP1, DAY3TOP2, DAY3TOP3, 
+      DAY7TOP1, DAY7TOP2, DAY7TOP3, 
+      DAY15TOP1, DAY15TOP2, DAY15TOP3, 
+      MONTH1TOP1, MONTH1TOP2, MONTH1TOP3, 
+      DAY3TOP1NAME, DAY3TOP2NAME, DAY3TOP3NAME, 
+      DAY7TOP1NAME, DAY7TOP2NAME, DAY7TOP3NAME, 
+      DAY15TOP1NAME, DAY15TOP2NAME, DAY15TOP3NAME, 
+      MONTH1TOP1NAME, MONTH1TOP2NAME, MONTH1TOP3NAME, 
+      MONTH1TOPNUM, DAY7TOPNUM, DAY15TOPNUM, 
+      DAY3TOPNUM, SYNTHESISTOPNUM, DAY1TOP1, 
+      DAY1TOP2, DAY1TOP3, DAY1TOP1NAME, 
+      DAY1TOP2NAME, DAY1TOP3NAME, DAY1TOPNUM
+      )
+    values (#{id,jdbcType=DECIMAL}, #{recodedate,jdbcType=TIMESTAMP}, #{wpid,jdbcType=VARCHAR}, 
+      #{wpname,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wtname,jdbcType=VARCHAR}, 
+      #{day3top1,jdbcType=DECIMAL}, #{day3top2,jdbcType=DECIMAL}, #{day3top3,jdbcType=DECIMAL}, 
+      #{day7top1,jdbcType=DECIMAL}, #{day7top2,jdbcType=DECIMAL}, #{day7top3,jdbcType=DECIMAL}, 
+      #{day15top1,jdbcType=DECIMAL}, #{day15top2,jdbcType=DECIMAL}, #{day15top3,jdbcType=DECIMAL}, 
+      #{month1top1,jdbcType=DECIMAL}, #{month1top2,jdbcType=DECIMAL}, #{month1top3,jdbcType=DECIMAL}, 
+      #{day3top1name,jdbcType=VARCHAR}, #{day3top2name,jdbcType=VARCHAR}, #{day3top3name,jdbcType=VARCHAR}, 
+      #{day7top1name,jdbcType=VARCHAR}, #{day7top2name,jdbcType=VARCHAR}, #{day7top3name,jdbcType=VARCHAR}, 
+      #{day15top1name,jdbcType=VARCHAR}, #{day15top2name,jdbcType=VARCHAR}, #{day15top3name,jdbcType=VARCHAR}, 
+      #{month1top1name,jdbcType=VARCHAR}, #{month1top2name,jdbcType=VARCHAR}, #{month1top3name,jdbcType=VARCHAR}, 
+      #{month1topnum,jdbcType=DECIMAL}, #{day7topnum,jdbcType=DECIMAL}, #{day15topnum,jdbcType=DECIMAL}, 
+      #{day3topnum,jdbcType=DECIMAL}, #{synthesistopnum,jdbcType=DECIMAL}, #{day1top1,jdbcType=DECIMAL}, 
+      #{day1top2,jdbcType=DECIMAL}, #{day1top3,jdbcType=DECIMAL}, #{day1top1name,jdbcType=VARCHAR}, 
+      #{day1top2name,jdbcType=VARCHAR}, #{day1top3name,jdbcType=VARCHAR}, #{day1topnum,jdbcType=DECIMAL}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into FAILURESTATISTICSMAIN
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="recodedate != null">
+        RECODEDATE,
+      </if>
+      <if test="wpid != null">
+        WPID,
+      </if>
+      <if test="wpname != null">
+        WPNAME,
+      </if>
+      <if test="wtid != null">
+        WTID,
+      </if>
+      <if test="wtname != null">
+        WTNAME,
+      </if>
+      <if test="day3top1 != null">
+        DAY3TOP1,
+      </if>
+      <if test="day3top2 != null">
+        DAY3TOP2,
+      </if>
+      <if test="day3top3 != null">
+        DAY3TOP3,
+      </if>
+      <if test="day7top1 != null">
+        DAY7TOP1,
+      </if>
+      <if test="day7top2 != null">
+        DAY7TOP2,
+      </if>
+      <if test="day7top3 != null">
+        DAY7TOP3,
+      </if>
+      <if test="day15top1 != null">
+        DAY15TOP1,
+      </if>
+      <if test="day15top2 != null">
+        DAY15TOP2,
+      </if>
+      <if test="day15top3 != null">
+        DAY15TOP3,
+      </if>
+      <if test="month1top1 != null">
+        MONTH1TOP1,
+      </if>
+      <if test="month1top2 != null">
+        MONTH1TOP2,
+      </if>
+      <if test="month1top3 != null">
+        MONTH1TOP3,
+      </if>
+      <if test="day3top1name != null">
+        DAY3TOP1NAME,
+      </if>
+      <if test="day3top2name != null">
+        DAY3TOP2NAME,
+      </if>
+      <if test="day3top3name != null">
+        DAY3TOP3NAME,
+      </if>
+      <if test="day7top1name != null">
+        DAY7TOP1NAME,
+      </if>
+      <if test="day7top2name != null">
+        DAY7TOP2NAME,
+      </if>
+      <if test="day7top3name != null">
+        DAY7TOP3NAME,
+      </if>
+      <if test="day15top1name != null">
+        DAY15TOP1NAME,
+      </if>
+      <if test="day15top2name != null">
+        DAY15TOP2NAME,
+      </if>
+      <if test="day15top3name != null">
+        DAY15TOP3NAME,
+      </if>
+      <if test="month1top1name != null">
+        MONTH1TOP1NAME,
+      </if>
+      <if test="month1top2name != null">
+        MONTH1TOP2NAME,
+      </if>
+      <if test="month1top3name != null">
+        MONTH1TOP3NAME,
+      </if>
+      <if test="month1topnum != null">
+        MONTH1TOPNUM,
+      </if>
+      <if test="day7topnum != null">
+        DAY7TOPNUM,
+      </if>
+      <if test="day15topnum != null">
+        DAY15TOPNUM,
+      </if>
+      <if test="day3topnum != null">
+        DAY3TOPNUM,
+      </if>
+      <if test="synthesistopnum != null">
+        SYNTHESISTOPNUM,
+      </if>
+      <if test="day1top1 != null">
+        DAY1TOP1,
+      </if>
+      <if test="day1top2 != null">
+        DAY1TOP2,
+      </if>
+      <if test="day1top3 != null">
+        DAY1TOP3,
+      </if>
+      <if test="day1top1name != null">
+        DAY1TOP1NAME,
+      </if>
+      <if test="day1top2name != null">
+        DAY1TOP2NAME,
+      </if>
+      <if test="day1top3name != null">
+        DAY1TOP3NAME,
+      </if>
+      <if test="day1topnum != null">
+        DAY1TOPNUM,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=DECIMAL},
+      </if>
+      <if test="recodedate != null">
+        #{recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="wpid != null">
+        #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpname != null">
+        #{wpname,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtname != null">
+        #{wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top1 != null">
+        #{day3top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top2 != null">
+        #{day3top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top3 != null">
+        #{day3top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top1 != null">
+        #{day7top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top2 != null">
+        #{day7top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top3 != null">
+        #{day7top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top1 != null">
+        #{day15top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top2 != null">
+        #{day15top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top3 != null">
+        #{day15top3,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top1 != null">
+        #{month1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top2 != null">
+        #{month1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top3 != null">
+        #{month1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top1name != null">
+        #{day3top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top2name != null">
+        #{day3top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top3name != null">
+        #{day3top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top1name != null">
+        #{day7top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top2name != null">
+        #{day7top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top3name != null">
+        #{day7top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top1name != null">
+        #{day15top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top2name != null">
+        #{day15top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top3name != null">
+        #{day15top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top1name != null">
+        #{month1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top2name != null">
+        #{month1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top3name != null">
+        #{month1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1topnum != null">
+        #{month1topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day7topnum != null">
+        #{day7topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day15topnum != null">
+        #{day15topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day3topnum != null">
+        #{day3topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="synthesistopnum != null">
+        #{synthesistopnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1 != null">
+        #{day1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top2 != null">
+        #{day1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top3 != null">
+        #{day1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1name != null">
+        #{day1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top2name != null">
+        #{day1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top3name != null">
+        #{day1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1topnum != null">
+        #{day1topnum,jdbcType=DECIMAL},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.FailurestatisticsmainExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from FAILURESTATISTICSMAIN
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update FAILURESTATISTICSMAIN
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=DECIMAL},
+      </if>
+      <if test="record.recodedate != null">
+        RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.wpid != null">
+        WPID = #{record.wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wpname != null">
+        WPNAME = #{record.wpname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtid != null">
+        WTID = #{record.wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtname != null">
+        WTNAME = #{record.wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day3top1 != null">
+        DAY3TOP1 = #{record.day3top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3top2 != null">
+        DAY3TOP2 = #{record.day3top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3top3 != null">
+        DAY3TOP3 = #{record.day3top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7top1 != null">
+        DAY7TOP1 = #{record.day7top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7top2 != null">
+        DAY7TOP2 = #{record.day7top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7top3 != null">
+        DAY7TOP3 = #{record.day7top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15top1 != null">
+        DAY15TOP1 = #{record.day15top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15top2 != null">
+        DAY15TOP2 = #{record.day15top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15top3 != null">
+        DAY15TOP3 = #{record.day15top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.month1top1 != null">
+        MONTH1TOP1 = #{record.month1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.month1top2 != null">
+        MONTH1TOP2 = #{record.month1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.month1top3 != null">
+        MONTH1TOP3 = #{record.month1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3top1name != null">
+        DAY3TOP1NAME = #{record.day3top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day3top2name != null">
+        DAY3TOP2NAME = #{record.day3top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day3top3name != null">
+        DAY3TOP3NAME = #{record.day3top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day7top1name != null">
+        DAY7TOP1NAME = #{record.day7top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day7top2name != null">
+        DAY7TOP2NAME = #{record.day7top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day7top3name != null">
+        DAY7TOP3NAME = #{record.day7top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day15top1name != null">
+        DAY15TOP1NAME = #{record.day15top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day15top2name != null">
+        DAY15TOP2NAME = #{record.day15top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day15top3name != null">
+        DAY15TOP3NAME = #{record.day15top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1top1name != null">
+        MONTH1TOP1NAME = #{record.month1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1top2name != null">
+        MONTH1TOP2NAME = #{record.month1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1top3name != null">
+        MONTH1TOP3NAME = #{record.month1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month1topnum != null">
+        MONTH1TOPNUM = #{record.month1topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day7topnum != null">
+        DAY7TOPNUM = #{record.day7topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day15topnum != null">
+        DAY15TOPNUM = #{record.day15topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day3topnum != null">
+        DAY3TOPNUM = #{record.day3topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.synthesistopnum != null">
+        SYNTHESISTOPNUM = #{record.synthesistopnum,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top1 != null">
+        DAY1TOP1 = #{record.day1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top2 != null">
+        DAY1TOP2 = #{record.day1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top3 != null">
+        DAY1TOP3 = #{record.day1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="record.day1top1name != null">
+        DAY1TOP1NAME = #{record.day1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day1top2name != null">
+        DAY1TOP2NAME = #{record.day1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day1top3name != null">
+        DAY1TOP3NAME = #{record.day1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.day1topnum != null">
+        DAY1TOPNUM = #{record.day1topnum,jdbcType=DECIMAL},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update FAILURESTATISTICSMAIN
+    set ID = #{record.id,jdbcType=DECIMAL},
+      RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
+      WPID = #{record.wpid,jdbcType=VARCHAR},
+      WPNAME = #{record.wpname,jdbcType=VARCHAR},
+      WTID = #{record.wtid,jdbcType=VARCHAR},
+      WTNAME = #{record.wtname,jdbcType=VARCHAR},
+      DAY3TOP1 = #{record.day3top1,jdbcType=DECIMAL},
+      DAY3TOP2 = #{record.day3top2,jdbcType=DECIMAL},
+      DAY3TOP3 = #{record.day3top3,jdbcType=DECIMAL},
+      DAY7TOP1 = #{record.day7top1,jdbcType=DECIMAL},
+      DAY7TOP2 = #{record.day7top2,jdbcType=DECIMAL},
+      DAY7TOP3 = #{record.day7top3,jdbcType=DECIMAL},
+      DAY15TOP1 = #{record.day15top1,jdbcType=DECIMAL},
+      DAY15TOP2 = #{record.day15top2,jdbcType=DECIMAL},
+      DAY15TOP3 = #{record.day15top3,jdbcType=DECIMAL},
+      MONTH1TOP1 = #{record.month1top1,jdbcType=DECIMAL},
+      MONTH1TOP2 = #{record.month1top2,jdbcType=DECIMAL},
+      MONTH1TOP3 = #{record.month1top3,jdbcType=DECIMAL},
+      DAY3TOP1NAME = #{record.day3top1name,jdbcType=VARCHAR},
+      DAY3TOP2NAME = #{record.day3top2name,jdbcType=VARCHAR},
+      DAY3TOP3NAME = #{record.day3top3name,jdbcType=VARCHAR},
+      DAY7TOP1NAME = #{record.day7top1name,jdbcType=VARCHAR},
+      DAY7TOP2NAME = #{record.day7top2name,jdbcType=VARCHAR},
+      DAY7TOP3NAME = #{record.day7top3name,jdbcType=VARCHAR},
+      DAY15TOP1NAME = #{record.day15top1name,jdbcType=VARCHAR},
+      DAY15TOP2NAME = #{record.day15top2name,jdbcType=VARCHAR},
+      DAY15TOP3NAME = #{record.day15top3name,jdbcType=VARCHAR},
+      MONTH1TOP1NAME = #{record.month1top1name,jdbcType=VARCHAR},
+      MONTH1TOP2NAME = #{record.month1top2name,jdbcType=VARCHAR},
+      MONTH1TOP3NAME = #{record.month1top3name,jdbcType=VARCHAR},
+      MONTH1TOPNUM = #{record.month1topnum,jdbcType=DECIMAL},
+      DAY7TOPNUM = #{record.day7topnum,jdbcType=DECIMAL},
+      DAY15TOPNUM = #{record.day15topnum,jdbcType=DECIMAL},
+      DAY3TOPNUM = #{record.day3topnum,jdbcType=DECIMAL},
+      SYNTHESISTOPNUM = #{record.synthesistopnum,jdbcType=DECIMAL},
+      DAY1TOP1 = #{record.day1top1,jdbcType=DECIMAL},
+      DAY1TOP2 = #{record.day1top2,jdbcType=DECIMAL},
+      DAY1TOP3 = #{record.day1top3,jdbcType=DECIMAL},
+      DAY1TOP1NAME = #{record.day1top1name,jdbcType=VARCHAR},
+      DAY1TOP2NAME = #{record.day1top2name,jdbcType=VARCHAR},
+      DAY1TOP3NAME = #{record.day1top3name,jdbcType=VARCHAR},
+      DAY1TOPNUM = #{record.day1topnum,jdbcType=DECIMAL}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update FAILURESTATISTICSMAIN
+    <set>
+      <if test="recodedate != null">
+        RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="wpid != null">
+        WPID = #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpname != null">
+        WPNAME = #{wpname,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        WTID = #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtname != null">
+        WTNAME = #{wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top1 != null">
+        DAY3TOP1 = #{day3top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top2 != null">
+        DAY3TOP2 = #{day3top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top3 != null">
+        DAY3TOP3 = #{day3top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top1 != null">
+        DAY7TOP1 = #{day7top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top2 != null">
+        DAY7TOP2 = #{day7top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day7top3 != null">
+        DAY7TOP3 = #{day7top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top1 != null">
+        DAY15TOP1 = #{day15top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top2 != null">
+        DAY15TOP2 = #{day15top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day15top3 != null">
+        DAY15TOP3 = #{day15top3,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top1 != null">
+        MONTH1TOP1 = #{month1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top2 != null">
+        MONTH1TOP2 = #{month1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="month1top3 != null">
+        MONTH1TOP3 = #{month1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day3top1name != null">
+        DAY3TOP1NAME = #{day3top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top2name != null">
+        DAY3TOP2NAME = #{day3top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day3top3name != null">
+        DAY3TOP3NAME = #{day3top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top1name != null">
+        DAY7TOP1NAME = #{day7top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top2name != null">
+        DAY7TOP2NAME = #{day7top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day7top3name != null">
+        DAY7TOP3NAME = #{day7top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top1name != null">
+        DAY15TOP1NAME = #{day15top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top2name != null">
+        DAY15TOP2NAME = #{day15top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day15top3name != null">
+        DAY15TOP3NAME = #{day15top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top1name != null">
+        MONTH1TOP1NAME = #{month1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top2name != null">
+        MONTH1TOP2NAME = #{month1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1top3name != null">
+        MONTH1TOP3NAME = #{month1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="month1topnum != null">
+        MONTH1TOPNUM = #{month1topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day7topnum != null">
+        DAY7TOPNUM = #{day7topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day15topnum != null">
+        DAY15TOPNUM = #{day15topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day3topnum != null">
+        DAY3TOPNUM = #{day3topnum,jdbcType=DECIMAL},
+      </if>
+      <if test="synthesistopnum != null">
+        SYNTHESISTOPNUM = #{synthesistopnum,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1 != null">
+        DAY1TOP1 = #{day1top1,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top2 != null">
+        DAY1TOP2 = #{day1top2,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top3 != null">
+        DAY1TOP3 = #{day1top3,jdbcType=DECIMAL},
+      </if>
+      <if test="day1top1name != null">
+        DAY1TOP1NAME = #{day1top1name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top2name != null">
+        DAY1TOP2NAME = #{day1top2name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1top3name != null">
+        DAY1TOP3NAME = #{day1top3name,jdbcType=VARCHAR},
+      </if>
+      <if test="day1topnum != null">
+        DAY1TOPNUM = #{day1topnum,jdbcType=DECIMAL},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Failurestatisticsmain">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update FAILURESTATISTICSMAIN
+    set RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
+      WPID = #{wpid,jdbcType=VARCHAR},
+      WPNAME = #{wpname,jdbcType=VARCHAR},
+      WTID = #{wtid,jdbcType=VARCHAR},
+      WTNAME = #{wtname,jdbcType=VARCHAR},
+      DAY3TOP1 = #{day3top1,jdbcType=DECIMAL},
+      DAY3TOP2 = #{day3top2,jdbcType=DECIMAL},
+      DAY3TOP3 = #{day3top3,jdbcType=DECIMAL},
+      DAY7TOP1 = #{day7top1,jdbcType=DECIMAL},
+      DAY7TOP2 = #{day7top2,jdbcType=DECIMAL},
+      DAY7TOP3 = #{day7top3,jdbcType=DECIMAL},
+      DAY15TOP1 = #{day15top1,jdbcType=DECIMAL},
+      DAY15TOP2 = #{day15top2,jdbcType=DECIMAL},
+      DAY15TOP3 = #{day15top3,jdbcType=DECIMAL},
+      MONTH1TOP1 = #{month1top1,jdbcType=DECIMAL},
+      MONTH1TOP2 = #{month1top2,jdbcType=DECIMAL},
+      MONTH1TOP3 = #{month1top3,jdbcType=DECIMAL},
+      DAY3TOP1NAME = #{day3top1name,jdbcType=VARCHAR},
+      DAY3TOP2NAME = #{day3top2name,jdbcType=VARCHAR},
+      DAY3TOP3NAME = #{day3top3name,jdbcType=VARCHAR},
+      DAY7TOP1NAME = #{day7top1name,jdbcType=VARCHAR},
+      DAY7TOP2NAME = #{day7top2name,jdbcType=VARCHAR},
+      DAY7TOP3NAME = #{day7top3name,jdbcType=VARCHAR},
+      DAY15TOP1NAME = #{day15top1name,jdbcType=VARCHAR},
+      DAY15TOP2NAME = #{day15top2name,jdbcType=VARCHAR},
+      DAY15TOP3NAME = #{day15top3name,jdbcType=VARCHAR},
+      MONTH1TOP1NAME = #{month1top1name,jdbcType=VARCHAR},
+      MONTH1TOP2NAME = #{month1top2name,jdbcType=VARCHAR},
+      MONTH1TOP3NAME = #{month1top3name,jdbcType=VARCHAR},
+      MONTH1TOPNUM = #{month1topnum,jdbcType=DECIMAL},
+      DAY7TOPNUM = #{day7topnum,jdbcType=DECIMAL},
+      DAY15TOPNUM = #{day15topnum,jdbcType=DECIMAL},
+      DAY3TOPNUM = #{day3topnum,jdbcType=DECIMAL},
+      SYNTHESISTOPNUM = #{synthesistopnum,jdbcType=DECIMAL},
+      DAY1TOP1 = #{day1top1,jdbcType=DECIMAL},
+      DAY1TOP2 = #{day1top2,jdbcType=DECIMAL},
+      DAY1TOP3 = #{day1top3,jdbcType=DECIMAL},
+      DAY1TOP1NAME = #{day1top1name,jdbcType=VARCHAR},
+      DAY1TOP2NAME = #{day1top2name,jdbcType=VARCHAR},
+      DAY1TOP3NAME = #{day1top3name,jdbcType=VARCHAR},
+      DAY1TOPNUM = #{day1topnum,jdbcType=DECIMAL}
+    where ID = #{id,jdbcType=DECIMAL}
+  </update>
+</mapper>

+ 430 - 0
src/main/resources/mybatis/auto/Monthlygradeassessmentmain2Mapper.xml

@@ -0,0 +1,430 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.Monthlygradeassessmentmain2Mapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Monthlygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="VARCHAR" property="id" />
+    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
+    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
+    <result column="PROJECTID" jdbcType="VARCHAR" property="projectid" />
+    <result column="LINEID" jdbcType="VARCHAR" property="lineid" />
+    <result column="YEAR" jdbcType="VARCHAR" property="year" />
+    <result column="MONTH" jdbcType="VARCHAR" property="month" />
+    <result column="RECORDDATE" jdbcType="TIMESTAMP" property="recorddate" />
+    <result column="SCORE" jdbcType="DECIMAL" property="score" />
+    <result column="PLEVEL" jdbcType="VARCHAR" property="plevel" />
+    <result column="STATE" jdbcType="DECIMAL" property="state" />
+    <result column="MODSCORE" jdbcType="DECIMAL" property="modscore" />
+    <result column="MODLEVEL" jdbcType="VARCHAR" property="modlevel" />
+    <result column="TOTALSCORE" jdbcType="DECIMAL" property="totalscore" />
+    <result column="TID" jdbcType="VARCHAR" property="tid" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, WTID, WPID, PROJECTID, LINEID, YEAR, MONTH, RECORDDATE, SCORE, PLEVEL, STATE, 
+    MODSCORE, MODLEVEL, TOTALSCORE, TID
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2Example" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from MONTHLYGRADEASSESSMENTMAIN2
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from MONTHLYGRADEASSESSMENTMAIN2
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from MONTHLYGRADEASSESSMENTMAIN2
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2Example">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from MONTHLYGRADEASSESSMENTMAIN2
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into MONTHLYGRADEASSESSMENTMAIN2 (ID, WTID, WPID, 
+      PROJECTID, LINEID, YEAR, 
+      MONTH, RECORDDATE, SCORE, 
+      PLEVEL, STATE, MODSCORE, 
+      MODLEVEL, TOTALSCORE, TID
+      )
+    values (#{id,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, #{wpid,jdbcType=VARCHAR}, 
+      #{projectid,jdbcType=VARCHAR}, #{lineid,jdbcType=VARCHAR}, #{year,jdbcType=VARCHAR}, 
+      #{month,jdbcType=VARCHAR}, #{recorddate,jdbcType=TIMESTAMP}, #{score,jdbcType=DECIMAL}, 
+      #{plevel,jdbcType=VARCHAR}, #{state,jdbcType=DECIMAL}, #{modscore,jdbcType=DECIMAL}, 
+      #{modlevel,jdbcType=VARCHAR}, #{totalscore,jdbcType=DECIMAL}, #{tid,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into MONTHLYGRADEASSESSMENTMAIN2
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="wtid != null">
+        WTID,
+      </if>
+      <if test="wpid != null">
+        WPID,
+      </if>
+      <if test="projectid != null">
+        PROJECTID,
+      </if>
+      <if test="lineid != null">
+        LINEID,
+      </if>
+      <if test="year != null">
+        YEAR,
+      </if>
+      <if test="month != null">
+        MONTH,
+      </if>
+      <if test="recorddate != null">
+        RECORDDATE,
+      </if>
+      <if test="score != null">
+        SCORE,
+      </if>
+      <if test="plevel != null">
+        PLEVEL,
+      </if>
+      <if test="state != null">
+        STATE,
+      </if>
+      <if test="modscore != null">
+        MODSCORE,
+      </if>
+      <if test="modlevel != null">
+        MODLEVEL,
+      </if>
+      <if test="totalscore != null">
+        TOTALSCORE,
+      </if>
+      <if test="tid != null">
+        TID,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpid != null">
+        #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="year != null">
+        #{year,jdbcType=VARCHAR},
+      </if>
+      <if test="month != null">
+        #{month,jdbcType=VARCHAR},
+      </if>
+      <if test="recorddate != null">
+        #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="score != null">
+        #{score,jdbcType=DECIMAL},
+      </if>
+      <if test="plevel != null">
+        #{plevel,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null">
+        #{state,jdbcType=DECIMAL},
+      </if>
+      <if test="modscore != null">
+        #{modscore,jdbcType=DECIMAL},
+      </if>
+      <if test="modlevel != null">
+        #{modlevel,jdbcType=VARCHAR},
+      </if>
+      <if test="totalscore != null">
+        #{totalscore,jdbcType=DECIMAL},
+      </if>
+      <if test="tid != null">
+        #{tid,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2Example" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from MONTHLYGRADEASSESSMENTMAIN2
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update MONTHLYGRADEASSESSMENTMAIN2
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtid != null">
+        WTID = #{record.wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wpid != null">
+        WPID = #{record.wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.projectid != null">
+        PROJECTID = #{record.projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.lineid != null">
+        LINEID = #{record.lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.year != null">
+        YEAR = #{record.year,jdbcType=VARCHAR},
+      </if>
+      <if test="record.month != null">
+        MONTH = #{record.month,jdbcType=VARCHAR},
+      </if>
+      <if test="record.recorddate != null">
+        RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.score != null">
+        SCORE = #{record.score,jdbcType=DECIMAL},
+      </if>
+      <if test="record.plevel != null">
+        PLEVEL = #{record.plevel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.state != null">
+        STATE = #{record.state,jdbcType=DECIMAL},
+      </if>
+      <if test="record.modscore != null">
+        MODSCORE = #{record.modscore,jdbcType=DECIMAL},
+      </if>
+      <if test="record.modlevel != null">
+        MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.totalscore != null">
+        TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
+      </if>
+      <if test="record.tid != null">
+        TID = #{record.tid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update MONTHLYGRADEASSESSMENTMAIN2
+    set ID = #{record.id,jdbcType=VARCHAR},
+      WTID = #{record.wtid,jdbcType=VARCHAR},
+      WPID = #{record.wpid,jdbcType=VARCHAR},
+      PROJECTID = #{record.projectid,jdbcType=VARCHAR},
+      LINEID = #{record.lineid,jdbcType=VARCHAR},
+      YEAR = #{record.year,jdbcType=VARCHAR},
+      MONTH = #{record.month,jdbcType=VARCHAR},
+      RECORDDATE = #{record.recorddate,jdbcType=TIMESTAMP},
+      SCORE = #{record.score,jdbcType=DECIMAL},
+      PLEVEL = #{record.plevel,jdbcType=VARCHAR},
+      STATE = #{record.state,jdbcType=DECIMAL},
+      MODSCORE = #{record.modscore,jdbcType=DECIMAL},
+      MODLEVEL = #{record.modlevel,jdbcType=VARCHAR},
+      TOTALSCORE = #{record.totalscore,jdbcType=DECIMAL},
+      TID = #{record.tid,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update MONTHLYGRADEASSESSMENTMAIN2
+    <set>
+      <if test="wtid != null">
+        WTID = #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wpid != null">
+        WPID = #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        PROJECTID = #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        LINEID = #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="year != null">
+        YEAR = #{year,jdbcType=VARCHAR},
+      </if>
+      <if test="month != null">
+        MONTH = #{month,jdbcType=VARCHAR},
+      </if>
+      <if test="recorddate != null">
+        RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="score != null">
+        SCORE = #{score,jdbcType=DECIMAL},
+      </if>
+      <if test="plevel != null">
+        PLEVEL = #{plevel,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null">
+        STATE = #{state,jdbcType=DECIMAL},
+      </if>
+      <if test="modscore != null">
+        MODSCORE = #{modscore,jdbcType=DECIMAL},
+      </if>
+      <if test="modlevel != null">
+        MODLEVEL = #{modlevel,jdbcType=VARCHAR},
+      </if>
+      <if test="totalscore != null">
+        TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
+      </if>
+      <if test="tid != null">
+        TID = #{tid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Monthlygradeassessmentmain2">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update MONTHLYGRADEASSESSMENTMAIN2
+    set WTID = #{wtid,jdbcType=VARCHAR},
+      WPID = #{wpid,jdbcType=VARCHAR},
+      PROJECTID = #{projectid,jdbcType=VARCHAR},
+      LINEID = #{lineid,jdbcType=VARCHAR},
+      YEAR = #{year,jdbcType=VARCHAR},
+      MONTH = #{month,jdbcType=VARCHAR},
+      RECORDDATE = #{recorddate,jdbcType=TIMESTAMP},
+      SCORE = #{score,jdbcType=DECIMAL},
+      PLEVEL = #{plevel,jdbcType=VARCHAR},
+      STATE = #{state,jdbcType=DECIMAL},
+      MODSCORE = #{modscore,jdbcType=DECIMAL},
+      MODLEVEL = #{modlevel,jdbcType=VARCHAR},
+      TOTALSCORE = #{totalscore,jdbcType=DECIMAL},
+      TID = #{tid,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 683 - 0
src/main/resources/mybatis/auto/P3TaskMapper.xml

@@ -0,0 +1,683 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.P3TaskMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.P3Task">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="VARCHAR" property="id" />
+    <result column="TASKCODE" jdbcType="VARCHAR" property="taskcode" />
+    <result column="WINDPOWERSTATIONID" jdbcType="VARCHAR" property="windpowerstationid" />
+    <result column="WINDTURBINEID" jdbcType="VARCHAR" property="windturbineid" />
+    <result column="WARNINGID" jdbcType="VARCHAR" property="warningid" />
+    <result column="PARTID" jdbcType="VARCHAR" property="partid" />
+    <result column="FREQUENCYCOUNT" jdbcType="DECIMAL" property="frequencycount" />
+    <result column="FAULTCYCLE" jdbcType="DECIMAL" property="faultcycle" />
+    <result column="SHUTDOWNAVGTIME" jdbcType="DECIMAL" property="shutdownavgtime" />
+    <result column="EXPECTLOSTPOWER" jdbcType="DECIMAL" property="expectlostpower" />
+    <result column="HANDLEWAY" jdbcType="CHAR" property="handleway" />
+    <result column="TASKTYPE" jdbcType="CHAR" property="tasktype" />
+    <result column="TASKCLASS" jdbcType="CHAR" property="taskclass" />
+    <result column="TASKSTATUS" jdbcType="CHAR" property="taskstatus" />
+    <result column="TASKMADETIME" jdbcType="TIMESTAMP" property="taskmadetime" />
+    <result column="LASTFAULTTIME" jdbcType="TIMESTAMP" property="lastfaulttime" />
+    <result column="STOPTIME" jdbcType="TIMESTAMP" property="stoptime" />
+    <result column="TASKSTARTTIME" jdbcType="TIMESTAMP" property="taskstarttime" />
+    <result column="TASKRECEIVETIME" jdbcType="TIMESTAMP" property="taskreceivetime" />
+    <result column="ARRIVESPOTTIME" jdbcType="TIMESTAMP" property="arrivespottime" />
+    <result column="EXPECTFINISHTIME" jdbcType="TIMESTAMP" property="expectfinishtime" />
+    <result column="USERID" jdbcType="VARCHAR" property="userid" />
+    <result column="USERNAME" jdbcType="VARCHAR" property="username" />
+    <result column="RECOMMENDTIME" jdbcType="TIMESTAMP" property="recommendtime" />
+    <result column="TASKFINISHTIME" jdbcType="TIMESTAMP" property="taskfinishtime" />
+    <result column="FINISHGRIDCONNECTTIME" jdbcType="TIMESTAMP" property="finishgridconnecttime" />
+    <result column="FACTLOSTPOWER" jdbcType="DECIMAL" property="factlostpower" />
+    <result column="TASKMADEUSERID" jdbcType="VARCHAR" property="taskmadeuserid" />
+    <result column="TASKMADEUSERNAME" jdbcType="VARCHAR" property="taskmadeusername" />
+    <result column="FAILURECAUSEID" jdbcType="VARCHAR" property="failurecauseid" />
+    <result column="WARNINGLEVEL" jdbcType="CHAR" property="warninglevel" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, TASKCODE, WINDPOWERSTATIONID, WINDTURBINEID, WARNINGID, PARTID, FREQUENCYCOUNT, 
+    FAULTCYCLE, SHUTDOWNAVGTIME, EXPECTLOSTPOWER, HANDLEWAY, TASKTYPE, TASKCLASS, TASKSTATUS, 
+    TASKMADETIME, LASTFAULTTIME, STOPTIME, TASKSTARTTIME, TASKRECEIVETIME, ARRIVESPOTTIME, 
+    EXPECTFINISHTIME, USERID, USERNAME, RECOMMENDTIME, TASKFINISHTIME, FINISHGRIDCONNECTTIME, 
+    FACTLOSTPOWER, TASKMADEUSERID, TASKMADEUSERNAME, FAILURECAUSEID, WARNINGLEVEL
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.P3TaskExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from P3_TASK
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from P3_TASK
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from P3_TASK
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.P3TaskExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from P3_TASK
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.P3Task">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into P3_TASK (ID, TASKCODE, WINDPOWERSTATIONID, 
+      WINDTURBINEID, WARNINGID, PARTID, 
+      FREQUENCYCOUNT, FAULTCYCLE, SHUTDOWNAVGTIME, 
+      EXPECTLOSTPOWER, HANDLEWAY, TASKTYPE, 
+      TASKCLASS, TASKSTATUS, TASKMADETIME, 
+      LASTFAULTTIME, STOPTIME, TASKSTARTTIME, 
+      TASKRECEIVETIME, ARRIVESPOTTIME, EXPECTFINISHTIME, 
+      USERID, USERNAME, RECOMMENDTIME, 
+      TASKFINISHTIME, FINISHGRIDCONNECTTIME, 
+      FACTLOSTPOWER, TASKMADEUSERID, TASKMADEUSERNAME, 
+      FAILURECAUSEID, WARNINGLEVEL)
+    values (#{id,jdbcType=VARCHAR}, #{taskcode,jdbcType=VARCHAR}, #{windpowerstationid,jdbcType=VARCHAR}, 
+      #{windturbineid,jdbcType=VARCHAR}, #{warningid,jdbcType=VARCHAR}, #{partid,jdbcType=VARCHAR}, 
+      #{frequencycount,jdbcType=DECIMAL}, #{faultcycle,jdbcType=DECIMAL}, #{shutdownavgtime,jdbcType=DECIMAL}, 
+      #{expectlostpower,jdbcType=DECIMAL}, #{handleway,jdbcType=CHAR}, #{tasktype,jdbcType=CHAR}, 
+      #{taskclass,jdbcType=CHAR}, #{taskstatus,jdbcType=CHAR}, #{taskmadetime,jdbcType=TIMESTAMP}, 
+      #{lastfaulttime,jdbcType=TIMESTAMP}, #{stoptime,jdbcType=TIMESTAMP}, #{taskstarttime,jdbcType=TIMESTAMP}, 
+      #{taskreceivetime,jdbcType=TIMESTAMP}, #{arrivespottime,jdbcType=TIMESTAMP}, #{expectfinishtime,jdbcType=TIMESTAMP}, 
+      #{userid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{recommendtime,jdbcType=TIMESTAMP}, 
+      #{taskfinishtime,jdbcType=TIMESTAMP}, #{finishgridconnecttime,jdbcType=TIMESTAMP}, 
+      #{factlostpower,jdbcType=DECIMAL}, #{taskmadeuserid,jdbcType=VARCHAR}, #{taskmadeusername,jdbcType=VARCHAR}, 
+      #{failurecauseid,jdbcType=VARCHAR}, #{warninglevel,jdbcType=CHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.P3Task">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into P3_TASK
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="taskcode != null">
+        TASKCODE,
+      </if>
+      <if test="windpowerstationid != null">
+        WINDPOWERSTATIONID,
+      </if>
+      <if test="windturbineid != null">
+        WINDTURBINEID,
+      </if>
+      <if test="warningid != null">
+        WARNINGID,
+      </if>
+      <if test="partid != null">
+        PARTID,
+      </if>
+      <if test="frequencycount != null">
+        FREQUENCYCOUNT,
+      </if>
+      <if test="faultcycle != null">
+        FAULTCYCLE,
+      </if>
+      <if test="shutdownavgtime != null">
+        SHUTDOWNAVGTIME,
+      </if>
+      <if test="expectlostpower != null">
+        EXPECTLOSTPOWER,
+      </if>
+      <if test="handleway != null">
+        HANDLEWAY,
+      </if>
+      <if test="tasktype != null">
+        TASKTYPE,
+      </if>
+      <if test="taskclass != null">
+        TASKCLASS,
+      </if>
+      <if test="taskstatus != null">
+        TASKSTATUS,
+      </if>
+      <if test="taskmadetime != null">
+        TASKMADETIME,
+      </if>
+      <if test="lastfaulttime != null">
+        LASTFAULTTIME,
+      </if>
+      <if test="stoptime != null">
+        STOPTIME,
+      </if>
+      <if test="taskstarttime != null">
+        TASKSTARTTIME,
+      </if>
+      <if test="taskreceivetime != null">
+        TASKRECEIVETIME,
+      </if>
+      <if test="arrivespottime != null">
+        ARRIVESPOTTIME,
+      </if>
+      <if test="expectfinishtime != null">
+        EXPECTFINISHTIME,
+      </if>
+      <if test="userid != null">
+        USERID,
+      </if>
+      <if test="username != null">
+        USERNAME,
+      </if>
+      <if test="recommendtime != null">
+        RECOMMENDTIME,
+      </if>
+      <if test="taskfinishtime != null">
+        TASKFINISHTIME,
+      </if>
+      <if test="finishgridconnecttime != null">
+        FINISHGRIDCONNECTTIME,
+      </if>
+      <if test="factlostpower != null">
+        FACTLOSTPOWER,
+      </if>
+      <if test="taskmadeuserid != null">
+        TASKMADEUSERID,
+      </if>
+      <if test="taskmadeusername != null">
+        TASKMADEUSERNAME,
+      </if>
+      <if test="failurecauseid != null">
+        FAILURECAUSEID,
+      </if>
+      <if test="warninglevel != null">
+        WARNINGLEVEL,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="taskcode != null">
+        #{taskcode,jdbcType=VARCHAR},
+      </if>
+      <if test="windpowerstationid != null">
+        #{windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="windturbineid != null">
+        #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="warningid != null">
+        #{warningid,jdbcType=VARCHAR},
+      </if>
+      <if test="partid != null">
+        #{partid,jdbcType=VARCHAR},
+      </if>
+      <if test="frequencycount != null">
+        #{frequencycount,jdbcType=DECIMAL},
+      </if>
+      <if test="faultcycle != null">
+        #{faultcycle,jdbcType=DECIMAL},
+      </if>
+      <if test="shutdownavgtime != null">
+        #{shutdownavgtime,jdbcType=DECIMAL},
+      </if>
+      <if test="expectlostpower != null">
+        #{expectlostpower,jdbcType=DECIMAL},
+      </if>
+      <if test="handleway != null">
+        #{handleway,jdbcType=CHAR},
+      </if>
+      <if test="tasktype != null">
+        #{tasktype,jdbcType=CHAR},
+      </if>
+      <if test="taskclass != null">
+        #{taskclass,jdbcType=CHAR},
+      </if>
+      <if test="taskstatus != null">
+        #{taskstatus,jdbcType=CHAR},
+      </if>
+      <if test="taskmadetime != null">
+        #{taskmadetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="lastfaulttime != null">
+        #{lastfaulttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="stoptime != null">
+        #{stoptime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskstarttime != null">
+        #{taskstarttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskreceivetime != null">
+        #{taskreceivetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="arrivespottime != null">
+        #{arrivespottime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="expectfinishtime != null">
+        #{expectfinishtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="userid != null">
+        #{userid,jdbcType=VARCHAR},
+      </if>
+      <if test="username != null">
+        #{username,jdbcType=VARCHAR},
+      </if>
+      <if test="recommendtime != null">
+        #{recommendtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskfinishtime != null">
+        #{taskfinishtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="finishgridconnecttime != null">
+        #{finishgridconnecttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="factlostpower != null">
+        #{factlostpower,jdbcType=DECIMAL},
+      </if>
+      <if test="taskmadeuserid != null">
+        #{taskmadeuserid,jdbcType=VARCHAR},
+      </if>
+      <if test="taskmadeusername != null">
+        #{taskmadeusername,jdbcType=VARCHAR},
+      </if>
+      <if test="failurecauseid != null">
+        #{failurecauseid,jdbcType=VARCHAR},
+      </if>
+      <if test="warninglevel != null">
+        #{warninglevel,jdbcType=CHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.P3TaskExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from P3_TASK
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update P3_TASK
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.taskcode != null">
+        TASKCODE = #{record.taskcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.windpowerstationid != null">
+        WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.windturbineid != null">
+        WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.warningid != null">
+        WARNINGID = #{record.warningid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.partid != null">
+        PARTID = #{record.partid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.frequencycount != null">
+        FREQUENCYCOUNT = #{record.frequencycount,jdbcType=DECIMAL},
+      </if>
+      <if test="record.faultcycle != null">
+        FAULTCYCLE = #{record.faultcycle,jdbcType=DECIMAL},
+      </if>
+      <if test="record.shutdownavgtime != null">
+        SHUTDOWNAVGTIME = #{record.shutdownavgtime,jdbcType=DECIMAL},
+      </if>
+      <if test="record.expectlostpower != null">
+        EXPECTLOSTPOWER = #{record.expectlostpower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.handleway != null">
+        HANDLEWAY = #{record.handleway,jdbcType=CHAR},
+      </if>
+      <if test="record.tasktype != null">
+        TASKTYPE = #{record.tasktype,jdbcType=CHAR},
+      </if>
+      <if test="record.taskclass != null">
+        TASKCLASS = #{record.taskclass,jdbcType=CHAR},
+      </if>
+      <if test="record.taskstatus != null">
+        TASKSTATUS = #{record.taskstatus,jdbcType=CHAR},
+      </if>
+      <if test="record.taskmadetime != null">
+        TASKMADETIME = #{record.taskmadetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.lastfaulttime != null">
+        LASTFAULTTIME = #{record.lastfaulttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.stoptime != null">
+        STOPTIME = #{record.stoptime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.taskstarttime != null">
+        TASKSTARTTIME = #{record.taskstarttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.taskreceivetime != null">
+        TASKRECEIVETIME = #{record.taskreceivetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.arrivespottime != null">
+        ARRIVESPOTTIME = #{record.arrivespottime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.expectfinishtime != null">
+        EXPECTFINISHTIME = #{record.expectfinishtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.userid != null">
+        USERID = #{record.userid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.username != null">
+        USERNAME = #{record.username,jdbcType=VARCHAR},
+      </if>
+      <if test="record.recommendtime != null">
+        RECOMMENDTIME = #{record.recommendtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.taskfinishtime != null">
+        TASKFINISHTIME = #{record.taskfinishtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.finishgridconnecttime != null">
+        FINISHGRIDCONNECTTIME = #{record.finishgridconnecttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.factlostpower != null">
+        FACTLOSTPOWER = #{record.factlostpower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.taskmadeuserid != null">
+        TASKMADEUSERID = #{record.taskmadeuserid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.taskmadeusername != null">
+        TASKMADEUSERNAME = #{record.taskmadeusername,jdbcType=VARCHAR},
+      </if>
+      <if test="record.failurecauseid != null">
+        FAILURECAUSEID = #{record.failurecauseid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.warninglevel != null">
+        WARNINGLEVEL = #{record.warninglevel,jdbcType=CHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update P3_TASK
+    set ID = #{record.id,jdbcType=VARCHAR},
+      TASKCODE = #{record.taskcode,jdbcType=VARCHAR},
+      WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
+      WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
+      WARNINGID = #{record.warningid,jdbcType=VARCHAR},
+      PARTID = #{record.partid,jdbcType=VARCHAR},
+      FREQUENCYCOUNT = #{record.frequencycount,jdbcType=DECIMAL},
+      FAULTCYCLE = #{record.faultcycle,jdbcType=DECIMAL},
+      SHUTDOWNAVGTIME = #{record.shutdownavgtime,jdbcType=DECIMAL},
+      EXPECTLOSTPOWER = #{record.expectlostpower,jdbcType=DECIMAL},
+      HANDLEWAY = #{record.handleway,jdbcType=CHAR},
+      TASKTYPE = #{record.tasktype,jdbcType=CHAR},
+      TASKCLASS = #{record.taskclass,jdbcType=CHAR},
+      TASKSTATUS = #{record.taskstatus,jdbcType=CHAR},
+      TASKMADETIME = #{record.taskmadetime,jdbcType=TIMESTAMP},
+      LASTFAULTTIME = #{record.lastfaulttime,jdbcType=TIMESTAMP},
+      STOPTIME = #{record.stoptime,jdbcType=TIMESTAMP},
+      TASKSTARTTIME = #{record.taskstarttime,jdbcType=TIMESTAMP},
+      TASKRECEIVETIME = #{record.taskreceivetime,jdbcType=TIMESTAMP},
+      ARRIVESPOTTIME = #{record.arrivespottime,jdbcType=TIMESTAMP},
+      EXPECTFINISHTIME = #{record.expectfinishtime,jdbcType=TIMESTAMP},
+      USERID = #{record.userid,jdbcType=VARCHAR},
+      USERNAME = #{record.username,jdbcType=VARCHAR},
+      RECOMMENDTIME = #{record.recommendtime,jdbcType=TIMESTAMP},
+      TASKFINISHTIME = #{record.taskfinishtime,jdbcType=TIMESTAMP},
+      FINISHGRIDCONNECTTIME = #{record.finishgridconnecttime,jdbcType=TIMESTAMP},
+      FACTLOSTPOWER = #{record.factlostpower,jdbcType=DECIMAL},
+      TASKMADEUSERID = #{record.taskmadeuserid,jdbcType=VARCHAR},
+      TASKMADEUSERNAME = #{record.taskmadeusername,jdbcType=VARCHAR},
+      FAILURECAUSEID = #{record.failurecauseid,jdbcType=VARCHAR},
+      WARNINGLEVEL = #{record.warninglevel,jdbcType=CHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.P3Task">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update P3_TASK
+    <set>
+      <if test="taskcode != null">
+        TASKCODE = #{taskcode,jdbcType=VARCHAR},
+      </if>
+      <if test="windpowerstationid != null">
+        WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="windturbineid != null">
+        WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="warningid != null">
+        WARNINGID = #{warningid,jdbcType=VARCHAR},
+      </if>
+      <if test="partid != null">
+        PARTID = #{partid,jdbcType=VARCHAR},
+      </if>
+      <if test="frequencycount != null">
+        FREQUENCYCOUNT = #{frequencycount,jdbcType=DECIMAL},
+      </if>
+      <if test="faultcycle != null">
+        FAULTCYCLE = #{faultcycle,jdbcType=DECIMAL},
+      </if>
+      <if test="shutdownavgtime != null">
+        SHUTDOWNAVGTIME = #{shutdownavgtime,jdbcType=DECIMAL},
+      </if>
+      <if test="expectlostpower != null">
+        EXPECTLOSTPOWER = #{expectlostpower,jdbcType=DECIMAL},
+      </if>
+      <if test="handleway != null">
+        HANDLEWAY = #{handleway,jdbcType=CHAR},
+      </if>
+      <if test="tasktype != null">
+        TASKTYPE = #{tasktype,jdbcType=CHAR},
+      </if>
+      <if test="taskclass != null">
+        TASKCLASS = #{taskclass,jdbcType=CHAR},
+      </if>
+      <if test="taskstatus != null">
+        TASKSTATUS = #{taskstatus,jdbcType=CHAR},
+      </if>
+      <if test="taskmadetime != null">
+        TASKMADETIME = #{taskmadetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="lastfaulttime != null">
+        LASTFAULTTIME = #{lastfaulttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="stoptime != null">
+        STOPTIME = #{stoptime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskstarttime != null">
+        TASKSTARTTIME = #{taskstarttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskreceivetime != null">
+        TASKRECEIVETIME = #{taskreceivetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="arrivespottime != null">
+        ARRIVESPOTTIME = #{arrivespottime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="expectfinishtime != null">
+        EXPECTFINISHTIME = #{expectfinishtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="userid != null">
+        USERID = #{userid,jdbcType=VARCHAR},
+      </if>
+      <if test="username != null">
+        USERNAME = #{username,jdbcType=VARCHAR},
+      </if>
+      <if test="recommendtime != null">
+        RECOMMENDTIME = #{recommendtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskfinishtime != null">
+        TASKFINISHTIME = #{taskfinishtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="finishgridconnecttime != null">
+        FINISHGRIDCONNECTTIME = #{finishgridconnecttime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="factlostpower != null">
+        FACTLOSTPOWER = #{factlostpower,jdbcType=DECIMAL},
+      </if>
+      <if test="taskmadeuserid != null">
+        TASKMADEUSERID = #{taskmadeuserid,jdbcType=VARCHAR},
+      </if>
+      <if test="taskmadeusername != null">
+        TASKMADEUSERNAME = #{taskmadeusername,jdbcType=VARCHAR},
+      </if>
+      <if test="failurecauseid != null">
+        FAILURECAUSEID = #{failurecauseid,jdbcType=VARCHAR},
+      </if>
+      <if test="warninglevel != null">
+        WARNINGLEVEL = #{warninglevel,jdbcType=CHAR},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.P3Task">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update P3_TASK
+    set TASKCODE = #{taskcode,jdbcType=VARCHAR},
+      WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
+      WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
+      WARNINGID = #{warningid,jdbcType=VARCHAR},
+      PARTID = #{partid,jdbcType=VARCHAR},
+      FREQUENCYCOUNT = #{frequencycount,jdbcType=DECIMAL},
+      FAULTCYCLE = #{faultcycle,jdbcType=DECIMAL},
+      SHUTDOWNAVGTIME = #{shutdownavgtime,jdbcType=DECIMAL},
+      EXPECTLOSTPOWER = #{expectlostpower,jdbcType=DECIMAL},
+      HANDLEWAY = #{handleway,jdbcType=CHAR},
+      TASKTYPE = #{tasktype,jdbcType=CHAR},
+      TASKCLASS = #{taskclass,jdbcType=CHAR},
+      TASKSTATUS = #{taskstatus,jdbcType=CHAR},
+      TASKMADETIME = #{taskmadetime,jdbcType=TIMESTAMP},
+      LASTFAULTTIME = #{lastfaulttime,jdbcType=TIMESTAMP},
+      STOPTIME = #{stoptime,jdbcType=TIMESTAMP},
+      TASKSTARTTIME = #{taskstarttime,jdbcType=TIMESTAMP},
+      TASKRECEIVETIME = #{taskreceivetime,jdbcType=TIMESTAMP},
+      ARRIVESPOTTIME = #{arrivespottime,jdbcType=TIMESTAMP},
+      EXPECTFINISHTIME = #{expectfinishtime,jdbcType=TIMESTAMP},
+      USERID = #{userid,jdbcType=VARCHAR},
+      USERNAME = #{username,jdbcType=VARCHAR},
+      RECOMMENDTIME = #{recommendtime,jdbcType=TIMESTAMP},
+      TASKFINISHTIME = #{taskfinishtime,jdbcType=TIMESTAMP},
+      FINISHGRIDCONNECTTIME = #{finishgridconnecttime,jdbcType=TIMESTAMP},
+      FACTLOSTPOWER = #{factlostpower,jdbcType=DECIMAL},
+      TASKMADEUSERID = #{taskmadeuserid,jdbcType=VARCHAR},
+      TASKMADEUSERNAME = #{taskmadeusername,jdbcType=VARCHAR},
+      FAILURECAUSEID = #{failurecauseid,jdbcType=VARCHAR},
+      WARNINGLEVEL = #{warninglevel,jdbcType=CHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

Plik diff jest za duży
+ 1645 - 0
src/main/resources/mybatis/auto/PartstatisticsmainMapper.xml


+ 335 - 0
src/main/resources/mybatis/auto/ParttemperaturesubMapper.xml

@@ -0,0 +1,335 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.ParttemperaturesubMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Parttemperaturesub">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="VARCHAR" property="id" />
+    <result column="RECODEDATE" jdbcType="TIMESTAMP" property="recodedate" />
+    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
+    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
+    <result column="WTNAME" jdbcType="VARCHAR" property="wtname" />
+    <result column="TRANGE" jdbcType="VARCHAR" property="trange" />
+    <result column="TSNUMBER" jdbcType="DECIMAL" property="tsnumber" />
+    <result column="POINTNAME" jdbcType="VARCHAR" property="pointname" />
+    <result column="PARTNAME" jdbcType="VARCHAR" property="partname" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, RECODEDATE, WPID, WTID, WTNAME, TRANGE, TSNUMBER, POINTNAME, PARTNAME
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.ParttemperaturesubExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from PARTTEMPERATURESUB
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from PARTTEMPERATURESUB
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from PARTTEMPERATURESUB
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.ParttemperaturesubExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from PARTTEMPERATURESUB
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Parttemperaturesub">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into PARTTEMPERATURESUB (ID, RECODEDATE, WPID, 
+      WTID, WTNAME, TRANGE, 
+      TSNUMBER, POINTNAME, PARTNAME
+      )
+    values (#{id,jdbcType=VARCHAR}, #{recodedate,jdbcType=TIMESTAMP}, #{wpid,jdbcType=VARCHAR}, 
+      #{wtid,jdbcType=VARCHAR}, #{wtname,jdbcType=VARCHAR}, #{trange,jdbcType=VARCHAR}, 
+      #{tsnumber,jdbcType=DECIMAL}, #{pointname,jdbcType=VARCHAR}, #{partname,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Parttemperaturesub">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into PARTTEMPERATURESUB
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="recodedate != null">
+        RECODEDATE,
+      </if>
+      <if test="wpid != null">
+        WPID,
+      </if>
+      <if test="wtid != null">
+        WTID,
+      </if>
+      <if test="wtname != null">
+        WTNAME,
+      </if>
+      <if test="trange != null">
+        TRANGE,
+      </if>
+      <if test="tsnumber != null">
+        TSNUMBER,
+      </if>
+      <if test="pointname != null">
+        POINTNAME,
+      </if>
+      <if test="partname != null">
+        PARTNAME,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="recodedate != null">
+        #{recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="wpid != null">
+        #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtname != null">
+        #{wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="trange != null">
+        #{trange,jdbcType=VARCHAR},
+      </if>
+      <if test="tsnumber != null">
+        #{tsnumber,jdbcType=DECIMAL},
+      </if>
+      <if test="pointname != null">
+        #{pointname,jdbcType=VARCHAR},
+      </if>
+      <if test="partname != null">
+        #{partname,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.ParttemperaturesubExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from PARTTEMPERATURESUB
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update PARTTEMPERATURESUB
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.recodedate != null">
+        RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.wpid != null">
+        WPID = #{record.wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtid != null">
+        WTID = #{record.wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtname != null">
+        WTNAME = #{record.wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.trange != null">
+        TRANGE = #{record.trange,jdbcType=VARCHAR},
+      </if>
+      <if test="record.tsnumber != null">
+        TSNUMBER = #{record.tsnumber,jdbcType=DECIMAL},
+      </if>
+      <if test="record.pointname != null">
+        POINTNAME = #{record.pointname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.partname != null">
+        PARTNAME = #{record.partname,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update PARTTEMPERATURESUB
+    set ID = #{record.id,jdbcType=VARCHAR},
+      RECODEDATE = #{record.recodedate,jdbcType=TIMESTAMP},
+      WPID = #{record.wpid,jdbcType=VARCHAR},
+      WTID = #{record.wtid,jdbcType=VARCHAR},
+      WTNAME = #{record.wtname,jdbcType=VARCHAR},
+      TRANGE = #{record.trange,jdbcType=VARCHAR},
+      TSNUMBER = #{record.tsnumber,jdbcType=DECIMAL},
+      POINTNAME = #{record.pointname,jdbcType=VARCHAR},
+      PARTNAME = #{record.partname,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Parttemperaturesub">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update PARTTEMPERATURESUB
+    <set>
+      <if test="recodedate != null">
+        RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="wpid != null">
+        WPID = #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        WTID = #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtname != null">
+        WTNAME = #{wtname,jdbcType=VARCHAR},
+      </if>
+      <if test="trange != null">
+        TRANGE = #{trange,jdbcType=VARCHAR},
+      </if>
+      <if test="tsnumber != null">
+        TSNUMBER = #{tsnumber,jdbcType=DECIMAL},
+      </if>
+      <if test="pointname != null">
+        POINTNAME = #{pointname,jdbcType=VARCHAR},
+      </if>
+      <if test="partname != null">
+        PARTNAME = #{partname,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Parttemperaturesub">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update PARTTEMPERATURESUB
+    set RECODEDATE = #{recodedate,jdbcType=TIMESTAMP},
+      WPID = #{wpid,jdbcType=VARCHAR},
+      WTID = #{wtid,jdbcType=VARCHAR},
+      WTNAME = #{wtname,jdbcType=VARCHAR},
+      TRANGE = #{trange,jdbcType=VARCHAR},
+      TSNUMBER = #{tsnumber,jdbcType=DECIMAL},
+      POINTNAME = #{pointname,jdbcType=VARCHAR},
+      PARTNAME = #{partname,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 256 - 0
src/main/resources/mybatis/auto/StatejudgmentrecordMapper.xml

@@ -0,0 +1,256 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.StatejudgmentrecordMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Statejudgmentrecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="DECIMAL" property="id" />
+    <result column="WPID" jdbcType="VARCHAR" property="wpid" />
+    <result column="WTID" jdbcType="VARCHAR" property="wtid" />
+    <result column="STATEJUDGMENT" jdbcType="VARCHAR" property="statejudgment" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, WPID, WTID, STATEJUDGMENT
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.StatejudgmentrecordExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from STATEJUDGMENTRECORD
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from STATEJUDGMENTRECORD
+    where ID = #{id,jdbcType=DECIMAL}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from STATEJUDGMENTRECORD
+    where ID = #{id,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.StatejudgmentrecordExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from STATEJUDGMENTRECORD
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into STATEJUDGMENTRECORD (ID, WPID, WTID, 
+      STATEJUDGMENT)
+    values (#{id,jdbcType=DECIMAL}, #{wpid,jdbcType=VARCHAR}, #{wtid,jdbcType=VARCHAR}, 
+      #{statejudgment,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into STATEJUDGMENTRECORD
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="wpid != null">
+        WPID,
+      </if>
+      <if test="wtid != null">
+        WTID,
+      </if>
+      <if test="statejudgment != null">
+        STATEJUDGMENT,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=DECIMAL},
+      </if>
+      <if test="wpid != null">
+        #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="statejudgment != null">
+        #{statejudgment,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.StatejudgmentrecordExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from STATEJUDGMENTRECORD
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STATEJUDGMENTRECORD
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=DECIMAL},
+      </if>
+      <if test="record.wpid != null">
+        WPID = #{record.wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.wtid != null">
+        WTID = #{record.wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.statejudgment != null">
+        STATEJUDGMENT = #{record.statejudgment,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STATEJUDGMENTRECORD
+    set ID = #{record.id,jdbcType=DECIMAL},
+      WPID = #{record.wpid,jdbcType=VARCHAR},
+      WTID = #{record.wtid,jdbcType=VARCHAR},
+      STATEJUDGMENT = #{record.statejudgment,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STATEJUDGMENTRECORD
+    <set>
+      <if test="wpid != null">
+        WPID = #{wpid,jdbcType=VARCHAR},
+      </if>
+      <if test="wtid != null">
+        WTID = #{wtid,jdbcType=VARCHAR},
+      </if>
+      <if test="statejudgment != null">
+        STATEJUDGMENT = #{statejudgment,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Statejudgmentrecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STATEJUDGMENTRECORD
+    set WPID = #{wpid,jdbcType=VARCHAR},
+      WTID = #{wtid,jdbcType=VARCHAR},
+      STATEJUDGMENT = #{statejudgment,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=DECIMAL}
+  </update>
+</mapper>

+ 271 - 0
src/main/resources/mybatis/auto/StoptypeMapper.xml

@@ -0,0 +1,271 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gyee.frame.mapper.auto.StoptypeMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Stoptype">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="ID" jdbcType="VARCHAR" property="id" />
+    <result column="NAME" jdbcType="VARCHAR" property="name" />
+    <result column="ISPLAN" jdbcType="DECIMAL" property="isplan" />
+    <result column="PARENTID" jdbcType="VARCHAR" property="parentid" />
+    <result column="NWYS" jdbcType="VARCHAR" property="nwys" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    ID, NAME, ISPLAN, PARENTID, NWYS
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.StoptypeExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from STOPTYPE
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from STOPTYPE
+    where ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from STOPTYPE
+    where ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.StoptypeExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from STOPTYPE
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Stoptype">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into STOPTYPE (ID, NAME, ISPLAN, 
+      PARENTID, NWYS)
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{isplan,jdbcType=DECIMAL}, 
+      #{parentid,jdbcType=VARCHAR}, #{nwys,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Stoptype">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into STOPTYPE
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        ID,
+      </if>
+      <if test="name != null">
+        NAME,
+      </if>
+      <if test="isplan != null">
+        ISPLAN,
+      </if>
+      <if test="parentid != null">
+        PARENTID,
+      </if>
+      <if test="nwys != null">
+        NWYS,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="isplan != null">
+        #{isplan,jdbcType=DECIMAL},
+      </if>
+      <if test="parentid != null">
+        #{parentid,jdbcType=VARCHAR},
+      </if>
+      <if test="nwys != null">
+        #{nwys,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.StoptypeExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from STOPTYPE
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STOPTYPE
+    <set>
+      <if test="record.id != null">
+        ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null">
+        NAME = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.isplan != null">
+        ISPLAN = #{record.isplan,jdbcType=DECIMAL},
+      </if>
+      <if test="record.parentid != null">
+        PARENTID = #{record.parentid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.nwys != null">
+        NWYS = #{record.nwys,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STOPTYPE
+    set ID = #{record.id,jdbcType=VARCHAR},
+      NAME = #{record.name,jdbcType=VARCHAR},
+      ISPLAN = #{record.isplan,jdbcType=DECIMAL},
+      PARENTID = #{record.parentid,jdbcType=VARCHAR},
+      NWYS = #{record.nwys,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Stoptype">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STOPTYPE
+    <set>
+      <if test="name != null">
+        NAME = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="isplan != null">
+        ISPLAN = #{isplan,jdbcType=DECIMAL},
+      </if>
+      <if test="parentid != null">
+        PARENTID = #{parentid,jdbcType=VARCHAR},
+      </if>
+      <if test="nwys != null">
+        NWYS = #{nwys,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Stoptype">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update STOPTYPE
+    set NAME = #{name,jdbcType=VARCHAR},
+      ISPLAN = #{isplan,jdbcType=DECIMAL},
+      PARENTID = #{parentid,jdbcType=VARCHAR},
+      NWYS = #{nwys,jdbcType=VARCHAR}
+    where ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 49 - 17
src/test/java/test/HealthTest.java

@@ -2,13 +2,12 @@ package test;
 
 import com.gyee.SpringbootStart;
 import com.gyee.frame.common.spring.SpringUtils;
-import com.gyee.frame.service.health.HealthMainService;
+import com.gyee.frame.controller.health.HealthSubController;
 import lombok.SneakyThrows;
 import org.springframework.boot.SpringApplication;
 
 import java.util.Calendar;
 import java.util.Date;
-import java.util.List;
 import java.util.Map;
 
 public class HealthTest {
@@ -33,21 +32,54 @@ public class HealthTest {
 
         String wtid="MG01_01";
 
-        HealthMainService healthMainService= SpringUtils.getBean("healthMainService");
-
-
-        Map<String, Object> map =healthMainService.findHealthMatrix();
-
-        List<String[]> list=(List<String[]>)map.get("MHS_FDC_wtIdls");
-
-
-
-
-        for(String[] wtd:list)
-        {
-            System.out.println(wtd[0]+"----------------"+wtd[1]);
-        }
-
+ //       HealthMainController healthMainController= SpringUtils.getBean("healthMainController");
+
+        HealthSubController healthSubController= SpringUtils.getBean("healthSubController");
+//        Map<String, Object> map =healthMainController.findAllChart("0","12","1");
+//
+//
+//        System.out.println(map);
+//
+//        Map<String, Object> map =healthMainController.findAllMap();
+//
+//
+//        System.out.println(map);
+//
+//
+//        Map<String, Object> map =healthMainController.findWpMap("MHS_FDC");
+//
+//
+//        System.out.println(map);
+//
+//        Map<String, Object> map =healthMainController.findHealthMatrixMap();
+//
+//
+//        System.out.println(map);
+//
+//
+//        Map<String, Object> map =healthSubController.findPartHealthInfo(wtid);
+//
+//
+//        System.out.println(map);
+
+
+
+//        Map<String, Object> map1 =healthSubController.initalGzjfx(wtid);
+//        Map<String, Object> map2 =healthSubController.initalYjfx(wtid);
+//        Map<String, Object> map3 =healthSubController.initalYxfx(wtid);
+//        Map<String, Object> map4 =healthSubController.initalXnfx(wtid);
+//        Map<String, Object> map5 =healthSubController.initalShutdown(wtid);
+//        Map<String, Object> map6 =healthSubController.findJudgmentList(wtid);
+//        Map<String, Object> map7 =healthSubController.findQxpcList(wtid);
+//        Map<String, Object> map8 =healthSubController.findWdList(wtid);
+//
+//        Map<String, Object> map1 =healthSubController.gadaytop5(wtid);
+//        Map<String, Object> map2 =healthSubController.queryStopTop10(wtid);
+//        System.out.println(map1.size());
+
+
+        Map<String, Object> map1 =healthSubController.hsFjValueIndex(wtid);
+        System.out.println(map1.size());
         System.out.println("***************************************************************************************");