Browse Source

风机绩效帮后台接口

shilin 4 years ago
parent
commit
645f49e923
22 changed files with 22453 additions and 119 deletions
  1. 103 114
      src/main/java/com/gyee/frame/common/spring/InitialRunner.java
  2. 115 0
      src/main/java/com/gyee/frame/controller/powercompare/PowerCompareController.java
  3. 96 0
      src/main/java/com/gyee/frame/mapper/auto/WindTurbineInfoDayMapper.java
  4. 97 0
      src/main/java/com/gyee/frame/mapper/auto/Windpowerinfoday3Mapper.java
  5. 96 0
      src/main/java/com/gyee/frame/mapper/auto/Windturbineinfoday3Mapper.java
  6. 2490 0
      src/main/java/com/gyee/frame/model/auto/WindTurbineInfoDay.java
  7. 4844 0
      src/main/java/com/gyee/frame/model/auto/WindTurbineInfoDayExample.java
  8. 1647 0
      src/main/java/com/gyee/frame/model/auto/Windpowerinfoday3.java
  9. 3243 0
      src/main/java/com/gyee/frame/model/auto/Windpowerinfoday3Example.java
  10. 1581 0
      src/main/java/com/gyee/frame/model/auto/Windturbineinfoday3.java
  11. 3104 0
      src/main/java/com/gyee/frame/model/auto/Windturbineinfoday3Example.java
  12. 666 0
      src/main/java/com/gyee/frame/service/Windpowerinfoday3Service.java
  13. 789 0
      src/main/java/com/gyee/frame/service/Windturbineinfoday3Service.java
  14. 155 0
      src/main/java/com/gyee/frame/service/WindturbineinfodayService.java
  15. 19 2
      src/main/java/com/gyee/frame/util/DateUtils.java
  16. 38 2
      src/main/java/com/gyee/frame/util/StringUtils.java
  17. 1 1
      src/main/resources/mybatis-generator.xml
  18. 1380 0
      src/main/resources/mybatis/auto/WindTurbineInfoDayMapper.xml
  19. 952 0
      src/main/resources/mybatis/auto/Windpowerinfoday3Mapper.xml
  20. 919 0
      src/main/resources/mybatis/auto/Windturbineinfoday3Mapper.xml
  21. 61 0
      src/test/java/test/Windpowerinfoday3Test.java
  22. 57 0
      src/test/java/test/Windturbineinfoday3Test.java

+ 103 - 114
src/main/java/com/gyee/frame/common/spring/InitialRunner.java

@@ -38,10 +38,11 @@ public class InitialRunner implements CommandLineRunner {
     public static List<Windpowerstation> wpallls = new ArrayList<Windpowerstation>(); // 风电场LIST集合
     public static List<Windpowerstation> wpls = new ArrayList<Windpowerstation>(); // 风电场LIST集合
     public static List<Project> pjls = new ArrayList<Project>(); // 项目LIST集合
+    public static List<Line> linels = new ArrayList<Line>(); // 线路LIST集合
     public static List<Windturbine> wtls = new ArrayList<Windturbine>(); // 风电机LIST集合
 
-   public static List<Line> lnls = new ArrayList<Line>(); // 线路LIST集合
     public static Map<String, Windpowerstation>  wpmap = new HashMap<String, Windpowerstation>();
+    public static Map<String, Project> pjmap = new HashMap<String, Project>(); // 项目MAP
     public static Map<String, Windturbine>  wtmap = new HashMap<String, Windturbine>();
     public static Map<String, List<Windturbine>> wp_wtmap = new HashMap<String, List<Windturbine>>();
     public static Map<String, List<Windturbine>> pj_wtmap = new HashMap<String, List<Windturbine>>();
@@ -54,58 +55,64 @@ public class InitialRunner implements CommandLineRunner {
 
     @Override
     public void run(String... args) throws Exception {
-        //System.out.println(">>>>>>>>>>>>>>>服务启动执行,换成测点关联数据 <<<<<<<<<<<<<");
+        System.out.println(">>>>>>>>>>>>>>>服务启动执行,换成测点关联数据 <<<<<<<<<<<<<");
 
-//        List<SysQuartzJob> quartzJobs=sysQuartzJobService.selectByExample(new SysQuartzJobExample());
-//
-//        if(!quartzJobs.isEmpty())
-//        {
-//            for(SysQuartzJob sysQuartzJob:quartzJobs){
-//
-//                jobsmap.put(sysQuartzJob.getId(),sysQuartzJob);
-//            }
-//
-//        }
-//
-//        WindpowerstationExample windpowerstationExample=new WindpowerstationExample();
-//        windpowerstationExample.setOrderByClause("ordernum ASC");
-////        windpowerstationExample.createCriteria().andIdNotLike("%MCH%");
-//        wpallls= windpowerstationService.selectByExample(windpowerstationExample);
-//        if(!wpallls.isEmpty())
-//        {
-//            for(Windpowerstation wp:wpallls)
-//            {
-//                wpmap.put(wp.getId(),wp);
-//            }
-//        }
-//
-//        windpowerstationExample=new WindpowerstationExample();
-//        windpowerstationExample.setOrderByClause("ordernum ASC");
-//        windpowerstationExample.createCriteria().andIdNotLike("%GDC");
-//        wpls= windpowerstationService.selectByExample(windpowerstationExample);
-//
-//        ProjectExample projectExample=new ProjectExample();
-//        projectExample.setOrderByClause("ordernum ASC");
-//        projectExample.createCriteria().andWindpowerstationidNotLike("%GDC");
-//        pjls= projectService.selectByExample(projectExample);
-//
-//        LineExample lineExample=new LineExample();
-//        lineExample.setOrderByClause("ordernum ASC");
-//        lineExample.createCriteria().getAllCriteria();
-//        lnls= lineService.selectByExample(lineExample);
-//
-//        WindturbineExample windturbineExample=new WindturbineExample();
-//        windturbineExample.setOrderByClause("id ASC");
-//        windturbineExample.createCriteria().andWindpowerstationidNotLike("%GDC");
-//        wtls= windturbineService.selectByExample(windturbineExample);
-//
-//        if(!wtls.isEmpty())
-//        {
-//            for(Windturbine wt:wtls)
-//            {
-//                wtmap.put(wt.getId(),wt);
-//            }
-//        }
+        List<SysQuartzJob> quartzJobs=sysQuartzJobService.selectByExample(new SysQuartzJobExample());
+
+        if(!quartzJobs.isEmpty())
+        {
+            for(SysQuartzJob sysQuartzJob:quartzJobs){
+
+                jobsmap.put(sysQuartzJob.getId(),sysQuartzJob);
+            }
+
+        }
+
+        WindpowerstationExample windpowerstationExample=new WindpowerstationExample();
+        windpowerstationExample.setOrderByClause("ordernum ASC");
+//        windpowerstationExample.createCriteria().andIdNotLike("%MCH%");
+        wpallls= windpowerstationService.selectByExample(windpowerstationExample);
+        if(!wpallls.isEmpty())
+        {
+            for(Windpowerstation wp:wpallls)
+            {
+                wpmap.put(wp.getId(),wp);
+            }
+        }
+
+        windpowerstationExample=new WindpowerstationExample();
+        windpowerstationExample.setOrderByClause("ordernum ASC");
+        windpowerstationExample.createCriteria().andIdNotLike("%GDC");
+        wpls= windpowerstationService.selectByExample(windpowerstationExample);
+
+        ProjectExample projectExample=new ProjectExample();
+        projectExample.setOrderByClause("ordernum ASC");
+        projectExample.createCriteria().andWindpowerstationidNotLike("%GDC");
+        pjls= projectService.selectByExample(projectExample);
+
+        if (!pjls.isEmpty()) {
+            for (Project pj : pjls) {
+                pjmap.put(pj.getId(), pj);
+            }
+        }
+
+        LineExample lineExample=new LineExample();
+        lineExample.setOrderByClause("ordernum ASC");
+        lineExample.createCriteria().getAllCriteria();
+        linels= lineService.selectByExample(lineExample);
+
+        WindturbineExample windturbineExample=new WindturbineExample();
+        windturbineExample.setOrderByClause("id ASC");
+        windturbineExample.createCriteria().andWindpowerstationidNotLike("%GDC");
+        wtls= windturbineService.selectByExample(windturbineExample);
+
+        if(!wtls.isEmpty())
+        {
+            for(Windturbine wt:wtls)
+            {
+                wtmap.put(wt.getId(),wt);
+            }
+        }
 
 //        WindturbinepowercurvefittingExample windturbinepowercurvefittingExample=new WindturbinepowercurvefittingExample();
 //        windturbinepowercurvefittingExample.setOrderByClause("WINDTURBINEID ASC,speed ASC");
@@ -125,68 +132,50 @@ public class InitialRunner implements CommandLineRunner {
 //        }
 
 
-//        if(wtls!=null && !wtls.isEmpty()){
-//
-//            for(int i=0;i<wtls.size();i++){
-//
-//                Windturbine point=wtls.get(i);
-//                if(wp_wtmap.containsKey(point.getWindpowerstationid())){
-//                    List<Windturbine> ls=wp_wtmap.get(point.getWindpowerstationid());
-//                    ls.add(point);
-//                    wp_wtmap.put(point.getWindpowerstationid(),ls);
-//                }
-//                else{
-//                    List<Windturbine> ls =new ArrayList();
-//                    ls.add(point);
-//                    wp_wtmap.put(point.getWindpowerstationid(),ls);
-//                }
-//
-//                if(pj_wtmap.containsKey(point.getProjectid())){
-//                    List<Windturbine> ls=pj_wtmap.get(point.getProjectid());
-//                    ls.add(point);
-//                    pj_wtmap.put(point.getProjectid(),ls);
-//                }
-//                else{
-//                    List<Windturbine> ls =new ArrayList();
-//                    ls.add(point);
-//                    pj_wtmap.put(point.getProjectid(),ls);
-//                }
-//
-//
-//                if(ln_wtmap.containsKey(point.getLineid())){
-//                    List<Windturbine> ls=ln_wtmap.get(point.getLineid());
-//                    ls.add(point);
-//                    ln_wtmap.put(point.getLineid(),ls);
-//                }
-//                else{
-//                    List<Windturbine> ls =new ArrayList();
-//                    ls.add(point);
-//                    ln_wtmap.put(point.getLineid(),ls);
-//                }
-//
-//            }
-//
-//
-//            List<Windturbine> ls=wp_wtmap.get("SBQ_FDC");
-//            List<Windturbine> temp1=new ArrayList<>();
-//            List<Windturbine> temp2=new ArrayList<>();
-//            for(Windturbine wt:ls)
-//            {
-//                String str=wt.getId().substring(wt.getId().length()-3,wt.getId().length());
-//                if(StringUtils.isNumeric(str))
-//                {
-//                    temp2.add(wt);
-//                }else
-//                {
-//                    temp1.add(wt);
-//                }
-//            }
-//
-//            ls.clear();
-//            ls.addAll(temp1);
-//            ls.addAll(temp2);
-//            wp_wtmap.put("SBQ_FDC",ls);
-//        }
+        if(wtls!=null && !wtls.isEmpty()){
+
+            for(int i=0;i<wtls.size();i++){
+
+                Windturbine point=wtls.get(i);
+                if(wp_wtmap.containsKey(point.getWindpowerstationid())){
+                    List<Windturbine> ls=wp_wtmap.get(point.getWindpowerstationid());
+                    ls.add(point);
+                    wp_wtmap.put(point.getWindpowerstationid(),ls);
+                }
+                else{
+                    List<Windturbine> ls =new ArrayList();
+                    ls.add(point);
+                    wp_wtmap.put(point.getWindpowerstationid(),ls);
+                }
+
+                if(pj_wtmap.containsKey(point.getProjectid())){
+                    List<Windturbine> ls=pj_wtmap.get(point.getProjectid());
+                    ls.add(point);
+                    pj_wtmap.put(point.getProjectid(),ls);
+                }
+                else{
+                    List<Windturbine> ls =new ArrayList();
+                    ls.add(point);
+                    pj_wtmap.put(point.getProjectid(),ls);
+                }
+
+
+                if(ln_wtmap.containsKey(point.getLineid())){
+                    List<Windturbine> ls=ln_wtmap.get(point.getLineid());
+                    ls.add(point);
+                    ln_wtmap.put(point.getLineid(),ls);
+                }
+                else{
+                    List<Windturbine> ls =new ArrayList();
+                    ls.add(point);
+                    ln_wtmap.put(point.getLineid(),ls);
+                }
+
+            }
+
+
+
+        }
 //
 //
 //        WindPowerStationTestingPoint2Example windPowerstationTestingPointExample=new WindPowerStationTestingPoint2Example();

+ 115 - 0
src/main/java/com/gyee/frame/controller/powercompare/PowerCompareController.java

@@ -0,0 +1,115 @@
+package com.gyee.frame.controller.powercompare;
+
+import com.gyee.frame.common.conf.AjaxStatus;
+import com.gyee.frame.common.domain.AjaxResult;
+import com.gyee.frame.model.auto.Windpowerinfoday3;
+import com.gyee.frame.model.auto.Windturbineinfoday3;
+import com.gyee.frame.service.Windpowerinfoday3Service;
+import com.gyee.frame.service.Windturbineinfoday3Service;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import javax.annotation.Resource;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Controller
+@RequestMapping("/powercompare")
+public class PowerCompareController {
+    @Resource
+    private Windpowerinfoday3Service windpowerinfoday3Service;
+    @Resource
+    private Windturbineinfoday3Service windturbineinfoday3Service;
+
+
+    /**查询风机图表数据结果**/
+    @GetMapping("/queryPower")
+    @ResponseBody
+    public AjaxResult queryPower(String wpIds, String pjIds, String lineIds, Date beginDate,
+                             Date endDate)  {
+
+        Map<String, List<String>> resultmap = new HashMap<String, List<String>>();
+        resultmap = windturbineinfoday3Service.getWindturbineinfoJson(wpIds, pjIds, lineIds, beginDate, endDate);
+        if(resultmap !=null && !resultmap.isEmpty())
+        {
+            return	AjaxResult.successData(AjaxStatus.success.code,resultmap);
+        }else
+        {
+            return	AjaxResult.successData(AjaxStatus.emptyresultset.code,resultmap);
+        }
+    }
+
+    /**查询风场、项目、线路图表数据结果**/
+    @GetMapping("/queryPowerAll")
+    @ResponseBody
+    public AjaxResult queryPowerAll(String wpIds,  Date beginDate,
+                                 Date endDate,String  queryType)  {
+
+        Map<String, List<String>> resultmap = new HashMap<String, List<String>>();
+        if (StringUtils.notEmp(queryType)) {
+            if (queryType.equals("fc")) {
+                resultmap = windpowerinfoday3Service.getWindturbineinfoAllJson(wpIds, beginDate, endDate, 0);
+            } else if (queryType.equals("pj")) {
+                resultmap = windpowerinfoday3Service.getWindturbineinfoAllJson(wpIds, beginDate, endDate, 1);
+            } else if (queryType.equals("xl")) {
+                resultmap = windpowerinfoday3Service.getWindturbineinfoAllJson(wpIds, beginDate, endDate, 2);
+            }
+        }
+        if(resultmap !=null && !resultmap.isEmpty())
+        {
+            return	AjaxResult.successData(AjaxStatus.success.code,resultmap);
+        }else
+        {
+            return	AjaxResult.successData(AjaxStatus.emptyresultset.code,resultmap);
+        }
+    }
+
+    /**查询风机列表数据结果**/
+    @GetMapping("/powerAjax")
+    @ResponseBody
+    public AjaxResult powerAjax(String wpIds, String pjIds, String lineIds, Date beginDate,
+                                Date endDate, String sortName, String sortOrder)  {
+
+        List<Windturbineinfoday3> vos = windturbineinfoday3Service.getWindturbineinfo(wpIds, pjIds, lineIds, beginDate, endDate, sortName,
+                sortOrder);
+        if(vos !=null && !vos.isEmpty())
+        {
+            return	AjaxResult.successData(AjaxStatus.success.code,vos);
+        }else
+        {
+            return	AjaxResult.successData(AjaxStatus.emptyresultset.code,vos);
+        }
+    }
+
+    /**查询风场、项目、线路列表数据结果**/
+    @GetMapping("/powerAjaxAll")
+    @ResponseBody
+    public AjaxResult powerAjaxAll(String wpIds,  Date beginDate,
+                                    Date endDate,String  queryType, String sortName, String sortOrder)  {
+
+        List<Windpowerinfoday3>  vos=null;
+
+        if (queryType.equals("fc")) {
+            vos = windpowerinfoday3Service.getWindturbineinfoAll(wpIds, beginDate, endDate, 0, sortName,
+                    sortOrder);
+        } else if (queryType.equals("pj")) {
+            vos = windpowerinfoday3Service.getWindturbineinfoAll(wpIds, beginDate, endDate, 1, sortName,
+                    sortOrder);
+        } else if (queryType.equals("xl")) {
+            vos = windpowerinfoday3Service.getWindturbineinfoAll(wpIds, beginDate, endDate, 2, sortName,
+                    sortOrder);
+        }
+        if(vos !=null && !vos.isEmpty())
+        {
+            return	AjaxResult.successData(AjaxStatus.success.code,vos);
+        }else
+        {
+            return	AjaxResult.successData(AjaxStatus.emptyresultset.code,vos);
+        }
+    }
+}

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

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

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

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

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

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

File diff suppressed because it is too large
+ 2490 - 0
src/main/java/com/gyee/frame/model/auto/WindTurbineInfoDay.java


File diff suppressed because it is too large
+ 4844 - 0
src/main/java/com/gyee/frame/model/auto/WindTurbineInfoDayExample.java


File diff suppressed because it is too large
+ 1647 - 0
src/main/java/com/gyee/frame/model/auto/Windpowerinfoday3.java


File diff suppressed because it is too large
+ 3243 - 0
src/main/java/com/gyee/frame/model/auto/Windpowerinfoday3Example.java


File diff suppressed because it is too large
+ 1581 - 0
src/main/java/com/gyee/frame/model/auto/Windturbineinfoday3.java


File diff suppressed because it is too large
+ 3104 - 0
src/main/java/com/gyee/frame/model/auto/Windturbineinfoday3Example.java


+ 666 - 0
src/main/java/com/gyee/frame/service/Windpowerinfoday3Service.java

@@ -0,0 +1,666 @@
+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.Windpowerinfoday3Mapper;
+import com.gyee.frame.model.auto.*;
+import com.gyee.frame.model.custom.Tablepar;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.*;
+
+/**
+ * 风机信息表 Windpowerinfoday3Service
+ * @Title: Windpowerinfoday3Service.java 
+ * @Package com.gyee.frame.service 
+ **/
+@Service
+public class Windpowerinfoday3Service implements BaseService<Windpowerinfoday3, Windpowerinfoday3Example> {
+	@Resource
+	private Windpowerinfoday3Mapper windpowerinfoday3Mapper;
+
+	@Resource
+	private Windturbineinfoday3Service windturbineinfoday3Service;
+	/**
+	 * 分页查询
+	 * @param tablepar
+	 * @param name
+	 * @return
+	 */
+	 public PageInfo<Windpowerinfoday3> list(Tablepar tablepar, String name){
+	        Windpowerinfoday3Example testExample=new Windpowerinfoday3Example();
+	        testExample.setOrderByClause("id ASC");
+	        if(name!=null&&!"".equals(name)){
+//	        	testExample.createCriteria().and.andCodeLike("%"+name+"%");
+	        }
+
+	        PageHelper.startPage(tablepar.getPageNum(), tablepar.getPageSize());
+	        List<Windpowerinfoday3> list= windpowerinfoday3Mapper.selectByExample(testExample);
+	        PageInfo<Windpowerinfoday3> pageInfo = new PageInfo<Windpowerinfoday3>(list);
+	        return  pageInfo;
+	 }
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+
+			List<Integer> lista=Convert.toIntArrayList(ids);
+			Windpowerinfoday3Example example=new Windpowerinfoday3Example();
+			example.createCriteria().andIdIn(lista);
+			return windpowerinfoday3Mapper.deleteByExample(example);
+
+
+	}
+
+
+	@Override
+	public Windpowerinfoday3 selectByPrimaryKey(String id) {
+
+	 	if(StringUtils.isNotEmpty(id))
+		{
+			return windpowerinfoday3Mapper.selectByPrimaryKey(Integer.valueOf(id));
+
+		}
+	 	return new Windpowerinfoday3();
+
+	}
+
+
+	@Override
+	public int updateByPrimaryKeySelective(Windpowerinfoday3 record) {
+		return windpowerinfoday3Mapper.updateByPrimaryKeySelective(record);
+	}
+
+
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(Windpowerinfoday3 record) {
+
+//		//添加雪花主键id
+//		record.setId(SnowflakeIdWorker.getUUID());
+
+
+		return windpowerinfoday3Mapper.insertSelective(record);
+	}
+
+
+	@Override
+	public int updateByExampleSelective(Windpowerinfoday3 record, Windpowerinfoday3Example example) {
+
+		return windpowerinfoday3Mapper.updateByExampleSelective(record, example);
+	}
+
+
+	@Override
+	public int updateByExample(Windpowerinfoday3 record, Windpowerinfoday3Example example) {
+
+		return windpowerinfoday3Mapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<Windpowerinfoday3> selectByExample(Windpowerinfoday3Example example) {
+
+		return windpowerinfoday3Mapper.selectByExample(example);
+	}
+
+
+	@Override
+	public long countByExample(Windpowerinfoday3Example example) {
+
+		return windpowerinfoday3Mapper.countByExample(example);
+	}
+
+
+	@Override
+	public int deleteByExample(Windpowerinfoday3Example example) {
+
+		return windpowerinfoday3Mapper.deleteByExample(example);
+	}
+
+	public Map<String, List<String>> getWindturbineinfoAllJson(String id, Date beginDate, Date endDate, int type) {
+		List<Windpowerinfoday3> ls = this.getWindturbineinfoAll(id, beginDate, endDate, type, "", "");
+
+		Map<String, List<String>> resultmap = new HashMap<String, List<String>>();
+		List<String> names = new ArrayList<String>();
+		List<String> names2 = new ArrayList<String>();
+		List<String> yfdl = new ArrayList<String>();
+		List<String> sfdl = new ArrayList<String>();
+		List<String> gzdl = new ArrayList<String>();
+		List<String> whdl = new ArrayList<String>();
+		List<String> xddl = new ArrayList<String>();
+		List<String> qfdl = new ArrayList<String>();
+		List<String> sldl = new ArrayList<String>();
+		List<String> lyl = new ArrayList<String>();
+		List<String> speedl = new ArrayList<String>();
+		for (int i = 0; i < ls.size() - 1; i++) {
+			names.add(ls.get(i).getWtName());
+			names2.add("");
+			yfdl.add(((Double) StringUtils.round(ls.get(i).getTotal(), 2)).toString());
+			sfdl.add(((Double) StringUtils.round(ls.get(i).getDaydl2(), 2)).toString());
+			gzdl.add(((Double) StringUtils.round(ls.get(i).getDaynhgzssdl(), 2)).toString());
+			whdl.add(((Double) StringUtils.round(ls.get(i).getDaynhwhssdl(), 2)).toString());
+			xddl.add(((Double) StringUtils.round(ls.get(i).getDaynhxdssdl(), 2)).toString());
+			qfdl.add(((Double) StringUtils.round(ls.get(i).getDaynhqfdl(), 2)).toString());
+			sldl.add(((Double) StringUtils.round(ls.get(i).getDaynhcfdl(), 2)).toString());
+			lyl.add(((Double) StringUtils.round(ls.get(i).getLyl(), 2)).toString());
+			speedl.add(((Double) StringUtils.round(ls.get(i).getDayspeed(), 2)).toString());
+
+		}
+		resultmap.put("names", names);
+		resultmap.put("names2", names2);
+		resultmap.put("yfdl", yfdl);
+		resultmap.put("sfdl", sfdl);
+		resultmap.put("gzdl", gzdl);
+		resultmap.put("whdl", whdl);
+		resultmap.put("xddl", xddl);
+		resultmap.put("qfdl", qfdl);
+		resultmap.put("sldl", sldl);
+		resultmap.put("lyl", lyl);
+		resultmap.put("speedl", speedl);
+
+		return resultmap;
+
+	}
+
+
+	public List<Windpowerinfoday3> getWindturbineinfoAll(String id, Date beginDate, Date endDate, int type,
+														 String sortName, String sortOrder) {
+		List<Windpowerinfoday3> vos = new ArrayList<Windpowerinfoday3>();
+
+		if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+			Map<String, Object> params = new HashMap<String, Object>();
+
+			Map map = new HashMap();
+			List<Windturbineinfoday3> list = windturbineinfoday3Service.getWindturbineinfo(null, null, null, beginDate,
+					endDate, sortName, sortOrder);
+			for (int i = 0; i < list.size() - 1; i++) {
+				switch (type) {
+					case 0:
+						if (map.containsKey(list.get(i).getWindpowerstationid())) {
+
+							Windpowerinfoday3 wdp3 = (Windpowerinfoday3) map.get(list.get(i).getWindpowerstationid());
+							wdp3.setDaydl2(
+									wdp3.getDaydl2() + (list.get(i).getDaydl2() == null ? 0.0 : list.get(i).getDaydl2()));
+							wdp3.setDaynhdl(wdp3.getDaynhdl()
+									+ (list.get(i).getDaynhdl() == null ? 0.0 : list.get(i).getDaynhdl()));
+							wdp3.setDaynhgzssdl(wdp3.getDaynhgzssdl()
+									+ (list.get(i).getDaynhgzssdl() == null ? 0.0 : list.get(i).getDaynhgzssdl()));
+							wdp3.setDaynhwhssdl(wdp3.getDaynhwhssdl()
+									+ (list.get(i).getDaynhwhssdl() == null ? 0.0 : list.get(i).getDaynhwhssdl()));
+							wdp3.setDaynhxdssdl(wdp3.getDaynhxdssdl()
+									+ (list.get(i).getDaynhxdssdl() == null ? 0.0 : list.get(i).getDaynhxdssdl()));
+							wdp3.setDaynhqfdl(wdp3.getDaynhqfdl()
+									+ (list.get(i).getDaynhqfdl() == null ? 0.0 : list.get(i).getDaynhqfdl()));
+							int count = (Integer) map.get(list.get(i).getWindpowerstationid() + "count");
+							wdp3.setDayspeed((wdp3.getDayspeed()
+									+ (list.get(i).getDayspeed() == null ? 0.0 : list.get(i).getDayspeed())));
+
+							wdp3.setDaynhcfdl(wdp3.getDaynhcfdl()
+									+ (list.get(i).getDaynhcfdl() == null ? 0.0 : list.get(i).getDaynhcfdl()));
+							wdp3.setTotal(
+									wdp3.getTotal() + (list.get(i).getTotal() == null ? 0.0 : list.get(i).getTotal()));
+
+							map.put(list.get(i).getWindpowerstationid(), wdp3);
+							map.put(list.get(i).getWindpowerstationid() + "count", count + 1);
+						} else {
+							Windpowerinfoday3 wdp3 = new Windpowerinfoday3();
+							wdp3.setDaydl2(list.get(i).getDaydl2() == null ? 0.0 : list.get(i).getDaydl2());
+							wdp3.setDaynhdl(list.get(i).getDaynhdl() == null ? 0.0 : list.get(i).getDaynhdl());
+							wdp3.setDaynhgzssdl(list.get(i).getDaynhgzssdl() == null ? 0.0 : list.get(i).getDaynhgzssdl());
+							wdp3.setDaynhwhssdl(list.get(i).getDaynhwhssdl() == null ? 0.0 : list.get(i).getDaynhwhssdl());
+							wdp3.setDaynhxdssdl(list.get(i).getDaynhxdssdl() == null ? 0.0 : list.get(i).getDaynhxdssdl());
+							wdp3.setDaynhqfdl(list.get(i).getDaynhqfdl() == null ? 0.0 : list.get(i).getDaynhqfdl());
+							wdp3.setDayspeed(list.get(i).getDayspeed() == null ? 0.0 : list.get(i).getDayspeed());
+							wdp3.setDaynhcfdl(list.get(i).getDaynhcfdl() == null ? 0.0 : list.get(i).getDaynhcfdl());
+							wdp3.setTotal(list.get(i).getTotal() == null ? 0.0 : list.get(i).getTotal());
+							map.put(list.get(i).getWindpowerstationid(), wdp3);
+							map.put(list.get(i).getWindpowerstationid() + "count", 1);
+						}
+						break;
+					case 1:
+
+						if (map.containsKey(list.get(i).getProjectid())) {
+							Windpowerinfoday3 wdp3 = (Windpowerinfoday3) map.get(list.get(i).getProjectid());
+							wdp3.setDaydl2(
+									wdp3.getDaydl2() + (list.get(i).getDaydl2() == null ? 0.0 : list.get(i).getDaydl2()));
+							wdp3.setDaynhdl(wdp3.getDaynhdl()
+									+ (list.get(i).getDaynhdl() == null ? 0.0 : list.get(i).getDaynhdl()));
+							wdp3.setDaynhgzssdl(wdp3.getDaynhgzssdl()
+									+ (list.get(i).getDaynhgzssdl() == null ? 0.0 : list.get(i).getDaynhgzssdl()));
+							wdp3.setDaynhwhssdl(wdp3.getDaynhwhssdl()
+									+ (list.get(i).getDaynhwhssdl() == null ? 0.0 : list.get(i).getDaynhwhssdl()));
+							wdp3.setDaynhxdssdl(wdp3.getDaynhxdssdl()
+									+ (list.get(i).getDaynhxdssdl() == null ? 0.0 : list.get(i).getDaynhxdssdl()));
+							wdp3.setDaynhqfdl(wdp3.getDaynhqfdl()
+									+ (list.get(i).getDaynhqfdl() == null ? 0.0 : list.get(i).getDaynhqfdl()));
+							int count = (Integer) map.get(list.get(i).getProjectid() + "count");
+							wdp3.setDayspeed((wdp3.getDayspeed()
+									+ (list.get(i).getDayspeed() == null ? 0.0 : list.get(i).getDayspeed())));
+
+							wdp3.setDaynhcfdl(wdp3.getDaynhcfdl()
+									+ (list.get(i).getDaynhcfdl() == null ? 0.0 : list.get(i).getDaynhcfdl()));
+							wdp3.setTotal(
+									wdp3.getTotal() + (list.get(i).getTotal() == null ? 0.0 : list.get(i).getTotal()));
+
+							map.put(list.get(i).getProjectid(), wdp3);
+							map.put(list.get(i).getProjectid() + "count", count + 1);
+						} else {
+							Windpowerinfoday3 wdp3 = new Windpowerinfoday3();
+							wdp3.setDaydl2(list.get(i).getDaydl2() == null ? 0.0 : list.get(i).getDaydl2());
+							wdp3.setDaynhdl(list.get(i).getDaynhdl() == null ? 0.0 : list.get(i).getDaynhdl());
+							wdp3.setDaynhgzssdl(list.get(i).getDaynhgzssdl() == null ? 0.0 : list.get(i).getDaynhgzssdl());
+							wdp3.setDaynhwhssdl(list.get(i).getDaynhwhssdl() == null ? 0.0 : list.get(i).getDaynhwhssdl());
+							wdp3.setDaynhxdssdl(list.get(i).getDaynhxdssdl() == null ? 0.0 : list.get(i).getDaynhxdssdl());
+							wdp3.setDaynhqfdl(list.get(i).getDaynhqfdl() == null ? 0.0 : list.get(i).getDaynhqfdl());
+							wdp3.setDayspeed(list.get(i).getDayspeed() == null ? 0.0 : list.get(i).getDayspeed());
+							wdp3.setDaynhcfdl(list.get(i).getDaynhcfdl() == null ? 0.0 : list.get(i).getDaynhcfdl());
+							wdp3.setTotal(list.get(i).getTotal() == null ? 0.0 : list.get(i).getTotal());
+							map.put(list.get(i).getProjectid(), wdp3);
+							map.put(list.get(i).getProjectid() + "count", 1);
+						}
+
+						break;
+
+					case 2:
+						if (map.containsKey(list.get(i).getLineid())) {
+
+							Windpowerinfoday3 wdp3 = (Windpowerinfoday3) map.get(list.get(i).getLineid());
+							wdp3.setDaydl2(
+									wdp3.getDaydl2() + (list.get(i).getDaydl2() == null ? 0.0 : list.get(i).getDaydl2()));
+							wdp3.setDaynhdl(wdp3.getDaynhdl()
+									+ (list.get(i).getDaynhdl() == null ? 0.0 : list.get(i).getDaynhdl()));
+							wdp3.setDaynhgzssdl(wdp3.getDaynhgzssdl()
+									+ (list.get(i).getDaynhgzssdl() == null ? 0.0 : list.get(i).getDaynhgzssdl()));
+							wdp3.setDaynhwhssdl(wdp3.getDaynhwhssdl()
+									+ (list.get(i).getDaynhwhssdl() == null ? 0.0 : list.get(i).getDaynhwhssdl()));
+							wdp3.setDaynhxdssdl(wdp3.getDaynhxdssdl()
+									+ (list.get(i).getDaynhxdssdl() == null ? 0.0 : list.get(i).getDaynhxdssdl()));
+							wdp3.setDaynhqfdl(wdp3.getDaynhqfdl()
+									+ (list.get(i).getDaynhqfdl() == null ? 0.0 : list.get(i).getDaynhqfdl()));
+							int count = (Integer) map.get(list.get(i).getLineid() + "count");
+							// wdp3.setDayspeed(((wdp3.getDayspeed()*(count-1)+(list.get(i).getDayspeed()==null?0.0:list.get(i).getDayspeed())))/count);
+
+							wdp3.setDayspeed((wdp3.getDayspeed()
+									+ (list.get(i).getDayspeed() == null ? 0.0 : list.get(i).getDayspeed())));
+							wdp3.setDaynhcfdl(wdp3.getDaynhcfdl()
+									+ (list.get(i).getDaynhcfdl() == null ? 0.0 : list.get(i).getDaynhcfdl()));
+							wdp3.setTotal(
+									wdp3.getTotal() + (list.get(i).getTotal() == null ? 0.0 : list.get(i).getTotal()));
+
+							map.put(list.get(i).getLineid(), wdp3);
+							map.put(list.get(i).getLineid() + "count", count + 1);
+						} else {
+							Windpowerinfoday3 wdp3 = new Windpowerinfoday3();
+							wdp3.setDaydl2(list.get(i).getDaydl2() == null ? 0.0 : list.get(i).getDaydl2());
+							wdp3.setDaynhdl(list.get(i).getDaynhdl() == null ? 0.0 : list.get(i).getDaynhdl());
+							wdp3.setDaynhgzssdl(list.get(i).getDaynhgzssdl() == null ? 0.0 : list.get(i).getDaynhgzssdl());
+							wdp3.setDaynhwhssdl(list.get(i).getDaynhwhssdl() == null ? 0.0 : list.get(i).getDaynhwhssdl());
+							wdp3.setDaynhxdssdl(list.get(i).getDaynhxdssdl() == null ? 0.0 : list.get(i).getDaynhxdssdl());
+							wdp3.setDaynhqfdl(list.get(i).getDaynhqfdl() == null ? 0.0 : list.get(i).getDaynhqfdl());
+							wdp3.setDayspeed(list.get(i).getDayspeed() == null ? 0.0 : list.get(i).getDayspeed());
+							wdp3.setDaynhcfdl(list.get(i).getDaynhcfdl() == null ? 0.0 : list.get(i).getDaynhcfdl());
+							wdp3.setTotal(list.get(i).getTotal() == null ? 0.0 : list.get(i).getTotal());
+							map.put(list.get(i).getLineid(), wdp3);
+							map.put(list.get(i).getLineid() + "count", 1);
+						}
+						break;
+
+					default:
+						break;
+				}
+
+			}
+			double fdl = 0.0;
+			double gzss = 0.0;
+			double whss = 0.0;
+			double xnss = 0.0;
+			double xdss = 0.0;
+			double slss = 0.0;
+			double llfdl = 0.0;
+			double lylT = 0.0;
+			double dayspeed = 0.0;
+			double count = 0;
+			if (0 == type) {
+				List<Windpowerstation> pwls = InitialRunner.wpls;
+				for (int i = 0; i < pwls.size(); i++) {
+					if (pwls.get(i).getId().endsWith("FDC")) {
+						Windpowerinfoday3 wpd = (Windpowerinfoday3) map.get(pwls.get(i).getCode());
+						double lyl = 0.0;
+						if (wpd.getTotal() != 0) {
+							lyl = StringUtils.round(wpd.getDaydl2() / wpd.getTotal() * 100, 2);
+						}
+						wpd.setWtId(pwls.get(i).getCode());
+						wpd.setLyl(lyl);
+						wpd.setWtName(pwls.get(i).getName());
+						int countSpeed = (Integer) map.get(pwls.get(i).getCode() + "count");
+						wpd.setDayspeed(StringUtils.round(wpd.getDayspeed() / countSpeed, 2));
+						vos.add(wpd);
+						fdl += wpd.getDaydl2();
+						gzss += wpd.getDaynhgzssdl();
+						whss += wpd.getDaynhwhssdl();
+						xnss += wpd.getDaynhqfdl();
+						xdss += wpd.getDaynhxdssdl();
+						slss += wpd.getDaynhcfdl();
+						dayspeed += wpd.getDayspeed();
+						count++;
+					}
+
+				}
+			} else if (1 == type) {
+				List<Project> pwls = InitialRunner.pjls;
+				for (int i = 0; i < pwls.size(); i++) {
+					if (pwls.get(i).getWindpowerstationid().endsWith("FDC")) {
+						Windpowerinfoday3 wpd = (Windpowerinfoday3) map.get(pwls.get(i).getCode());
+						double lyl = 0.0;
+						if (wpd.getTotal() != 0) {
+							lyl = StringUtils.round(wpd.getDaydl2() / wpd.getTotal() * 100, 2);
+						}
+						wpd.setWtId(pwls.get(i).getCode());
+						wpd.setLyl(lyl);
+						wpd.setWtName(pwls.get(i).getName());
+						int countSpeed = (Integer) map.get(pwls.get(i).getCode() + "count");
+						wpd.setDayspeed(StringUtils.round(wpd.getDayspeed() / countSpeed, 2));
+						vos.add(wpd);
+
+						fdl += wpd.getDaydl2();
+						gzss += wpd.getDaynhgzssdl();
+						whss += wpd.getDaynhwhssdl();
+						xnss += wpd.getDaynhqfdl();
+						xdss += wpd.getDaynhxdssdl();
+						slss += wpd.getDaynhcfdl();
+						dayspeed += wpd.getDayspeed();
+						count++;
+					}
+
+				}
+			} else if (2 == type) {
+				List<Line> pwls = InitialRunner.linels;
+				Map<String, Project> pjmap = InitialRunner.pjmap;
+				for (int i = 0; i < pwls.size(); i++) {
+					if (pjmap.get(pwls.get(i).getProjectid()).getWindpowerstationid().endsWith("FDC")) {
+						Windpowerinfoday3 wpd = (Windpowerinfoday3) map.get(pwls.get(i).getCode());
+						double lyl = 0.0;
+						if (wpd.getTotal() != 0) {
+							lyl = StringUtils.round(wpd.getDaydl2() / wpd.getTotal() * 100, 2);
+						}
+						wpd.setWtId(pwls.get(i).getCode());
+						wpd.setLyl(lyl);
+						wpd.setWtName(pwls.get(i).getName());
+						int countSpeed = (Integer) map.get(pwls.get(i).getCode() + "count");
+						wpd.setDayspeed(StringUtils.round(wpd.getDayspeed() / countSpeed, 2));
+						vos.add(wpd);
+
+						fdl += wpd.getDaydl2();
+						gzss += wpd.getDaynhgzssdl();
+						whss += wpd.getDaynhwhssdl();
+						xnss += wpd.getDaynhqfdl();
+						xdss += wpd.getDaynhxdssdl();
+						slss += wpd.getDaynhcfdl();
+						dayspeed += wpd.getDayspeed();
+						count++;
+					}
+
+				}
+			}
+			if (StringUtils.notEmp(sortName)) {
+				getSortData(sortName, sortOrder, vos);
+			}
+
+			llfdl = fdl + whss + gzss + xnss + xdss + slss;
+			if (llfdl != 0) {
+				lylT = StringUtils.round(fdl / llfdl * 100, 2);
+			}
+
+			Windpowerinfoday3 wpd = new Windpowerinfoday3();
+			wpd.setWtName("合计");
+			wpd.setDaydl2(StringUtils.round(fdl, 4));
+			wpd.setDaynhgzssdl(StringUtils.round(gzss, 4));
+			wpd.setDaynhwhssdl(StringUtils.round(whss, 4));
+			wpd.setDaynhcfdl(StringUtils.round(slss, 4));
+			wpd.setDaynhxdssdl(StringUtils.round(xdss, 4));
+			wpd.setDaynhqfdl(StringUtils.round(xnss, 4));
+			wpd.setTotal(StringUtils.round(llfdl, 4));
+			wpd.setLyl(lylT > 100 ? 100.00 : lylT);
+			wpd.setDayspeed(StringUtils.round(dayspeed / count, 2));
+			vos.add(wpd);
+		}
+		return vos;
+
+	}
+
+
+	private void getSortData(String sortName, String sortOrder, List<Windpowerinfoday3> vos) {
+		if (StringUtils.notEmp(sortName) && sortName.equals("daydl2")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDaydl2().compareTo(o2.getDaydl2());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDaydl2().compareTo(o1.getDaydl2());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("daynhgzssdl")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDaynhgzssdl().compareTo(o2.getDaynhgzssdl());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDaynhgzssdl().compareTo(o1.getDaynhgzssdl());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("daynhwhssdl")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDaynhwhssdl().compareTo(o2.getDaynhwhssdl());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDaynhwhssdl().compareTo(o1.getDaynhwhssdl());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("dayspeed")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDayspeed().compareTo(o2.getDayspeed());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDayspeed().compareTo(o1.getDayspeed());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("daynhxdssdl")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDaynhxdssdl().compareTo(o2.getDaynhxdssdl());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDaynhxdssdl().compareTo(o1.getDaynhxdssdl());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("daynhqfdl")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDaynhqfdl().compareTo(o2.getDaynhqfdl());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDaynhqfdl().compareTo(o1.getDaynhqfdl());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("total")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getTotal().compareTo(o2.getTotal());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+//				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+//					public int compare(Windpowerinfoday3 arg0, Windpowerinfoday3 arg1) {
+//						int result = 0;
+//						if (arg0.getTotal() < arg1.getTotal())
+//							result = 1;
+//						else
+//							result = 0;
+//						return result;
+//					}
+//				});
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getTotal().compareTo(o1.getTotal());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("lyl")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getLyl().compareTo(o2.getLyl());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getLyl().compareTo(o1.getLyl());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("wtName")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getWtName().compareTo(o2.getWtName());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getWtName().compareTo(o1.getWtName());
+					}
+
+				});
+			}
+
+		} else if (StringUtils.notEmp(sortName) && sortName.equals("dayspeed")) {
+
+			if (sortOrder.equals("asc")) {
+
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o1.getDayspeed().compareTo(o2.getDayspeed());
+					}
+
+				});
+			} else if (sortOrder.equals("desc")) {
+				Collections.sort(vos, new Comparator<Windpowerinfoday3>() {
+					// 升序排序
+					public int compare(Windpowerinfoday3 o1, Windpowerinfoday3 o2) {
+						return o2.getDayspeed().compareTo(o1.getDayspeed());
+					}
+
+				});
+
+
+			}
+
+		}
+	}
+
+}

+ 789 - 0
src/main/java/com/gyee/frame/service/Windturbineinfoday3Service.java

@@ -0,0 +1,789 @@
+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.Windturbineinfoday3Mapper;
+import com.gyee.frame.model.auto.Windturbine;
+import com.gyee.frame.model.auto.Windturbineinfoday3;
+import com.gyee.frame.model.auto.Windturbineinfoday3Example;
+import com.gyee.frame.model.custom.Tablepar;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+import java.util.*;
+
+/**
+ * 风机信息表 Windturbineinfoday3Service
+ *
+ * @Title: Windturbineinfoday3Service.java 
+ * @Package com.gyee.frame.service 
+ **/
+@Service
+public class Windturbineinfoday3Service implements BaseService<Windturbineinfoday3, Windturbineinfoday3Example> {
+    @Resource
+    private Windturbineinfoday3Mapper windturbineinfoday3Mapper;
+
+
+    /**
+     * 分页查询
+     *
+     * @param tablepar
+     * @param name
+     * @return
+     */
+    public PageInfo<Windturbineinfoday3> list(Tablepar tablepar, String name) {
+        Windturbineinfoday3Example testExample = new Windturbineinfoday3Example();
+        testExample.setOrderByClause("id ASC");
+        if (name != null && !"".equals(name)) {
+//	        	testExample.createCriteria().and.andCodeLike("%"+name+"%");
+        }
+
+        PageHelper.startPage(tablepar.getPageNum(), tablepar.getPageSize());
+        List<Windturbineinfoday3> list = windturbineinfoday3Mapper.selectByExample(testExample);
+        PageInfo<Windturbineinfoday3> pageInfo = new PageInfo<Windturbineinfoday3>(list);
+        return pageInfo;
+    }
+
+    @Override
+    public int deleteByPrimaryKey(String ids) {
+
+        List<Integer> lista = Convert.toIntArrayList(ids);
+        Windturbineinfoday3Example example = new Windturbineinfoday3Example();
+        example.createCriteria().andIdIn(lista);
+        return windturbineinfoday3Mapper.deleteByExample(example);
+
+
+    }
+
+
+    @Override
+    public Windturbineinfoday3 selectByPrimaryKey(String id) {
+
+        if (StringUtils.isNotEmpty(id)) {
+            return windturbineinfoday3Mapper.selectByPrimaryKey(Integer.valueOf(id));
+
+        }
+        return new Windturbineinfoday3();
+
+    }
+
+
+    @Override
+    public int updateByPrimaryKeySelective(Windturbineinfoday3 record) {
+        return windturbineinfoday3Mapper.updateByPrimaryKeySelective(record);
+    }
+
+
+    /**
+     * 添加
+     */
+    @Override
+    public int insertSelective(Windturbineinfoday3 record) {
+
+//		//添加雪花主键id
+//		record.setId(SnowflakeIdWorker.getUUID());
+
+
+        return windturbineinfoday3Mapper.insertSelective(record);
+    }
+
+
+    @Override
+    public int updateByExampleSelective(Windturbineinfoday3 record, Windturbineinfoday3Example example) {
+
+        return windturbineinfoday3Mapper.updateByExampleSelective(record, example);
+    }
+
+
+    @Override
+    public int updateByExample(Windturbineinfoday3 record, Windturbineinfoday3Example example) {
+
+        return windturbineinfoday3Mapper.updateByExample(record, example);
+    }
+
+    @Override
+    public List<Windturbineinfoday3> selectByExample(Windturbineinfoday3Example example) {
+
+        return windturbineinfoday3Mapper.selectByExample(example);
+    }
+
+
+    @Override
+    public long countByExample(Windturbineinfoday3Example example) {
+
+        return windturbineinfoday3Mapper.countByExample(example);
+    }
+
+
+    @Override
+    public int deleteByExample(Windturbineinfoday3Example example) {
+
+        return windturbineinfoday3Mapper.deleteByExample(example);
+    }
+
+    public List<Windturbineinfoday3> getWindturbineinfo(Date beginDate, Date endDate, String wtId) {
+
+
+        List<Windturbineinfoday3> list = null;
+
+        if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+
+            Windturbineinfoday3Example example = new Windturbineinfoday3Example();
+            example.setOrderByClause("recorddate DESC");
+
+            if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+
+
+                example.createCriteria().andWindpowerstationidLike("FDC").andWindturbineidEqualTo(wtId).andRecorddateGreaterThanOrEqualTo(beginDate).andRecorddateLessThanOrEqualTo(endDate);
+                list = windturbineinfoday3Mapper.selectByExample(example);
+            } else {
+                list = new ArrayList<>();
+            }
+
+        }
+        return list;
+
+    }
+
+
+    public List<Windturbineinfoday3> getWindturbineinfo(String wpIds, String pjIds, String lineIds, Date beginDate,
+                                                        Date endDate, String sortName, String sortOrder) {
+        List<Windturbineinfoday3> ls = null;
+		List<Windturbineinfoday3> vos = new ArrayList<Windturbineinfoday3>();
+		List<Windturbineinfoday3> vosapp = new ArrayList<Windturbineinfoday3>();
+        if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+
+            Windturbineinfoday3Example example = new Windturbineinfoday3Example();
+            example.setOrderByClause("recorddate DESC");
+
+            Windturbineinfoday3Example.Criteria criteia = example.createCriteria();
+            if (StringUtils.isNotEmpty(wpIds)) {
+
+                criteia.andWindpowerstationidEqualTo(wpIds).andRecorddateGreaterThanOrEqualTo(beginDate).andRecorddateLessThanOrEqualTo(endDate);
+                if (StringUtils.isNotEmpty(pjIds)) {
+                    String[] projectarr = pjIds.split(",");
+                    List<String> projectls = Arrays.asList(projectarr);
+                    criteia.andProjectidIn(projectls);
+                }
+
+                if (StringUtils.isNotEmpty(lineIds)) {
+                    String[] linearr = lineIds.split(",");
+                    List<String> linels = Arrays.asList(linearr);
+                    criteia.andLineidIn(linels);
+                }
+
+            } else {
+                criteia.andWindpowerstationidLike("%FDC%").andRecorddateGreaterThanOrEqualTo(beginDate).andRecorddateLessThanOrEqualTo(endDate);
+
+            }
+
+            ls = windturbineinfoday3Mapper.selectByExample(example);
+
+
+            long num = 0;
+            if (!ls.isEmpty()) {
+                Map<String, Windturbineinfoday3> map = new TreeMap<String, Windturbineinfoday3>();
+
+                for (int i = 0; i < ls.size(); i++) {
+
+                    if (map.containsKey(ls.get(i).getWindturbineid())) {
+                        Windturbineinfoday3 oldwd = map.get(ls.get(i).getWindturbineid());
+                        num++;
+                        double sfdl = null != ls.get(i).getDaydl2() ? StringUtils.round(ls.get(i).getDaydl2(), 2) : 0.0;
+                        double yfdl = null != ls.get(i).getDaynhdl() ? ls.get(i).getDaynhdl() : 0.0;
+                        double gzzdl = null != ls.get(i).getDaynhgzssdl() ? ls.get(i).getDaynhgzssdl() : 0.0;
+                        double whdl = null != ls.get(i).getDaynhwhssdl() ? ls.get(i).getDaynhwhssdl() : 0.0;
+                        double xddl = null != ls.get(i).getDaynhxdssdl() ? ls.get(i).getDaynhxdssdl() : 0.0;
+                        double qfdl = null != ls.get(i).getDaynhqfdl() ? ls.get(i).getDaynhqfdl() : 0.0;
+                        double dayspeed = null != ls.get(i).getDayspeed() ? ls.get(i).getDayspeed() : 0.0;
+                        double cfdl = null != ls.get(i).getDaynhcfdl() ? ls.get(i).getDaynhcfdl() : 0.0;
+
+                        oldwd.setDaydl2(oldwd.getDaydl2() + StringUtils.round(sfdl, 4));
+                        oldwd.setDaynhdl(oldwd.getDaynhdl() + StringUtils.round(yfdl, 4));
+                        oldwd.setDaynhgzssdl(oldwd.getDaynhgzssdl() + StringUtils.round(gzzdl, 4));
+                        oldwd.setDaynhwhssdl(oldwd.getDaynhwhssdl() + StringUtils.round(whdl, 4));
+                        oldwd.setDaynhxdssdl(oldwd.getDaynhxdssdl() + StringUtils.round(xddl, 4));
+                        oldwd.setDaynhqfdl(oldwd.getDaynhqfdl() + StringUtils.round(qfdl, 4));
+                        oldwd.setDaynhcfdl(oldwd.getDaynhcfdl() + StringUtils.round(cfdl, 4));
+                        oldwd.setDayspeed((oldwd.getDayspeed() * (num - 1) + dayspeed) / num);
+                        oldwd.setWindpowerstationid(ls.get(i).getWindpowerstationid());
+                        oldwd.setProjectid(ls.get(i).getProjectid());
+                        oldwd.setLineid(ls.get(i).getLineid());
+                        map.put(ls.get(i).getWindturbineid(), oldwd);
+                    } else {
+                        num = 1;
+                        Windturbineinfoday3 oldwd = new Windturbineinfoday3();
+                        oldwd.setWtName(ls.get(i).getWindturbineid());
+                        oldwd.setWtId(ls.get(i).getWindturbineid());
+                        oldwd.setDaydl2(null != ls.get(i).getDaydl2() ? StringUtils.round(ls.get(i).getDaydl2(), 2) : 0.0);
+                        oldwd.setDaynhdl(
+                                null != ls.get(i).getDaynhdl2() ? StringUtils.round(ls.get(i).getDaynhdl(), 4) : 0.0);
+                        oldwd.setDaynhgzssdl(null != ls.get(i).getDaynhgzssdl()
+                                ? StringUtils.round(ls.get(i).getDaynhgzssdl(), 4) : 0.0);
+                        oldwd.setDaynhwhssdl(null != ls.get(i).getDaynhwhssdl()
+                                ? StringUtils.round(ls.get(i).getDaynhwhssdl(), 4) : 0.0);
+                        oldwd.setDaynhxdssdl(null != ls.get(i).getDaynhxdssdl()
+                                ? StringUtils.round(ls.get(i).getDaynhxdssdl(), 4) : 0.0);
+                        oldwd.setDaynhqfdl(null != ls.get(i).getDaynhqfdl()
+                                ? StringUtils.round(ls.get(i).getDaynhqfdl(), 4) : 0.0);
+                        oldwd.setDayspeed(
+                                null != ls.get(i).getDayspeed() ? StringUtils.round(ls.get(i).getDayspeed(), 2) : 0.0);
+                        oldwd.setDaynhcfdl(null != ls.get(i).getDaynhcfdl()
+                                ? StringUtils.round(ls.get(i).getDaynhcfdl(), 4) : 0.0);
+                        oldwd.setWindpowerstationid(ls.get(i).getWindpowerstationid());
+                        oldwd.setProjectid(ls.get(i).getProjectid());
+                        oldwd.setLineid(ls.get(i).getLineid());
+                        map.put(ls.get(i).getWindturbineid(), oldwd);
+                    }
+                }
+                Set<Map.Entry<String, Windturbineinfoday3>> set = map.entrySet();
+                for (Iterator<Map.Entry<String, Windturbineinfoday3>> it = set.iterator(); it.hasNext(); ) {
+                    Map.Entry<String, Windturbineinfoday3> entry = (Map.Entry<String, Windturbineinfoday3>) it.next();
+
+                    Windturbineinfoday3 wi = entry.getValue();
+                    String temp1 = wi.getWtId();
+                    formatWi(wi);
+                    wi.setTotal(wi.getDaydl2() + wi.getDaynhgzssdl() + wi.getDaynhwhssdl() + wi.getDaynhxdssdl()
+                            + wi.getDaynhqfdl() + wi.getDaynhcfdl());
+                    wi.setTotal(new BigDecimal(wi.getTotal()).multiply(new BigDecimal(100))
+                            .divide(new BigDecimal(100), 4, RoundingMode.HALF_EVEN).doubleValue());
+                    double temp2 = wi.getTotal();
+                    if (temp2 == 0) {
+                        temp2 = 1.0;
+                    }
+                    double temp = new BigDecimal(wi.getDaynhdl()).subtract(new BigDecimal(wi.getTotal()))
+                            .divide(new BigDecimal(temp2), 4, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100))
+                            .doubleValue();
+                    wi.setPercentage(temp);
+                    double lyl = new BigDecimal(wi.getDaydl2()).divide(new BigDecimal(temp2), 4, RoundingMode.HALF_EVEN)
+                            .multiply(new BigDecimal(100)).doubleValue();
+                    wi.setLyl(lyl > 100 ? 100.00 : lyl);
+
+                    if (InitialRunner.wtmap.containsKey(wi.getWtId())) {
+                        Windturbine wt = InitialRunner.wtmap.get(wi.getWtId());
+                        wi.setWtName(wt.getCode());
+                        wi.setWtId("");
+                    }
+                    if (StringUtils.isNumeric(temp1.substring(temp1.length() - 3, temp1.length()))) {
+                        vosapp.add(wi);
+                    } else {
+
+                        vos.add(wi);
+                    }
+
+                }
+
+            }
+            double fdl = 0.0;
+            double gzss = 0.0;
+            double whss = 0.0;
+            double xnss = 0.0;
+            double xdss = 0.0;
+            double slss = 0.0;
+            double llfdl = 0.0;
+            double lyl = 0.0;
+            double dayspeed = 0.0;
+            long count = 0;
+            vos.addAll(vosapp);
+
+            for (Windturbineinfoday3 wi : vos) {
+                count++;
+                fdl = StringUtils.round(wi.getDaydl2(), 4) + StringUtils.round(fdl, 4);
+                gzss = StringUtils.round(wi.getDaynhgzssdl(), 4) + StringUtils.round(gzss, 4);
+                whss = StringUtils.round(wi.getDaynhwhssdl(), 4) + StringUtils.round(whss, 4);
+                xdss = StringUtils.round(wi.getDaynhxdssdl(), 4) + StringUtils.round(xdss, 4);
+                xnss = StringUtils.round(wi.getDaynhqfdl(), 4) + StringUtils.round(xnss, 4);
+                dayspeed = StringUtils.round(wi.getDayspeed(), 2) + StringUtils.round(dayspeed, 2);
+                slss = StringUtils.round(wi.getDaynhcfdl(), 4) + StringUtils.round(slss, 4);
+
+                // wi.setTotal(new BigDecimal(wi.getTotal()).divide(new
+                // BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue());
+            }
+            llfdl = StringUtils.round(fdl + whss + gzss + xnss + xdss + slss, 4);
+            if (llfdl != 0) {
+                // llfdl=StringUtils.round(llfdl, 2);
+                // fdl=StringUtils.round(fdl, 2);
+                lyl = StringUtils.round(fdl / llfdl * 100, 2);
+                // lyl = new BigDecimal(fdl).divide(new BigDecimal(llfdl), 2,
+                // RoundingMode.HALF_EVEN).multiply(new
+                // BigDecimal(100)).doubleValue();
+            }
+            getSortData(sortName, sortOrder, vos);
+
+            Windturbineinfoday3 wi = new Windturbineinfoday3();
+            wi.setWtName("合计");
+            wi.setDaydl2(StringUtils.round(fdl, 4));
+            wi.setDaynhgzssdl(StringUtils.round(gzss, 4));
+            wi.setDaynhwhssdl(StringUtils.round(whss, 4));
+            wi.setDaynhcfdl(StringUtils.round(slss, 4));
+            wi.setDaynhxdssdl(StringUtils.round(xdss, 4));
+            wi.setDaynhqfdl(StringUtils.round(xnss, 4));
+            wi.setTotal(StringUtils.round(llfdl, 4));
+            wi.setLyl(lyl > 100 ? 100.00 : lyl);
+            wi.setDayspeed(dayspeed / count);
+            vos.add(wi);
+        }
+
+
+        return vos;
+    }
+
+    private void getSortData(String sortName, String sortOrder, List<Windturbineinfoday3> vos) {
+        if (StringUtils.notEmp(sortName) && sortName.equals("daydl2")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDaydl2().compareTo(o2.getDaydl2());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDaydl2().compareTo(o1.getDaydl2());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("daynhgzssdl")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDaynhgzssdl().compareTo(o2.getDaynhgzssdl());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDaynhgzssdl().compareTo(o1.getDaynhgzssdl());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("daynhwhssdl")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDaynhwhssdl().compareTo(o2.getDaynhwhssdl());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDaynhwhssdl().compareTo(o1.getDaynhwhssdl());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("dayspeed")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDayspeed().compareTo(o2.getDayspeed());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDayspeed().compareTo(o1.getDayspeed());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("daynhxdssdl")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDaynhxdssdl().compareTo(o2.getDaynhxdssdl());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDaynhxdssdl().compareTo(o1.getDaynhxdssdl());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("daynhqfdl")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDaynhqfdl().compareTo(o2.getDaynhqfdl());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDaynhqfdl().compareTo(o1.getDaynhqfdl());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("total")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getTotal().compareTo(o2.getTotal());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+//				Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+//					public int compare(Windturbineinfoday3 arg0, Windturbineinfoday3 arg1) {
+//						int result = 0;
+//						if (arg0.getTotal() < arg1.getTotal())
+//							result = 1;
+//						else
+//							result = 0;
+//						return result;
+//					}
+//				});
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getTotal().compareTo(o1.getTotal());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("lyl")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getLyl().compareTo(o2.getLyl());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getLyl().compareTo(o1.getLyl());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("wtName")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getWtName().compareTo(o2.getWtName());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getWtName().compareTo(o1.getWtName());
+                    }
+
+                });
+            }
+
+        } else if (StringUtils.notEmp(sortName) && sortName.equals("dayspeed")) {
+
+            if (sortOrder.equals("asc")) {
+
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o1.getDayspeed().compareTo(o2.getDayspeed());
+                    }
+
+                });
+            } else if (sortOrder.equals("desc")) {
+                Collections.sort(vos, new Comparator<Windturbineinfoday3>() {
+                    // 升序排序
+                    public int compare(Windturbineinfoday3 o1, Windturbineinfoday3 o2) {
+                        return o2.getDayspeed().compareTo(o1.getDayspeed());
+                    }
+
+                });
+
+
+            }
+
+        }
+    }
+
+    private void formatWi(Windturbineinfoday3 wi) {
+        // formatWi(wi);
+        double sfdl = new BigDecimal(wi.getDaydl2()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double yfdl = new BigDecimal(wi.getDaynhdl()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double gzzdl = new BigDecimal(wi.getDaynhgzssdl()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double whdl = new BigDecimal(wi.getDaynhwhssdl()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double xddl = new BigDecimal(wi.getDaynhxdssdl()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double qfdl = new BigDecimal(wi.getDaynhqfdl()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double cfdl = new BigDecimal(wi.getDaynhcfdl()).divide(new BigDecimal(10000), 4, RoundingMode.HALF_EVEN)
+                .doubleValue();
+        double dayspeed = wi.getDayspeed();
+
+        wi.setDaydl2(sfdl);
+        wi.setDaynhdl(yfdl);
+        wi.setDaynhgzssdl(gzzdl);
+        wi.setDaynhwhssdl(whdl);
+        wi.setDaynhxdssdl(xddl);
+        wi.setDaynhqfdl(qfdl);
+        wi.setDayspeed(dayspeed);
+        wi.setDaynhcfdl(cfdl);
+    }
+
+
+    public Map<String, List<String>> getWindturbineinfoJson(String wpIds, String pjIds, String lineIds, Date beginDate,
+                                                            Date endDate) {
+        Map<String, List<String>> resultmap = new HashMap<String, List<String>>();
+
+        if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+
+            List<Windturbineinfoday3> ls = null;
+
+                Windturbineinfoday3Example example = new Windturbineinfoday3Example();
+                example.setOrderByClause("windturbineid asc");
+
+                if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+
+
+                  Windturbineinfoday3Example.Criteria criteria= example.createCriteria();
+                    if (StringUtils.notEmp(wpIds) && !wpIds.equals("undefined")) {
+                        criteria.andWindpowerstationidEqualTo(wpIds);
+                    }
+
+                    if (StringUtils.notEmp(pjIds) && !pjIds.equals("undefined")) {
+                        criteria.andProjectidEqualTo(pjIds);
+                    }
+
+                    if (StringUtils.notEmp(lineIds) && !lineIds.equals("undefined")) {
+                        criteria.andLineidEqualTo(lineIds);
+                    }
+                    criteria.andRecorddateGreaterThanOrEqualTo(beginDate).andRecorddateLessThanOrEqualTo(endDate);
+                    ls = windturbineinfoday3Mapper.selectByExample(example);
+                } else {
+                    ls = new ArrayList<>();
+                }
+
+            List<String> names = new ArrayList<String>();
+            List<String> names2 = new ArrayList<String>();
+            List<String> yfdl = new ArrayList<String>();
+            ;
+            List<String> sfdl = new ArrayList<String>();
+            List<String> gzdl = new ArrayList<String>();
+            List<String> whdl = new ArrayList<String>();
+            List<String> xddl = new ArrayList<String>();
+            List<String> qfdl = new ArrayList<String>();
+            List<String> sldl = new ArrayList<String>();
+            List<String> lyl = new ArrayList<String>();
+
+            List<String> namesapp = new ArrayList<String>();
+            List<String> names2app = new ArrayList<String>();
+            List<String> yfdlapp = new ArrayList<String>();
+            ;
+            List<String> sfdlapp = new ArrayList<String>();
+            List<String> gzdlapp = new ArrayList<String>();
+            List<String> whdlapp = new ArrayList<String>();
+            List<String> xddlapp = new ArrayList<String>();
+            List<String> qfdlapp = new ArrayList<String>();
+            List<String> sldlapp = new ArrayList<String>();
+            List<String> lylapp = new ArrayList<String>();
+            if (!ls.isEmpty()) {
+                Map<String, Windturbineinfoday3> map = new TreeMap<String, Windturbineinfoday3>();
+                for (Windturbineinfoday3 wd : ls) {
+
+
+                    if (map.containsKey(wd.getWindturbineid())) {
+                        Windturbineinfoday3 oldwd = map.get(wd.getWindturbineid());
+                        double sfdld = null != wd.getDaydl2() ? wd.getDaydl2() : 0.0;
+                        double yfdld = null != wd.getDaynhdl2() ? wd.getDaynhdl2() : 0.0;
+                        double gzzdld = null != wd.getDaynhgzssdl2() ? wd.getDaynhgzssdl2() : 0.0;
+                        double whdld = null != wd.getDaynhwhssdl2() ? wd.getDaynhwhssdl2() : 0.0;
+                        double xddld = null != wd.getDaynhxdssdl2() ? wd.getDaynhxdssdl2() : 0.0;
+                        double qfdld = null != wd.getDaynhqfdl2() ? wd.getDaynhqfdl2() : 0.0;
+
+                        oldwd.setDaydl2(oldwd.getDaydl2() + sfdld);
+                        oldwd.setDaynhdl2(oldwd.getDaynhdl2() + yfdld);
+                        oldwd.setDaynhgzssdl2(oldwd.getDaynhgzssdl2() + gzzdld);
+                        oldwd.setDaynhwhssdl2(oldwd.getDaynhwhssdl2() + whdld);
+                        oldwd.setDaynhxdssdl2(oldwd.getDaynhxdssdl2() + xddld);
+                        oldwd.setDaynhqfdl2(oldwd.getDaynhqfdl2() + qfdld);
+                        oldwd.setDayspeed(0.0);
+                        map.put(wd.getWindturbineid(), oldwd);
+                    } else {
+                        Windturbineinfoday3 oldwd = new Windturbineinfoday3();
+                        oldwd.setWindturbineid(wd.getWindturbineid());
+                        oldwd.setDaydl2(null != wd.getDaydl2() ? wd.getDaydl2() : 0.0);
+                        oldwd.setDaynhdl2(null != wd.getDaynhdl2() ? wd.getDaynhdl2() : 0.0);
+                        oldwd.setDaynhgzssdl2(null != wd.getDaynhgzssdl2() ? wd.getDaynhgzssdl2() : 0.0);
+                        oldwd.setDaynhwhssdl2(null != wd.getDaynhwhssdl2() ? wd.getDaynhwhssdl2() : 0.0);
+                        oldwd.setDaynhxdssdl2(null != wd.getDaynhxdssdl2() ? wd.getDaynhxdssdl2() : 0.0);
+                        oldwd.setDaynhqfdl2(null != wd.getDaynhqfdl2() ? wd.getDaynhqfdl2() : 0.0);
+                        oldwd.setDayspeed(0.0);
+
+                        map.put(wd.getWindturbineid(), oldwd);
+                    }
+                }
+
+                Set<Map.Entry<String, Windturbineinfoday3>> set = map.entrySet();
+                for (Iterator<Map.Entry<String, Windturbineinfoday3>> it = set.iterator(); it.hasNext();) {
+                    Map.Entry<String, Windturbineinfoday3> entry = (Map.Entry<String, Windturbineinfoday3>) it.next();
+                    Windturbineinfoday3 wd = entry.getValue();
+                    String temp = wd.getWindturbineid();
+                    if (StringUtils.isNumeric(temp.substring(temp.length() - 3, temp.length()))) {
+
+                        if (InitialRunner.wtmap.containsKey(wd.getWindturbineid())) {
+                            Windturbine wt = InitialRunner.wtmap.get(wd.getWindturbineid());
+                            // wi.setWtName(wt.getName());
+                            namesapp.add(wt.getName());
+                        }
+                        // names.add(wd.getWindturbineid());
+                        names2app.add("");
+                        double fdl = new BigDecimal(wd.getDaydl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double xd = new BigDecimal(wd.getDaynhxdssdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double gz = new BigDecimal(wd.getDaynhgzssdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double jx = new BigDecimal(wd.getDaynhwhssdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double qf = new BigDecimal(wd.getDaynhqfdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double result = fdl + xd + gz + jx + qf;
+                        yfdlapp.add(String.valueOf(StringUtils.round(result, 2)));
+                        sfdlapp.add(String.valueOf(fdl));
+                        gzdlapp.add(String.valueOf(gz));
+                        whdlapp.add(String.valueOf(jx));
+                        xddlapp.add(String.valueOf(xd));
+                        qfdlapp.add(String.valueOf(qf));
+                        sldlapp.add(String.valueOf(wd.getDayspeed()));
+                        if (result == 0) {
+                            result = 1;
+                        }
+                        wd.setLyl(new BigDecimal(fdl).divide(new BigDecimal(result), 4, RoundingMode.HALF_EVEN)
+                                .multiply(new BigDecimal(100)).doubleValue());
+
+                        lylapp.add(String.valueOf(wd.getLyl()));
+                    } else {
+
+                        if (InitialRunner.wtmap.containsKey(wd.getWindturbineid())) {
+                            Windturbine wt = InitialRunner.wtmap.get(wd.getWindturbineid());
+                            // wi.setWtName(wt.getName());
+                            names.add(wt.getName());
+                        }
+                        // names.add(wd.getWindturbineid());
+                        names2.add("");
+                        double fdl = new BigDecimal(wd.getDaydl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double total = 1.0;
+                        double gzss = new BigDecimal(wd.getDaynhgzssdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double whss = new BigDecimal(wd.getDaynhwhssdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double xdss = new BigDecimal(wd.getDaynhxdssdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        double qdss = new BigDecimal(wd.getDaynhqfdl2())
+                                .divide(new BigDecimal(10000), 2, RoundingMode.HALF_EVEN).doubleValue();
+                        total = fdl + gzss + whss + xdss + qdss;
+                        yfdl.add(String.valueOf(StringUtils.round(total, 2)));
+                        sfdl.add(String.valueOf(fdl));
+                        gzdl.add(String.valueOf(gzss));
+                        whdl.add(String.valueOf(whss));
+                        xddl.add(String.valueOf(xdss));
+                        qfdl.add(String.valueOf(qdss));
+                        sldl.add(String.valueOf(wd.getDayspeed()));
+                        if (total == 0) {
+                            total = 1;
+                        }
+                        wd.setLyl(new BigDecimal(fdl).divide(new BigDecimal(total), 4, RoundingMode.HALF_EVEN)
+                                .multiply(new BigDecimal(100)).doubleValue());
+
+
+                        lyl.add(String.valueOf(wd.getLyl()));
+                    }
+                }
+                names.addAll(namesapp);
+                names2.addAll(names2app);
+                sfdl.addAll(sfdlapp);
+                yfdl.addAll(yfdlapp);
+                gzdl.addAll(gzdlapp);
+                whdl.addAll(whdlapp);
+                xddl.addAll(xddlapp);
+                qfdl.addAll(qfdlapp);
+                sldl.addAll(sldlapp);
+
+                resultmap.put("names", names);
+                resultmap.put("names2", names2);
+                resultmap.put("sfdl", sfdl);
+                resultmap.put("yfdl", yfdl);
+                resultmap.put("gzdl", gzdl);
+                resultmap.put("whdl", whdl);
+                resultmap.put("xddl", xddl);
+                resultmap.put("qfdl", qfdl);
+                resultmap.put("sldl", sldl);
+                resultmap.put("lyl", lyl);
+            }
+
+        }
+        return resultmap;
+
+    }
+}

+ 155 - 0
src/main/java/com/gyee/frame/service/WindturbineinfodayService.java

@@ -0,0 +1,155 @@
+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.support.Convert;
+import com.gyee.frame.mapper.auto.WindTurbineInfoDayMapper;
+import com.gyee.frame.model.auto.WindTurbineInfoDay;
+import com.gyee.frame.model.auto.WindTurbineInfoDayExample;
+import com.gyee.frame.model.custom.Tablepar;
+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;
+
+/**
+ * 风机信息表 WindTurbineInfoDayService
+ * @Title: WindTurbineInfoDayService.java 
+ * @Package com.gyee.frame.service 
+ **/
+@Service
+public class WindturbineinfodayService implements BaseService<WindTurbineInfoDay, WindTurbineInfoDayExample> {
+	@Resource
+	private WindTurbineInfoDayMapper windTurbineInfoDayMapper;
+
+
+	/**
+	 * 分页查询
+	 * @param tablepar
+	 * @param name
+	 * @return
+	 */
+	 public PageInfo<WindTurbineInfoDay> list(Tablepar tablepar, String name){
+	        WindTurbineInfoDayExample testExample=new WindTurbineInfoDayExample();
+	        testExample.setOrderByClause("id ASC");
+	        if(name!=null&&!"".equals(name)){
+//	        	testExample.createCriteria().and.andCodeLike("%"+name+"%");
+	        }
+
+	        PageHelper.startPage(tablepar.getPageNum(), tablepar.getPageSize());
+	        List<WindTurbineInfoDay> list= windTurbineInfoDayMapper.selectByExample(testExample);
+	        PageInfo<WindTurbineInfoDay> pageInfo = new PageInfo<WindTurbineInfoDay>(list);
+	        return  pageInfo;
+	 }
+
+	@Override
+	public int deleteByPrimaryKey(String ids) {
+
+			List<Integer> lista=Convert.toIntArrayList(ids);
+			WindTurbineInfoDayExample example=new WindTurbineInfoDayExample();
+			example.createCriteria().andIdIn(lista);
+			return windTurbineInfoDayMapper.deleteByExample(example);
+
+
+	}
+
+
+	@Override
+	public WindTurbineInfoDay selectByPrimaryKey(String id) {
+
+	 	if(StringUtils.isNotEmpty(id))
+		{
+			return windTurbineInfoDayMapper.selectByPrimaryKey(Integer.valueOf(id));
+
+		}
+	 	return new WindTurbineInfoDay();
+
+	}
+
+
+	@Override
+	public int updateByPrimaryKeySelective(WindTurbineInfoDay record) {
+		return windTurbineInfoDayMapper.updateByPrimaryKeySelective(record);
+	}
+
+
+	/**
+	 * 添加
+	 */
+	@Override
+	public int insertSelective(WindTurbineInfoDay record) {
+
+//		//添加雪花主键id
+//		record.setId(SnowflakeIdWorker.getUUID());
+
+
+		return windTurbineInfoDayMapper.insertSelective(record);
+	}
+
+
+	@Override
+	public int updateByExampleSelective(WindTurbineInfoDay record, WindTurbineInfoDayExample example) {
+
+		return windTurbineInfoDayMapper.updateByExampleSelective(record, example);
+	}
+
+
+	@Override
+	public int updateByExample(WindTurbineInfoDay record, WindTurbineInfoDayExample example) {
+
+		return windTurbineInfoDayMapper.updateByExample(record, example);
+	}
+
+	@Override
+	public List<WindTurbineInfoDay> selectByExample(WindTurbineInfoDayExample example) {
+
+		return windTurbineInfoDayMapper.selectByExample(example);
+	}
+
+
+	@Override
+	public long countByExample(WindTurbineInfoDayExample example) {
+
+		return windTurbineInfoDayMapper.countByExample(example);
+	}
+
+
+	@Override
+	public int deleteByExample(WindTurbineInfoDayExample example) {
+
+		return windTurbineInfoDayMapper.deleteByExample(example);
+	}
+
+	public List<WindTurbineInfoDay> getWindturbineinfo(Date beginDate, Date endDate, String wtId) {
+
+
+		List<WindTurbineInfoDay> list=null;
+
+		if (StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
+
+			WindTurbineInfoDayExample example=new WindTurbineInfoDayExample();
+			example.setOrderByClause("recorddate DESC");
+
+			if(StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)){
+
+
+				example.createCriteria().andWindpowerstationidLike("FDC").andWindturbineidEqualTo(wtId).andRecorddateGreaterThanOrEqualTo(beginDate).andRecorddateLessThanOrEqualTo(endDate);
+				list= windTurbineInfoDayMapper.selectByExample(example);
+			}else
+			{
+				list=new ArrayList<>();
+			}
+
+		}
+		return list;
+
+	}
+
+
+
+
+}

+ 19 - 2
src/main/java/com/gyee/frame/util/DateUtils.java

@@ -1,12 +1,13 @@
 package com.gyee.frame.util;
 
+import org.apache.commons.lang3.time.DateFormatUtils;
+
 import java.lang.management.ManagementFactory;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
+import java.util.Calendar;
 import java.util.Date;
 
-import org.apache.commons.lang3.time.DateFormatUtils;
-
 /**
  * 日期处理
  * @ClassName: DateUtils
@@ -178,4 +179,20 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
         // long sec = diff % nd % nh % nm / ns;
         return day + "天" + hour + "小时" + min + "分钟";
     }
+
+    /**
+     * 将时间的时分秒毫秒字段去掉
+     *
+     * @param date
+     * @return
+     */
+    public static Date truncate(Date date) {
+        Calendar cal = Calendar.getInstance();
+        cal.setTime(date);
+        cal.set(Calendar.HOUR_OF_DAY, 0);
+        cal.set(Calendar.MINUTE, 0);
+        cal.set(Calendar.SECOND, 0);
+        cal.set(Calendar.MILLISECOND, 0);
+        return cal.getTime();
+    }
 }

+ 38 - 2
src/main/java/com/gyee/frame/util/StringUtils.java

@@ -1,10 +1,13 @@
 package com.gyee.frame.util;
 
-import java.util.Collection;
-import java.util.Map;
 import org.apache.commons.lang.WordUtils;
 import org.apache.commons.lang.text.StrBuilder;
 
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+import java.util.Collection;
+import java.util.Map;
+
 
 
 /**
@@ -441,4 +444,37 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
         }
         return columnToJava(tableName);
     }
+
+    /**
+     * 是否不为空串
+     *
+     * @param obj
+     * @return
+     */
+    public static boolean notEmp(Object obj) {
+        return !empty(obj);
+    }
+
+    /**
+     * 是否为空串
+     *
+     * @param obj
+     * @return
+     */
+    public static boolean empty(Object obj) {
+        if (obj == null)
+            return true;
+        String str;
+        if (obj instanceof String) {
+            str = (String) obj;
+        } else {
+            str = obj.toString();
+        }
+        return str.length() == 0;
+    }
+
+    public static double round(double num, int digit) {
+
+        return new BigDecimal(num).setScale(digit, RoundingMode.HALF_UP).doubleValue();
+    }
 }

+ 1 - 1
src/main/resources/mybatis-generator.xml

@@ -102,7 +102,7 @@
         </table>-->
 
 
-        <table tableName='windturbineinfodaytop3' domainObjectName='Windturbineinfodaytop3'/>
+        <table tableName='WindTurbineInfoDay' domainObjectName='WindTurbineInfoDay'/>
 
     </context>
 </generatorConfiguration>

File diff suppressed because it is too large
+ 1380 - 0
src/main/resources/mybatis/auto/WindTurbineInfoDayMapper.xml


+ 952 - 0
src/main/resources/mybatis/auto/Windpowerinfoday3Mapper.xml

@@ -0,0 +1,952 @@
+<?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.Windpowerinfoday3Mapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Windpowerinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="windPowerStationId" jdbcType="VARCHAR" property="windpowerstationid" />
+    <result column="projectId" jdbcType="VARCHAR" property="projectid" />
+    <result column="lineId" jdbcType="VARCHAR" property="lineid" />
+    <result column="windTurbineId" jdbcType="VARCHAR" property="windturbineid" />
+    <result column="dayDL1" jdbcType="DECIMAL" property="daydl1" />
+    <result column="dayDL2" jdbcType="DECIMAL" property="daydl2" />
+    <result column="dayPower" jdbcType="DECIMAL" property="daypower" />
+    <result column="daySpeed" jdbcType="DECIMAL" property="dayspeed" />
+    <result column="dayMaxPower" jdbcType="DECIMAL" property="daymaxpower" />
+    <result column="dayMinPower" jdbcType="DECIMAL" property="dayminpower" />
+    <result column="dayMaxSpeed" jdbcType="DECIMAL" property="daymaxspeed" />
+    <result column="dayMinSpeed" jdbcType="DECIMAL" property="dayminspeed" />
+    <result column="dayNHGL" jdbcType="DECIMAL" property="daynhgl" />
+    <result column="dayNHDL" jdbcType="DECIMAL" property="daynhdl" />
+    <result column="dayNHGZSSDL" jdbcType="DECIMAL" property="daynhgzssdl" />
+    <result column="dayNHWHSSDL" jdbcType="DECIMAL" property="daynhwhssdl" />
+    <result column="dayNHXDSSDL" jdbcType="DECIMAL" property="daynhxdssdl" />
+    <result column="dayNHQFDL" jdbcType="DECIMAL" property="daynhqfdl" />
+    <result column="dayNHCFDL" jdbcType="DECIMAL" property="daynhcfdl" />
+    <result column="dayNHPCL" jdbcType="DECIMAL" property="daynhpcl" />
+    <result column="dayNHGL2" jdbcType="DECIMAL" property="daynhgl2" />
+    <result column="dayNHDL2" jdbcType="DECIMAL" property="daynhdl2" />
+    <result column="dayNHGZSSDL2" jdbcType="DECIMAL" property="daynhgzssdl2" />
+    <result column="dayNHWHSSDL2" jdbcType="DECIMAL" property="daynhwhssdl2" />
+    <result column="dayNHXDSSDL2" jdbcType="DECIMAL" property="daynhxdssdl2" />
+    <result column="dayNHQFDL2" jdbcType="DECIMAL" property="daynhqfdl2" />
+    <result column="dayNHCFDL2" jdbcType="DECIMAL" property="daynhcfdl2" />
+    <result column="dayNHPCL2" jdbcType="DECIMAL" property="daynhpcl2" />
+    <result column="dayBZGL" jdbcType="DECIMAL" property="daybzgl" />
+    <result column="dayBZDL" jdbcType="DECIMAL" property="daybzdl" />
+    <result column="dayBZGZSSDL" jdbcType="DECIMAL" property="daybzgzssdl" />
+    <result column="dayBZWHSSDL" jdbcType="DECIMAL" property="daybzwhssdl" />
+    <result column="dayBZXDSSDL" jdbcType="DECIMAL" property="daybzxdssdl" />
+    <result column="dayBZQFDL" jdbcType="DECIMAL" property="daybzqfdl" />
+    <result column="dayBZCFDL" jdbcType="DECIMAL" property="daybzcfdl" />
+    <result column="dayBZPCL" jdbcType="DECIMAL" property="daybzpcl" />
+    <result column="dayLLGL" jdbcType="DECIMAL" property="dayllgl" />
+    <result column="dayLLDL" jdbcType="DECIMAL" property="daylldl" />
+    <result column="dayLLGZSSDL" jdbcType="DECIMAL" property="dayllgzssdl" />
+    <result column="dayLLWHSSDL" jdbcType="DECIMAL" property="dayllwhssdl" />
+    <result column="dayLLXDSSDL" jdbcType="DECIMAL" property="dayllxdssdl" />
+    <result column="dayLLQFDL" jdbcType="DECIMAL" property="dayllqfdl" />
+    <result column="dayLLCFDL" jdbcType="DECIMAL" property="dayllcfdl" />
+    <result column="dayLLPCL" jdbcType="DECIMAL" property="dayllpcl" />
+    <result column="recordDate" jdbcType="TIMESTAMP" property="recorddate" />
+    <result column="foreignkeyId" jdbcType="VARCHAR" property="foreignkeyid" />
+    <result column="location" jdbcType="VARCHAR" property="location" />
+  </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, windPowerStationId, projectId, lineId, windTurbineId, dayDL1, dayDL2, dayPower, 
+    daySpeed, dayMaxPower, dayMinPower, dayMaxSpeed, dayMinSpeed, dayNHGL, dayNHDL, dayNHGZSSDL, 
+    dayNHWHSSDL, dayNHXDSSDL, dayNHQFDL, dayNHCFDL, dayNHPCL, dayNHGL2, dayNHDL2, dayNHGZSSDL2, 
+    dayNHWHSSDL2, dayNHXDSSDL2, dayNHQFDL2, dayNHCFDL2, dayNHPCL2, dayBZGL, dayBZDL, 
+    dayBZGZSSDL, dayBZWHSSDL, dayBZXDSSDL, dayBZQFDL, dayBZCFDL, dayBZPCL, dayLLGL, dayLLDL, 
+    dayLLGZSSDL, dayLLWHSSDL, dayLLXDSSDL, dayLLQFDL, dayLLCFDL, dayLLPCL, recordDate, 
+    foreignkeyId, location
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3Example" 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 windpowerinfoday3
+    <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.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from windpowerinfoday3
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windpowerinfoday3
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3Example">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windpowerinfoday3
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windpowerinfoday3 (id, windPowerStationId, projectId, 
+      lineId, windTurbineId, dayDL1, 
+      dayDL2, dayPower, daySpeed, 
+      dayMaxPower, dayMinPower, dayMaxSpeed, 
+      dayMinSpeed, dayNHGL, dayNHDL, 
+      dayNHGZSSDL, dayNHWHSSDL, dayNHXDSSDL, 
+      dayNHQFDL, dayNHCFDL, dayNHPCL, 
+      dayNHGL2, dayNHDL2, dayNHGZSSDL2, 
+      dayNHWHSSDL2, dayNHXDSSDL2, dayNHQFDL2, 
+      dayNHCFDL2, dayNHPCL2, dayBZGL, 
+      dayBZDL, dayBZGZSSDL, dayBZWHSSDL, 
+      dayBZXDSSDL, dayBZQFDL, dayBZCFDL, 
+      dayBZPCL, dayLLGL, dayLLDL, 
+      dayLLGZSSDL, dayLLWHSSDL, dayLLXDSSDL, 
+      dayLLQFDL, dayLLCFDL, dayLLPCL, 
+      recordDate, foreignkeyId, location
+      )
+    values (#{id,jdbcType=INTEGER}, #{windpowerstationid,jdbcType=VARCHAR}, #{projectid,jdbcType=VARCHAR}, 
+      #{lineid,jdbcType=VARCHAR}, #{windturbineid,jdbcType=VARCHAR}, #{daydl1,jdbcType=DECIMAL}, 
+      #{daydl2,jdbcType=DECIMAL}, #{daypower,jdbcType=DECIMAL}, #{dayspeed,jdbcType=DECIMAL}, 
+      #{daymaxpower,jdbcType=DECIMAL}, #{dayminpower,jdbcType=DECIMAL}, #{daymaxspeed,jdbcType=DECIMAL}, 
+      #{dayminspeed,jdbcType=DECIMAL}, #{daynhgl,jdbcType=DECIMAL}, #{daynhdl,jdbcType=DECIMAL}, 
+      #{daynhgzssdl,jdbcType=DECIMAL}, #{daynhwhssdl,jdbcType=DECIMAL}, #{daynhxdssdl,jdbcType=DECIMAL}, 
+      #{daynhqfdl,jdbcType=DECIMAL}, #{daynhcfdl,jdbcType=DECIMAL}, #{daynhpcl,jdbcType=DECIMAL}, 
+      #{daynhgl2,jdbcType=DECIMAL}, #{daynhdl2,jdbcType=DECIMAL}, #{daynhgzssdl2,jdbcType=DECIMAL}, 
+      #{daynhwhssdl2,jdbcType=DECIMAL}, #{daynhxdssdl2,jdbcType=DECIMAL}, #{daynhqfdl2,jdbcType=DECIMAL}, 
+      #{daynhcfdl2,jdbcType=DECIMAL}, #{daynhpcl2,jdbcType=DECIMAL}, #{daybzgl,jdbcType=DECIMAL}, 
+      #{daybzdl,jdbcType=DECIMAL}, #{daybzgzssdl,jdbcType=DECIMAL}, #{daybzwhssdl,jdbcType=DECIMAL}, 
+      #{daybzxdssdl,jdbcType=DECIMAL}, #{daybzqfdl,jdbcType=DECIMAL}, #{daybzcfdl,jdbcType=DECIMAL}, 
+      #{daybzpcl,jdbcType=DECIMAL}, #{dayllgl,jdbcType=DECIMAL}, #{daylldl,jdbcType=DECIMAL}, 
+      #{dayllgzssdl,jdbcType=DECIMAL}, #{dayllwhssdl,jdbcType=DECIMAL}, #{dayllxdssdl,jdbcType=DECIMAL}, 
+      #{dayllqfdl,jdbcType=DECIMAL}, #{dayllcfdl,jdbcType=DECIMAL}, #{dayllpcl,jdbcType=DECIMAL}, 
+      #{recorddate,jdbcType=TIMESTAMP}, #{foreignkeyid,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windpowerinfoday3
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="windpowerstationid != null">
+        windPowerStationId,
+      </if>
+      <if test="projectid != null">
+        projectId,
+      </if>
+      <if test="lineid != null">
+        lineId,
+      </if>
+      <if test="windturbineid != null">
+        windTurbineId,
+      </if>
+      <if test="daydl1 != null">
+        dayDL1,
+      </if>
+      <if test="daydl2 != null">
+        dayDL2,
+      </if>
+      <if test="daypower != null">
+        dayPower,
+      </if>
+      <if test="dayspeed != null">
+        daySpeed,
+      </if>
+      <if test="daymaxpower != null">
+        dayMaxPower,
+      </if>
+      <if test="dayminpower != null">
+        dayMinPower,
+      </if>
+      <if test="daymaxspeed != null">
+        dayMaxSpeed,
+      </if>
+      <if test="dayminspeed != null">
+        dayMinSpeed,
+      </if>
+      <if test="daynhgl != null">
+        dayNHGL,
+      </if>
+      <if test="daynhdl != null">
+        dayNHDL,
+      </if>
+      <if test="daynhgzssdl != null">
+        dayNHGZSSDL,
+      </if>
+      <if test="daynhwhssdl != null">
+        dayNHWHSSDL,
+      </if>
+      <if test="daynhxdssdl != null">
+        dayNHXDSSDL,
+      </if>
+      <if test="daynhqfdl != null">
+        dayNHQFDL,
+      </if>
+      <if test="daynhcfdl != null">
+        dayNHCFDL,
+      </if>
+      <if test="daynhpcl != null">
+        dayNHPCL,
+      </if>
+      <if test="daynhgl2 != null">
+        dayNHGL2,
+      </if>
+      <if test="daynhdl2 != null">
+        dayNHDL2,
+      </if>
+      <if test="daynhgzssdl2 != null">
+        dayNHGZSSDL2,
+      </if>
+      <if test="daynhwhssdl2 != null">
+        dayNHWHSSDL2,
+      </if>
+      <if test="daynhxdssdl2 != null">
+        dayNHXDSSDL2,
+      </if>
+      <if test="daynhqfdl2 != null">
+        dayNHQFDL2,
+      </if>
+      <if test="daynhcfdl2 != null">
+        dayNHCFDL2,
+      </if>
+      <if test="daynhpcl2 != null">
+        dayNHPCL2,
+      </if>
+      <if test="daybzgl != null">
+        dayBZGL,
+      </if>
+      <if test="daybzdl != null">
+        dayBZDL,
+      </if>
+      <if test="daybzgzssdl != null">
+        dayBZGZSSDL,
+      </if>
+      <if test="daybzwhssdl != null">
+        dayBZWHSSDL,
+      </if>
+      <if test="daybzxdssdl != null">
+        dayBZXDSSDL,
+      </if>
+      <if test="daybzqfdl != null">
+        dayBZQFDL,
+      </if>
+      <if test="daybzcfdl != null">
+        dayBZCFDL,
+      </if>
+      <if test="daybzpcl != null">
+        dayBZPCL,
+      </if>
+      <if test="dayllgl != null">
+        dayLLGL,
+      </if>
+      <if test="daylldl != null">
+        dayLLDL,
+      </if>
+      <if test="dayllgzssdl != null">
+        dayLLGZSSDL,
+      </if>
+      <if test="dayllwhssdl != null">
+        dayLLWHSSDL,
+      </if>
+      <if test="dayllxdssdl != null">
+        dayLLXDSSDL,
+      </if>
+      <if test="dayllqfdl != null">
+        dayLLQFDL,
+      </if>
+      <if test="dayllcfdl != null">
+        dayLLCFDL,
+      </if>
+      <if test="dayllpcl != null">
+        dayLLPCL,
+      </if>
+      <if test="recorddate != null">
+        recordDate,
+      </if>
+      <if test="foreignkeyid != null">
+        foreignkeyId,
+      </if>
+      <if test="location != null">
+        location,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="windpowerstationid != null">
+        #{windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="windturbineid != null">
+        #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daydl1 != null">
+        #{daydl1,jdbcType=DECIMAL},
+      </if>
+      <if test="daydl2 != null">
+        #{daydl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daypower != null">
+        #{daypower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayspeed != null">
+        #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxpower != null">
+        #{daymaxpower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminpower != null">
+        #{dayminpower,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxspeed != null">
+        #{daymaxspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminspeed != null">
+        #{dayminspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl != null">
+        #{daynhgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl != null">
+        #{daynhdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl != null">
+        #{daynhgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl != null">
+        #{daynhwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl != null">
+        #{daynhxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl != null">
+        #{daynhqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl != null">
+        #{daynhcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl != null">
+        #{daynhpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl2 != null">
+        #{daynhgl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl2 != null">
+        #{daynhdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl2 != null">
+        #{daynhgzssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl2 != null">
+        #{daynhwhssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl2 != null">
+        #{daynhxdssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl2 != null">
+        #{daynhqfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl2 != null">
+        #{daynhcfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl2 != null">
+        #{daynhpcl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgl != null">
+        #{daybzgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzdl != null">
+        #{daybzdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgzssdl != null">
+        #{daybzgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzwhssdl != null">
+        #{daybzwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzxdssdl != null">
+        #{daybzxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzqfdl != null">
+        #{daybzqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzcfdl != null">
+        #{daybzcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzpcl != null">
+        #{daybzpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgl != null">
+        #{dayllgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daylldl != null">
+        #{daylldl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgzssdl != null">
+        #{dayllgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllwhssdl != null">
+        #{dayllwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllxdssdl != null">
+        #{dayllxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllqfdl != null">
+        #{dayllqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllcfdl != null">
+        #{dayllcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllpcl != null">
+        #{dayllpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="foreignkeyid != null">
+        #{foreignkeyid,jdbcType=VARCHAR},
+      </if>
+      <if test="location != null">
+        #{location,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3Example" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from windpowerinfoday3
+    <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 windpowerinfoday3
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.windpowerstationid != null">
+        windPowerStationId = #{record.windpowerstationid,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.windturbineid != null">
+        windTurbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.daydl1 != null">
+        dayDL1 = #{record.daydl1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daydl2 != null">
+        dayDL2 = #{record.daydl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daypower != null">
+        dayPower = #{record.daypower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayspeed != null">
+        daySpeed = #{record.dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daymaxpower != null">
+        dayMaxPower = #{record.daymaxpower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayminpower != null">
+        dayMinPower = #{record.dayminpower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daymaxspeed != null">
+        dayMaxSpeed = #{record.daymaxspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayminspeed != null">
+        dayMinSpeed = #{record.dayminspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgl != null">
+        dayNHGL = #{record.daynhgl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhdl != null">
+        dayNHDL = #{record.daynhdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgzssdl != null">
+        dayNHGZSSDL = #{record.daynhgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhwhssdl != null">
+        dayNHWHSSDL = #{record.daynhwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhxdssdl != null">
+        dayNHXDSSDL = #{record.daynhxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhqfdl != null">
+        dayNHQFDL = #{record.daynhqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhcfdl != null">
+        dayNHCFDL = #{record.daynhcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhpcl != null">
+        dayNHPCL = #{record.daynhpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgl2 != null">
+        dayNHGL2 = #{record.daynhgl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhdl2 != null">
+        dayNHDL2 = #{record.daynhdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgzssdl2 != null">
+        dayNHGZSSDL2 = #{record.daynhgzssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhwhssdl2 != null">
+        dayNHWHSSDL2 = #{record.daynhwhssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhxdssdl2 != null">
+        dayNHXDSSDL2 = #{record.daynhxdssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhqfdl2 != null">
+        dayNHQFDL2 = #{record.daynhqfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhcfdl2 != null">
+        dayNHCFDL2 = #{record.daynhcfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhpcl2 != null">
+        dayNHPCL2 = #{record.daynhpcl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzgl != null">
+        dayBZGL = #{record.daybzgl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzdl != null">
+        dayBZDL = #{record.daybzdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzgzssdl != null">
+        dayBZGZSSDL = #{record.daybzgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzwhssdl != null">
+        dayBZWHSSDL = #{record.daybzwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzxdssdl != null">
+        dayBZXDSSDL = #{record.daybzxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzqfdl != null">
+        dayBZQFDL = #{record.daybzqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzcfdl != null">
+        dayBZCFDL = #{record.daybzcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzpcl != null">
+        dayBZPCL = #{record.daybzpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllgl != null">
+        dayLLGL = #{record.dayllgl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daylldl != null">
+        dayLLDL = #{record.daylldl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllgzssdl != null">
+        dayLLGZSSDL = #{record.dayllgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllwhssdl != null">
+        dayLLWHSSDL = #{record.dayllwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllxdssdl != null">
+        dayLLXDSSDL = #{record.dayllxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllqfdl != null">
+        dayLLQFDL = #{record.dayllqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllcfdl != null">
+        dayLLCFDL = #{record.dayllcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllpcl != null">
+        dayLLPCL = #{record.dayllpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.recorddate != null">
+        recordDate = #{record.recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.foreignkeyid != null">
+        foreignkeyId = #{record.foreignkeyid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.location != null">
+        location = #{record.location,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 windpowerinfoday3
+    set id = #{record.id,jdbcType=INTEGER},
+      windPowerStationId = #{record.windpowerstationid,jdbcType=VARCHAR},
+      projectId = #{record.projectid,jdbcType=VARCHAR},
+      lineId = #{record.lineid,jdbcType=VARCHAR},
+      windTurbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      dayDL1 = #{record.daydl1,jdbcType=DECIMAL},
+      dayDL2 = #{record.daydl2,jdbcType=DECIMAL},
+      dayPower = #{record.daypower,jdbcType=DECIMAL},
+      daySpeed = #{record.dayspeed,jdbcType=DECIMAL},
+      dayMaxPower = #{record.daymaxpower,jdbcType=DECIMAL},
+      dayMinPower = #{record.dayminpower,jdbcType=DECIMAL},
+      dayMaxSpeed = #{record.daymaxspeed,jdbcType=DECIMAL},
+      dayMinSpeed = #{record.dayminspeed,jdbcType=DECIMAL},
+      dayNHGL = #{record.daynhgl,jdbcType=DECIMAL},
+      dayNHDL = #{record.daynhdl,jdbcType=DECIMAL},
+      dayNHGZSSDL = #{record.daynhgzssdl,jdbcType=DECIMAL},
+      dayNHWHSSDL = #{record.daynhwhssdl,jdbcType=DECIMAL},
+      dayNHXDSSDL = #{record.daynhxdssdl,jdbcType=DECIMAL},
+      dayNHQFDL = #{record.daynhqfdl,jdbcType=DECIMAL},
+      dayNHCFDL = #{record.daynhcfdl,jdbcType=DECIMAL},
+      dayNHPCL = #{record.daynhpcl,jdbcType=DECIMAL},
+      dayNHGL2 = #{record.daynhgl2,jdbcType=DECIMAL},
+      dayNHDL2 = #{record.daynhdl2,jdbcType=DECIMAL},
+      dayNHGZSSDL2 = #{record.daynhgzssdl2,jdbcType=DECIMAL},
+      dayNHWHSSDL2 = #{record.daynhwhssdl2,jdbcType=DECIMAL},
+      dayNHXDSSDL2 = #{record.daynhxdssdl2,jdbcType=DECIMAL},
+      dayNHQFDL2 = #{record.daynhqfdl2,jdbcType=DECIMAL},
+      dayNHCFDL2 = #{record.daynhcfdl2,jdbcType=DECIMAL},
+      dayNHPCL2 = #{record.daynhpcl2,jdbcType=DECIMAL},
+      dayBZGL = #{record.daybzgl,jdbcType=DECIMAL},
+      dayBZDL = #{record.daybzdl,jdbcType=DECIMAL},
+      dayBZGZSSDL = #{record.daybzgzssdl,jdbcType=DECIMAL},
+      dayBZWHSSDL = #{record.daybzwhssdl,jdbcType=DECIMAL},
+      dayBZXDSSDL = #{record.daybzxdssdl,jdbcType=DECIMAL},
+      dayBZQFDL = #{record.daybzqfdl,jdbcType=DECIMAL},
+      dayBZCFDL = #{record.daybzcfdl,jdbcType=DECIMAL},
+      dayBZPCL = #{record.daybzpcl,jdbcType=DECIMAL},
+      dayLLGL = #{record.dayllgl,jdbcType=DECIMAL},
+      dayLLDL = #{record.daylldl,jdbcType=DECIMAL},
+      dayLLGZSSDL = #{record.dayllgzssdl,jdbcType=DECIMAL},
+      dayLLWHSSDL = #{record.dayllwhssdl,jdbcType=DECIMAL},
+      dayLLXDSSDL = #{record.dayllxdssdl,jdbcType=DECIMAL},
+      dayLLQFDL = #{record.dayllqfdl,jdbcType=DECIMAL},
+      dayLLCFDL = #{record.dayllcfdl,jdbcType=DECIMAL},
+      dayLLPCL = #{record.dayllpcl,jdbcType=DECIMAL},
+      recordDate = #{record.recorddate,jdbcType=TIMESTAMP},
+      foreignkeyId = #{record.foreignkeyid,jdbcType=VARCHAR},
+      location = #{record.location,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windpowerinfoday3
+    <set>
+      <if test="windpowerstationid != null">
+        windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        projectId = #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        lineId = #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="windturbineid != null">
+        windTurbineId = #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daydl1 != null">
+        dayDL1 = #{daydl1,jdbcType=DECIMAL},
+      </if>
+      <if test="daydl2 != null">
+        dayDL2 = #{daydl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daypower != null">
+        dayPower = #{daypower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayspeed != null">
+        daySpeed = #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxpower != null">
+        dayMaxPower = #{daymaxpower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminpower != null">
+        dayMinPower = #{dayminpower,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxspeed != null">
+        dayMaxSpeed = #{daymaxspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminspeed != null">
+        dayMinSpeed = #{dayminspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl != null">
+        dayNHGL = #{daynhgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl != null">
+        dayNHDL = #{daynhdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl != null">
+        dayNHGZSSDL = #{daynhgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl != null">
+        dayNHWHSSDL = #{daynhwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl != null">
+        dayNHXDSSDL = #{daynhxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl != null">
+        dayNHQFDL = #{daynhqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl != null">
+        dayNHCFDL = #{daynhcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl != null">
+        dayNHPCL = #{daynhpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl2 != null">
+        dayNHGL2 = #{daynhgl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl2 != null">
+        dayNHDL2 = #{daynhdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl2 != null">
+        dayNHGZSSDL2 = #{daynhgzssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl2 != null">
+        dayNHWHSSDL2 = #{daynhwhssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl2 != null">
+        dayNHXDSSDL2 = #{daynhxdssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl2 != null">
+        dayNHQFDL2 = #{daynhqfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl2 != null">
+        dayNHCFDL2 = #{daynhcfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl2 != null">
+        dayNHPCL2 = #{daynhpcl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgl != null">
+        dayBZGL = #{daybzgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzdl != null">
+        dayBZDL = #{daybzdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgzssdl != null">
+        dayBZGZSSDL = #{daybzgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzwhssdl != null">
+        dayBZWHSSDL = #{daybzwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzxdssdl != null">
+        dayBZXDSSDL = #{daybzxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzqfdl != null">
+        dayBZQFDL = #{daybzqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzcfdl != null">
+        dayBZCFDL = #{daybzcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzpcl != null">
+        dayBZPCL = #{daybzpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgl != null">
+        dayLLGL = #{dayllgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daylldl != null">
+        dayLLDL = #{daylldl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgzssdl != null">
+        dayLLGZSSDL = #{dayllgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllwhssdl != null">
+        dayLLWHSSDL = #{dayllwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllxdssdl != null">
+        dayLLXDSSDL = #{dayllxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllqfdl != null">
+        dayLLQFDL = #{dayllqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllcfdl != null">
+        dayLLCFDL = #{dayllcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllpcl != null">
+        dayLLPCL = #{dayllpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        recordDate = #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="foreignkeyid != null">
+        foreignkeyId = #{foreignkeyid,jdbcType=VARCHAR},
+      </if>
+      <if test="location != null">
+        location = #{location,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Windpowerinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windpowerinfoday3
+    set windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
+      projectId = #{projectid,jdbcType=VARCHAR},
+      lineId = #{lineid,jdbcType=VARCHAR},
+      windTurbineId = #{windturbineid,jdbcType=VARCHAR},
+      dayDL1 = #{daydl1,jdbcType=DECIMAL},
+      dayDL2 = #{daydl2,jdbcType=DECIMAL},
+      dayPower = #{daypower,jdbcType=DECIMAL},
+      daySpeed = #{dayspeed,jdbcType=DECIMAL},
+      dayMaxPower = #{daymaxpower,jdbcType=DECIMAL},
+      dayMinPower = #{dayminpower,jdbcType=DECIMAL},
+      dayMaxSpeed = #{daymaxspeed,jdbcType=DECIMAL},
+      dayMinSpeed = #{dayminspeed,jdbcType=DECIMAL},
+      dayNHGL = #{daynhgl,jdbcType=DECIMAL},
+      dayNHDL = #{daynhdl,jdbcType=DECIMAL},
+      dayNHGZSSDL = #{daynhgzssdl,jdbcType=DECIMAL},
+      dayNHWHSSDL = #{daynhwhssdl,jdbcType=DECIMAL},
+      dayNHXDSSDL = #{daynhxdssdl,jdbcType=DECIMAL},
+      dayNHQFDL = #{daynhqfdl,jdbcType=DECIMAL},
+      dayNHCFDL = #{daynhcfdl,jdbcType=DECIMAL},
+      dayNHPCL = #{daynhpcl,jdbcType=DECIMAL},
+      dayNHGL2 = #{daynhgl2,jdbcType=DECIMAL},
+      dayNHDL2 = #{daynhdl2,jdbcType=DECIMAL},
+      dayNHGZSSDL2 = #{daynhgzssdl2,jdbcType=DECIMAL},
+      dayNHWHSSDL2 = #{daynhwhssdl2,jdbcType=DECIMAL},
+      dayNHXDSSDL2 = #{daynhxdssdl2,jdbcType=DECIMAL},
+      dayNHQFDL2 = #{daynhqfdl2,jdbcType=DECIMAL},
+      dayNHCFDL2 = #{daynhcfdl2,jdbcType=DECIMAL},
+      dayNHPCL2 = #{daynhpcl2,jdbcType=DECIMAL},
+      dayBZGL = #{daybzgl,jdbcType=DECIMAL},
+      dayBZDL = #{daybzdl,jdbcType=DECIMAL},
+      dayBZGZSSDL = #{daybzgzssdl,jdbcType=DECIMAL},
+      dayBZWHSSDL = #{daybzwhssdl,jdbcType=DECIMAL},
+      dayBZXDSSDL = #{daybzxdssdl,jdbcType=DECIMAL},
+      dayBZQFDL = #{daybzqfdl,jdbcType=DECIMAL},
+      dayBZCFDL = #{daybzcfdl,jdbcType=DECIMAL},
+      dayBZPCL = #{daybzpcl,jdbcType=DECIMAL},
+      dayLLGL = #{dayllgl,jdbcType=DECIMAL},
+      dayLLDL = #{daylldl,jdbcType=DECIMAL},
+      dayLLGZSSDL = #{dayllgzssdl,jdbcType=DECIMAL},
+      dayLLWHSSDL = #{dayllwhssdl,jdbcType=DECIMAL},
+      dayLLXDSSDL = #{dayllxdssdl,jdbcType=DECIMAL},
+      dayLLQFDL = #{dayllqfdl,jdbcType=DECIMAL},
+      dayLLCFDL = #{dayllcfdl,jdbcType=DECIMAL},
+      dayLLPCL = #{dayllpcl,jdbcType=DECIMAL},
+      recordDate = #{recorddate,jdbcType=TIMESTAMP},
+      foreignkeyId = #{foreignkeyid,jdbcType=VARCHAR},
+      location = #{location,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 919 - 0
src/main/resources/mybatis/auto/Windturbineinfoday3Mapper.xml

@@ -0,0 +1,919 @@
+<?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.Windturbineinfoday3Mapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Windturbineinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="windPowerStationId" jdbcType="VARCHAR" property="windpowerstationid" />
+    <result column="projectId" jdbcType="VARCHAR" property="projectid" />
+    <result column="lineId" jdbcType="VARCHAR" property="lineid" />
+    <result column="windTurbineId" jdbcType="VARCHAR" property="windturbineid" />
+    <result column="dayDL1" jdbcType="DECIMAL" property="daydl1" />
+    <result column="dayDL2" jdbcType="DECIMAL" property="daydl2" />
+    <result column="dayPower" jdbcType="DECIMAL" property="daypower" />
+    <result column="daySpeed" jdbcType="DECIMAL" property="dayspeed" />
+    <result column="dayMaxPower" jdbcType="DECIMAL" property="daymaxpower" />
+    <result column="dayMinPower" jdbcType="DECIMAL" property="dayminpower" />
+    <result column="dayMaxSpeed" jdbcType="DECIMAL" property="daymaxspeed" />
+    <result column="dayMinSpeed" jdbcType="DECIMAL" property="dayminspeed" />
+    <result column="dayNHGL" jdbcType="DECIMAL" property="daynhgl" />
+    <result column="dayNHDL" jdbcType="DECIMAL" property="daynhdl" />
+    <result column="dayNHGZSSDL" jdbcType="DECIMAL" property="daynhgzssdl" />
+    <result column="dayNHWHSSDL" jdbcType="DECIMAL" property="daynhwhssdl" />
+    <result column="dayNHXDSSDL" jdbcType="DECIMAL" property="daynhxdssdl" />
+    <result column="dayNHQFDL" jdbcType="DECIMAL" property="daynhqfdl" />
+    <result column="dayNHCFDL" jdbcType="DECIMAL" property="daynhcfdl" />
+    <result column="dayNHPCL" jdbcType="DECIMAL" property="daynhpcl" />
+    <result column="dayNHGL2" jdbcType="DECIMAL" property="daynhgl2" />
+    <result column="dayNHDL2" jdbcType="DECIMAL" property="daynhdl2" />
+    <result column="dayNHGZSSDL2" jdbcType="DECIMAL" property="daynhgzssdl2" />
+    <result column="dayNHWHSSDL2" jdbcType="DECIMAL" property="daynhwhssdl2" />
+    <result column="dayNHXDSSDL2" jdbcType="DECIMAL" property="daynhxdssdl2" />
+    <result column="dayNHQFDL2" jdbcType="DECIMAL" property="daynhqfdl2" />
+    <result column="dayNHCFDL2" jdbcType="DECIMAL" property="daynhcfdl2" />
+    <result column="dayNHPCL2" jdbcType="DECIMAL" property="daynhpcl2" />
+    <result column="dayBZGL" jdbcType="DECIMAL" property="daybzgl" />
+    <result column="dayBZDL" jdbcType="DECIMAL" property="daybzdl" />
+    <result column="dayBZGZSSDL" jdbcType="DECIMAL" property="daybzgzssdl" />
+    <result column="dayBZWHSSDL" jdbcType="DECIMAL" property="daybzwhssdl" />
+    <result column="dayBZXDSSDL" jdbcType="DECIMAL" property="daybzxdssdl" />
+    <result column="dayBZQFDL" jdbcType="DECIMAL" property="daybzqfdl" />
+    <result column="dayBZCFDL" jdbcType="DECIMAL" property="daybzcfdl" />
+    <result column="dayBZPCL" jdbcType="DECIMAL" property="daybzpcl" />
+    <result column="dayLLGL" jdbcType="DECIMAL" property="dayllgl" />
+    <result column="dayLLDL" jdbcType="DECIMAL" property="daylldl" />
+    <result column="dayLLGZSSDL" jdbcType="DECIMAL" property="dayllgzssdl" />
+    <result column="dayLLWHSSDL" jdbcType="DECIMAL" property="dayllwhssdl" />
+    <result column="dayLLXDSSDL" jdbcType="DECIMAL" property="dayllxdssdl" />
+    <result column="dayLLQFDL" jdbcType="DECIMAL" property="dayllqfdl" />
+    <result column="dayLLCFDL" jdbcType="DECIMAL" property="dayllcfdl" />
+    <result column="dayLLPCL" jdbcType="DECIMAL" property="dayllpcl" />
+    <result column="recordDate" jdbcType="TIMESTAMP" property="recorddate" />
+  </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, windPowerStationId, projectId, lineId, windTurbineId, dayDL1, dayDL2, dayPower, 
+    daySpeed, dayMaxPower, dayMinPower, dayMaxSpeed, dayMinSpeed, dayNHGL, dayNHDL, dayNHGZSSDL, 
+    dayNHWHSSDL, dayNHXDSSDL, dayNHQFDL, dayNHCFDL, dayNHPCL, dayNHGL2, dayNHDL2, dayNHGZSSDL2, 
+    dayNHWHSSDL2, dayNHXDSSDL2, dayNHQFDL2, dayNHCFDL2, dayNHPCL2, dayBZGL, dayBZDL, 
+    dayBZGZSSDL, dayBZWHSSDL, dayBZXDSSDL, dayBZQFDL, dayBZCFDL, dayBZPCL, dayLLGL, dayLLDL, 
+    dayLLGZSSDL, dayLLWHSSDL, dayLLXDSSDL, dayLLQFDL, dayLLCFDL, dayLLPCL, recordDate
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3Example" 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 windturbineinfoday3
+    <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.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from windturbineinfoday3
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windturbineinfoday3
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3Example">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windturbineinfoday3
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windturbineinfoday3 (id, windPowerStationId, projectId, 
+      lineId, windTurbineId, dayDL1, 
+      dayDL2, dayPower, daySpeed, 
+      dayMaxPower, dayMinPower, dayMaxSpeed, 
+      dayMinSpeed, dayNHGL, dayNHDL, 
+      dayNHGZSSDL, dayNHWHSSDL, dayNHXDSSDL, 
+      dayNHQFDL, dayNHCFDL, dayNHPCL, 
+      dayNHGL2, dayNHDL2, dayNHGZSSDL2, 
+      dayNHWHSSDL2, dayNHXDSSDL2, dayNHQFDL2, 
+      dayNHCFDL2, dayNHPCL2, dayBZGL, 
+      dayBZDL, dayBZGZSSDL, dayBZWHSSDL, 
+      dayBZXDSSDL, dayBZQFDL, dayBZCFDL, 
+      dayBZPCL, dayLLGL, dayLLDL, 
+      dayLLGZSSDL, dayLLWHSSDL, dayLLXDSSDL, 
+      dayLLQFDL, dayLLCFDL, dayLLPCL, 
+      recordDate)
+    values (#{id,jdbcType=INTEGER}, #{windpowerstationid,jdbcType=VARCHAR}, #{projectid,jdbcType=VARCHAR}, 
+      #{lineid,jdbcType=VARCHAR}, #{windturbineid,jdbcType=VARCHAR}, #{daydl1,jdbcType=DECIMAL}, 
+      #{daydl2,jdbcType=DECIMAL}, #{daypower,jdbcType=DECIMAL}, #{dayspeed,jdbcType=DECIMAL}, 
+      #{daymaxpower,jdbcType=DECIMAL}, #{dayminpower,jdbcType=DECIMAL}, #{daymaxspeed,jdbcType=DECIMAL}, 
+      #{dayminspeed,jdbcType=DECIMAL}, #{daynhgl,jdbcType=DECIMAL}, #{daynhdl,jdbcType=DECIMAL}, 
+      #{daynhgzssdl,jdbcType=DECIMAL}, #{daynhwhssdl,jdbcType=DECIMAL}, #{daynhxdssdl,jdbcType=DECIMAL}, 
+      #{daynhqfdl,jdbcType=DECIMAL}, #{daynhcfdl,jdbcType=DECIMAL}, #{daynhpcl,jdbcType=DECIMAL}, 
+      #{daynhgl2,jdbcType=DECIMAL}, #{daynhdl2,jdbcType=DECIMAL}, #{daynhgzssdl2,jdbcType=DECIMAL}, 
+      #{daynhwhssdl2,jdbcType=DECIMAL}, #{daynhxdssdl2,jdbcType=DECIMAL}, #{daynhqfdl2,jdbcType=DECIMAL}, 
+      #{daynhcfdl2,jdbcType=DECIMAL}, #{daynhpcl2,jdbcType=DECIMAL}, #{daybzgl,jdbcType=DECIMAL}, 
+      #{daybzdl,jdbcType=DECIMAL}, #{daybzgzssdl,jdbcType=DECIMAL}, #{daybzwhssdl,jdbcType=DECIMAL}, 
+      #{daybzxdssdl,jdbcType=DECIMAL}, #{daybzqfdl,jdbcType=DECIMAL}, #{daybzcfdl,jdbcType=DECIMAL}, 
+      #{daybzpcl,jdbcType=DECIMAL}, #{dayllgl,jdbcType=DECIMAL}, #{daylldl,jdbcType=DECIMAL}, 
+      #{dayllgzssdl,jdbcType=DECIMAL}, #{dayllwhssdl,jdbcType=DECIMAL}, #{dayllxdssdl,jdbcType=DECIMAL}, 
+      #{dayllqfdl,jdbcType=DECIMAL}, #{dayllcfdl,jdbcType=DECIMAL}, #{dayllpcl,jdbcType=DECIMAL}, 
+      #{recorddate,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windturbineinfoday3
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="windpowerstationid != null">
+        windPowerStationId,
+      </if>
+      <if test="projectid != null">
+        projectId,
+      </if>
+      <if test="lineid != null">
+        lineId,
+      </if>
+      <if test="windturbineid != null">
+        windTurbineId,
+      </if>
+      <if test="daydl1 != null">
+        dayDL1,
+      </if>
+      <if test="daydl2 != null">
+        dayDL2,
+      </if>
+      <if test="daypower != null">
+        dayPower,
+      </if>
+      <if test="dayspeed != null">
+        daySpeed,
+      </if>
+      <if test="daymaxpower != null">
+        dayMaxPower,
+      </if>
+      <if test="dayminpower != null">
+        dayMinPower,
+      </if>
+      <if test="daymaxspeed != null">
+        dayMaxSpeed,
+      </if>
+      <if test="dayminspeed != null">
+        dayMinSpeed,
+      </if>
+      <if test="daynhgl != null">
+        dayNHGL,
+      </if>
+      <if test="daynhdl != null">
+        dayNHDL,
+      </if>
+      <if test="daynhgzssdl != null">
+        dayNHGZSSDL,
+      </if>
+      <if test="daynhwhssdl != null">
+        dayNHWHSSDL,
+      </if>
+      <if test="daynhxdssdl != null">
+        dayNHXDSSDL,
+      </if>
+      <if test="daynhqfdl != null">
+        dayNHQFDL,
+      </if>
+      <if test="daynhcfdl != null">
+        dayNHCFDL,
+      </if>
+      <if test="daynhpcl != null">
+        dayNHPCL,
+      </if>
+      <if test="daynhgl2 != null">
+        dayNHGL2,
+      </if>
+      <if test="daynhdl2 != null">
+        dayNHDL2,
+      </if>
+      <if test="daynhgzssdl2 != null">
+        dayNHGZSSDL2,
+      </if>
+      <if test="daynhwhssdl2 != null">
+        dayNHWHSSDL2,
+      </if>
+      <if test="daynhxdssdl2 != null">
+        dayNHXDSSDL2,
+      </if>
+      <if test="daynhqfdl2 != null">
+        dayNHQFDL2,
+      </if>
+      <if test="daynhcfdl2 != null">
+        dayNHCFDL2,
+      </if>
+      <if test="daynhpcl2 != null">
+        dayNHPCL2,
+      </if>
+      <if test="daybzgl != null">
+        dayBZGL,
+      </if>
+      <if test="daybzdl != null">
+        dayBZDL,
+      </if>
+      <if test="daybzgzssdl != null">
+        dayBZGZSSDL,
+      </if>
+      <if test="daybzwhssdl != null">
+        dayBZWHSSDL,
+      </if>
+      <if test="daybzxdssdl != null">
+        dayBZXDSSDL,
+      </if>
+      <if test="daybzqfdl != null">
+        dayBZQFDL,
+      </if>
+      <if test="daybzcfdl != null">
+        dayBZCFDL,
+      </if>
+      <if test="daybzpcl != null">
+        dayBZPCL,
+      </if>
+      <if test="dayllgl != null">
+        dayLLGL,
+      </if>
+      <if test="daylldl != null">
+        dayLLDL,
+      </if>
+      <if test="dayllgzssdl != null">
+        dayLLGZSSDL,
+      </if>
+      <if test="dayllwhssdl != null">
+        dayLLWHSSDL,
+      </if>
+      <if test="dayllxdssdl != null">
+        dayLLXDSSDL,
+      </if>
+      <if test="dayllqfdl != null">
+        dayLLQFDL,
+      </if>
+      <if test="dayllcfdl != null">
+        dayLLCFDL,
+      </if>
+      <if test="dayllpcl != null">
+        dayLLPCL,
+      </if>
+      <if test="recorddate != null">
+        recordDate,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="windpowerstationid != null">
+        #{windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="windturbineid != null">
+        #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daydl1 != null">
+        #{daydl1,jdbcType=DECIMAL},
+      </if>
+      <if test="daydl2 != null">
+        #{daydl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daypower != null">
+        #{daypower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayspeed != null">
+        #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxpower != null">
+        #{daymaxpower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminpower != null">
+        #{dayminpower,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxspeed != null">
+        #{daymaxspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminspeed != null">
+        #{dayminspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl != null">
+        #{daynhgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl != null">
+        #{daynhdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl != null">
+        #{daynhgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl != null">
+        #{daynhwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl != null">
+        #{daynhxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl != null">
+        #{daynhqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl != null">
+        #{daynhcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl != null">
+        #{daynhpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl2 != null">
+        #{daynhgl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl2 != null">
+        #{daynhdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl2 != null">
+        #{daynhgzssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl2 != null">
+        #{daynhwhssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl2 != null">
+        #{daynhxdssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl2 != null">
+        #{daynhqfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl2 != null">
+        #{daynhcfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl2 != null">
+        #{daynhpcl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgl != null">
+        #{daybzgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzdl != null">
+        #{daybzdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgzssdl != null">
+        #{daybzgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzwhssdl != null">
+        #{daybzwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzxdssdl != null">
+        #{daybzxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzqfdl != null">
+        #{daybzqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzcfdl != null">
+        #{daybzcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzpcl != null">
+        #{daybzpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgl != null">
+        #{dayllgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daylldl != null">
+        #{daylldl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgzssdl != null">
+        #{dayllgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllwhssdl != null">
+        #{dayllwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllxdssdl != null">
+        #{dayllxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllqfdl != null">
+        #{dayllqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllcfdl != null">
+        #{dayllcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllpcl != null">
+        #{dayllpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3Example" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from windturbineinfoday3
+    <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 windturbineinfoday3
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.windpowerstationid != null">
+        windPowerStationId = #{record.windpowerstationid,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.windturbineid != null">
+        windTurbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.daydl1 != null">
+        dayDL1 = #{record.daydl1,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daydl2 != null">
+        dayDL2 = #{record.daydl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daypower != null">
+        dayPower = #{record.daypower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayspeed != null">
+        daySpeed = #{record.dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daymaxpower != null">
+        dayMaxPower = #{record.daymaxpower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayminpower != null">
+        dayMinPower = #{record.dayminpower,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daymaxspeed != null">
+        dayMaxSpeed = #{record.daymaxspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayminspeed != null">
+        dayMinSpeed = #{record.dayminspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgl != null">
+        dayNHGL = #{record.daynhgl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhdl != null">
+        dayNHDL = #{record.daynhdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgzssdl != null">
+        dayNHGZSSDL = #{record.daynhgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhwhssdl != null">
+        dayNHWHSSDL = #{record.daynhwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhxdssdl != null">
+        dayNHXDSSDL = #{record.daynhxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhqfdl != null">
+        dayNHQFDL = #{record.daynhqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhcfdl != null">
+        dayNHCFDL = #{record.daynhcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhpcl != null">
+        dayNHPCL = #{record.daynhpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgl2 != null">
+        dayNHGL2 = #{record.daynhgl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhdl2 != null">
+        dayNHDL2 = #{record.daynhdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhgzssdl2 != null">
+        dayNHGZSSDL2 = #{record.daynhgzssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhwhssdl2 != null">
+        dayNHWHSSDL2 = #{record.daynhwhssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhxdssdl2 != null">
+        dayNHXDSSDL2 = #{record.daynhxdssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhqfdl2 != null">
+        dayNHQFDL2 = #{record.daynhqfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhcfdl2 != null">
+        dayNHCFDL2 = #{record.daynhcfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daynhpcl2 != null">
+        dayNHPCL2 = #{record.daynhpcl2,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzgl != null">
+        dayBZGL = #{record.daybzgl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzdl != null">
+        dayBZDL = #{record.daybzdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzgzssdl != null">
+        dayBZGZSSDL = #{record.daybzgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzwhssdl != null">
+        dayBZWHSSDL = #{record.daybzwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzxdssdl != null">
+        dayBZXDSSDL = #{record.daybzxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzqfdl != null">
+        dayBZQFDL = #{record.daybzqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzcfdl != null">
+        dayBZCFDL = #{record.daybzcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daybzpcl != null">
+        dayBZPCL = #{record.daybzpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllgl != null">
+        dayLLGL = #{record.dayllgl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.daylldl != null">
+        dayLLDL = #{record.daylldl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllgzssdl != null">
+        dayLLGZSSDL = #{record.dayllgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllwhssdl != null">
+        dayLLWHSSDL = #{record.dayllwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllxdssdl != null">
+        dayLLXDSSDL = #{record.dayllxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllqfdl != null">
+        dayLLQFDL = #{record.dayllqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllcfdl != null">
+        dayLLCFDL = #{record.dayllcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.dayllpcl != null">
+        dayLLPCL = #{record.dayllpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="record.recorddate != null">
+        recordDate = #{record.recorddate,jdbcType=TIMESTAMP},
+      </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 windturbineinfoday3
+    set id = #{record.id,jdbcType=INTEGER},
+      windPowerStationId = #{record.windpowerstationid,jdbcType=VARCHAR},
+      projectId = #{record.projectid,jdbcType=VARCHAR},
+      lineId = #{record.lineid,jdbcType=VARCHAR},
+      windTurbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      dayDL1 = #{record.daydl1,jdbcType=DECIMAL},
+      dayDL2 = #{record.daydl2,jdbcType=DECIMAL},
+      dayPower = #{record.daypower,jdbcType=DECIMAL},
+      daySpeed = #{record.dayspeed,jdbcType=DECIMAL},
+      dayMaxPower = #{record.daymaxpower,jdbcType=DECIMAL},
+      dayMinPower = #{record.dayminpower,jdbcType=DECIMAL},
+      dayMaxSpeed = #{record.daymaxspeed,jdbcType=DECIMAL},
+      dayMinSpeed = #{record.dayminspeed,jdbcType=DECIMAL},
+      dayNHGL = #{record.daynhgl,jdbcType=DECIMAL},
+      dayNHDL = #{record.daynhdl,jdbcType=DECIMAL},
+      dayNHGZSSDL = #{record.daynhgzssdl,jdbcType=DECIMAL},
+      dayNHWHSSDL = #{record.daynhwhssdl,jdbcType=DECIMAL},
+      dayNHXDSSDL = #{record.daynhxdssdl,jdbcType=DECIMAL},
+      dayNHQFDL = #{record.daynhqfdl,jdbcType=DECIMAL},
+      dayNHCFDL = #{record.daynhcfdl,jdbcType=DECIMAL},
+      dayNHPCL = #{record.daynhpcl,jdbcType=DECIMAL},
+      dayNHGL2 = #{record.daynhgl2,jdbcType=DECIMAL},
+      dayNHDL2 = #{record.daynhdl2,jdbcType=DECIMAL},
+      dayNHGZSSDL2 = #{record.daynhgzssdl2,jdbcType=DECIMAL},
+      dayNHWHSSDL2 = #{record.daynhwhssdl2,jdbcType=DECIMAL},
+      dayNHXDSSDL2 = #{record.daynhxdssdl2,jdbcType=DECIMAL},
+      dayNHQFDL2 = #{record.daynhqfdl2,jdbcType=DECIMAL},
+      dayNHCFDL2 = #{record.daynhcfdl2,jdbcType=DECIMAL},
+      dayNHPCL2 = #{record.daynhpcl2,jdbcType=DECIMAL},
+      dayBZGL = #{record.daybzgl,jdbcType=DECIMAL},
+      dayBZDL = #{record.daybzdl,jdbcType=DECIMAL},
+      dayBZGZSSDL = #{record.daybzgzssdl,jdbcType=DECIMAL},
+      dayBZWHSSDL = #{record.daybzwhssdl,jdbcType=DECIMAL},
+      dayBZXDSSDL = #{record.daybzxdssdl,jdbcType=DECIMAL},
+      dayBZQFDL = #{record.daybzqfdl,jdbcType=DECIMAL},
+      dayBZCFDL = #{record.daybzcfdl,jdbcType=DECIMAL},
+      dayBZPCL = #{record.daybzpcl,jdbcType=DECIMAL},
+      dayLLGL = #{record.dayllgl,jdbcType=DECIMAL},
+      dayLLDL = #{record.daylldl,jdbcType=DECIMAL},
+      dayLLGZSSDL = #{record.dayllgzssdl,jdbcType=DECIMAL},
+      dayLLWHSSDL = #{record.dayllwhssdl,jdbcType=DECIMAL},
+      dayLLXDSSDL = #{record.dayllxdssdl,jdbcType=DECIMAL},
+      dayLLQFDL = #{record.dayllqfdl,jdbcType=DECIMAL},
+      dayLLCFDL = #{record.dayllcfdl,jdbcType=DECIMAL},
+      dayLLPCL = #{record.dayllpcl,jdbcType=DECIMAL},
+      recordDate = #{record.recorddate,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbineinfoday3
+    <set>
+      <if test="windpowerstationid != null">
+        windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="projectid != null">
+        projectId = #{projectid,jdbcType=VARCHAR},
+      </if>
+      <if test="lineid != null">
+        lineId = #{lineid,jdbcType=VARCHAR},
+      </if>
+      <if test="windturbineid != null">
+        windTurbineId = #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daydl1 != null">
+        dayDL1 = #{daydl1,jdbcType=DECIMAL},
+      </if>
+      <if test="daydl2 != null">
+        dayDL2 = #{daydl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daypower != null">
+        dayPower = #{daypower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayspeed != null">
+        daySpeed = #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxpower != null">
+        dayMaxPower = #{daymaxpower,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminpower != null">
+        dayMinPower = #{dayminpower,jdbcType=DECIMAL},
+      </if>
+      <if test="daymaxspeed != null">
+        dayMaxSpeed = #{daymaxspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="dayminspeed != null">
+        dayMinSpeed = #{dayminspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl != null">
+        dayNHGL = #{daynhgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl != null">
+        dayNHDL = #{daynhdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl != null">
+        dayNHGZSSDL = #{daynhgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl != null">
+        dayNHWHSSDL = #{daynhwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl != null">
+        dayNHXDSSDL = #{daynhxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl != null">
+        dayNHQFDL = #{daynhqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl != null">
+        dayNHCFDL = #{daynhcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl != null">
+        dayNHPCL = #{daynhpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgl2 != null">
+        dayNHGL2 = #{daynhgl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhdl2 != null">
+        dayNHDL2 = #{daynhdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhgzssdl2 != null">
+        dayNHGZSSDL2 = #{daynhgzssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhwhssdl2 != null">
+        dayNHWHSSDL2 = #{daynhwhssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhxdssdl2 != null">
+        dayNHXDSSDL2 = #{daynhxdssdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhqfdl2 != null">
+        dayNHQFDL2 = #{daynhqfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhcfdl2 != null">
+        dayNHCFDL2 = #{daynhcfdl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daynhpcl2 != null">
+        dayNHPCL2 = #{daynhpcl2,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgl != null">
+        dayBZGL = #{daybzgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzdl != null">
+        dayBZDL = #{daybzdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzgzssdl != null">
+        dayBZGZSSDL = #{daybzgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzwhssdl != null">
+        dayBZWHSSDL = #{daybzwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzxdssdl != null">
+        dayBZXDSSDL = #{daybzxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzqfdl != null">
+        dayBZQFDL = #{daybzqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzcfdl != null">
+        dayBZCFDL = #{daybzcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="daybzpcl != null">
+        dayBZPCL = #{daybzpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgl != null">
+        dayLLGL = #{dayllgl,jdbcType=DECIMAL},
+      </if>
+      <if test="daylldl != null">
+        dayLLDL = #{daylldl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllgzssdl != null">
+        dayLLGZSSDL = #{dayllgzssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllwhssdl != null">
+        dayLLWHSSDL = #{dayllwhssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllxdssdl != null">
+        dayLLXDSSDL = #{dayllxdssdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllqfdl != null">
+        dayLLQFDL = #{dayllqfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllcfdl != null">
+        dayLLCFDL = #{dayllcfdl,jdbcType=DECIMAL},
+      </if>
+      <if test="dayllpcl != null">
+        dayLLPCL = #{dayllpcl,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        recordDate = #{recorddate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Windturbineinfoday3">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbineinfoday3
+    set windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
+      projectId = #{projectid,jdbcType=VARCHAR},
+      lineId = #{lineid,jdbcType=VARCHAR},
+      windTurbineId = #{windturbineid,jdbcType=VARCHAR},
+      dayDL1 = #{daydl1,jdbcType=DECIMAL},
+      dayDL2 = #{daydl2,jdbcType=DECIMAL},
+      dayPower = #{daypower,jdbcType=DECIMAL},
+      daySpeed = #{dayspeed,jdbcType=DECIMAL},
+      dayMaxPower = #{daymaxpower,jdbcType=DECIMAL},
+      dayMinPower = #{dayminpower,jdbcType=DECIMAL},
+      dayMaxSpeed = #{daymaxspeed,jdbcType=DECIMAL},
+      dayMinSpeed = #{dayminspeed,jdbcType=DECIMAL},
+      dayNHGL = #{daynhgl,jdbcType=DECIMAL},
+      dayNHDL = #{daynhdl,jdbcType=DECIMAL},
+      dayNHGZSSDL = #{daynhgzssdl,jdbcType=DECIMAL},
+      dayNHWHSSDL = #{daynhwhssdl,jdbcType=DECIMAL},
+      dayNHXDSSDL = #{daynhxdssdl,jdbcType=DECIMAL},
+      dayNHQFDL = #{daynhqfdl,jdbcType=DECIMAL},
+      dayNHCFDL = #{daynhcfdl,jdbcType=DECIMAL},
+      dayNHPCL = #{daynhpcl,jdbcType=DECIMAL},
+      dayNHGL2 = #{daynhgl2,jdbcType=DECIMAL},
+      dayNHDL2 = #{daynhdl2,jdbcType=DECIMAL},
+      dayNHGZSSDL2 = #{daynhgzssdl2,jdbcType=DECIMAL},
+      dayNHWHSSDL2 = #{daynhwhssdl2,jdbcType=DECIMAL},
+      dayNHXDSSDL2 = #{daynhxdssdl2,jdbcType=DECIMAL},
+      dayNHQFDL2 = #{daynhqfdl2,jdbcType=DECIMAL},
+      dayNHCFDL2 = #{daynhcfdl2,jdbcType=DECIMAL},
+      dayNHPCL2 = #{daynhpcl2,jdbcType=DECIMAL},
+      dayBZGL = #{daybzgl,jdbcType=DECIMAL},
+      dayBZDL = #{daybzdl,jdbcType=DECIMAL},
+      dayBZGZSSDL = #{daybzgzssdl,jdbcType=DECIMAL},
+      dayBZWHSSDL = #{daybzwhssdl,jdbcType=DECIMAL},
+      dayBZXDSSDL = #{daybzxdssdl,jdbcType=DECIMAL},
+      dayBZQFDL = #{daybzqfdl,jdbcType=DECIMAL},
+      dayBZCFDL = #{daybzcfdl,jdbcType=DECIMAL},
+      dayBZPCL = #{daybzpcl,jdbcType=DECIMAL},
+      dayLLGL = #{dayllgl,jdbcType=DECIMAL},
+      dayLLDL = #{daylldl,jdbcType=DECIMAL},
+      dayLLGZSSDL = #{dayllgzssdl,jdbcType=DECIMAL},
+      dayLLWHSSDL = #{dayllwhssdl,jdbcType=DECIMAL},
+      dayLLXDSSDL = #{dayllxdssdl,jdbcType=DECIMAL},
+      dayLLQFDL = #{dayllqfdl,jdbcType=DECIMAL},
+      dayLLCFDL = #{dayllcfdl,jdbcType=DECIMAL},
+      dayLLPCL = #{dayllpcl,jdbcType=DECIMAL},
+      recordDate = #{recorddate,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 61 - 0
src/test/java/test/Windpowerinfoday3Test.java

@@ -0,0 +1,61 @@
+package test;
+
+import com.gyee.SpringbootStart;
+import com.gyee.frame.common.spring.SpringUtils;
+import com.gyee.frame.service.Windpowerinfoday3Service;
+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 Windpowerinfoday3Test {
+
+    @SneakyThrows
+    public static void main(String[] args) {
+
+        SpringApplication.run(SpringbootStart.class, args);
+
+
+        Calendar c = Calendar.getInstance();
+
+        c.set(Calendar.HOUR_OF_DAY, 0);
+        c.set(Calendar.MINUTE, 0);
+        c.set(Calendar.SECOND, 0);
+
+        c.set(Calendar.DAY_OF_MONTH,1);
+        c.set(Calendar.MONTH,0);
+        c.set(Calendar.YEAR,2021);
+
+        Date beginDate = c.getTime();
+
+       c.add(Calendar.DAY_OF_MONTH,1);
+
+        Date endDate = c.getTime();
+
+        String wpid="MHS_FDC";
+
+        Windpowerinfoday3Service windpowerinfoday3Service= SpringUtils.getBean("windpowerinfoday3Service");
+
+
+        Map<String, List<String>> map = windpowerinfoday3Service.getWindturbineinfoAllJson("MHS_FDC",beginDate,endDate,0);
+
+
+        for(String name:map.get("names"))
+        {
+            System.out.println(name);
+        }
+
+        for(String yfdl:map.get("yfdl"))
+        {
+            System.out.println(yfdl);
+        }
+        //System.out.println(test);
+    }
+
+
+
+
+}

+ 57 - 0
src/test/java/test/Windturbineinfoday3Test.java

@@ -0,0 +1,57 @@
+package test;
+
+import com.gyee.SpringbootStart;
+import com.gyee.frame.common.spring.SpringUtils;
+import com.gyee.frame.model.auto.Windturbineinfoday3;
+import com.gyee.frame.service.Windturbineinfoday3Service;
+import lombok.SneakyThrows;
+import org.springframework.boot.SpringApplication;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.List;
+
+public class Windturbineinfoday3Test {
+
+    @SneakyThrows
+    public static void main(String[] args) {
+
+        SpringApplication.run(SpringbootStart.class, args);
+
+
+        Calendar c = Calendar.getInstance();
+
+        c.set(Calendar.HOUR_OF_DAY, 0);
+        c.set(Calendar.MINUTE, 0);
+        c.set(Calendar.SECOND, 0);
+
+        c.set(Calendar.DAY_OF_MONTH,1);
+        c.set(Calendar.MONTH,0);
+        c.set(Calendar.YEAR,2021);
+
+        Date beginDate = c.getTime();
+
+        c.add(Calendar.DAY_OF_MONTH,1);
+
+        Date endDate = c.getTime();
+
+        String wpid="MHS_FDC";
+
+        Windturbineinfoday3Service windturbineinfoday3Service= SpringUtils.getBean("windturbineinfoday3Service");
+
+
+        List<Windturbineinfoday3> ls = windturbineinfoday3Service.getWindturbineinfo("MHS_FDC",
+                "MHS01_GC,MHS02_GC","MHS01_XL,MHS03_XL",beginDate,endDate,"recorddate","desc");
+
+
+        for(Windturbineinfoday3 wtd:ls)
+        {
+            System.out.println(wtd.getWtName()+"----------------"+wtd.getDaydl2()+"----------------"+wtd.getDaynhgzssdl());
+        }
+        //System.out.println(test);
+    }
+
+
+
+
+}