Browse Source

Merge remote-tracking branch 'origin/master'

shilin 4 years ago
parent
commit
fcc39321ea

+ 39 - 0
src/main/java/com/gyee/frame/controller/goodness/WindturbinegoodnessController.java

@@ -0,0 +1,39 @@
+package com.gyee.frame.controller.goodness;
+
+import com.gyee.frame.common.conf.AjaxStatus;
+import com.gyee.frame.common.domain.AjaxResult;
+import com.gyee.frame.model.auto.Windturbinegoodness;
+import com.gyee.frame.service.goodness.WindturbinegoodnessService;
+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.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @ClassName : WindturbinegoodnessController
+ * @Author : xieshengjie
+ * @Date: 2021/2/20 20:22
+ * @Description : 单机性能总览controller
+ */
+@Controller
+@RequestMapping("/goodness")
+public class WindturbinegoodnessController {
+    @Resource
+    private WindturbinegoodnessService windturbinegoodnessService;
+    @GetMapping("/windturbinegoodness")
+    @ResponseBody
+    public AjaxResult list(@RequestParam(value = "theday",required = false) String theday,
+                                              @RequestParam(value = "wpid",required = false) String wpid){
+
+        List<Windturbinegoodness>  resultList = windturbinegoodnessService.windturbinegoodnessList(theday,wpid);
+        if(resultList !=null && !resultList.isEmpty()){
+           return  AjaxResult.successData(AjaxStatus.success.code,resultList);
+        }else {
+            return	AjaxResult.successData(AjaxStatus.emptyresultset.code,resultList);
+        }
+    }
+}

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

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

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

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

+ 477 - 0
src/main/java/com/gyee/frame/model/auto/Windturbinegoodness.java

@@ -0,0 +1,477 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class Windturbinegoodness implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.id
+     *
+     * @mbg.generated
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.windturbineId
+     *
+     * @mbg.generated
+     */
+    private String windturbineid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.dayGoodness
+     *
+     * @mbg.generated
+     */
+    private BigDecimal daygoodness;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.monthGoodness
+     *
+     * @mbg.generated
+     */
+    private BigDecimal monthgoodness;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.yearGoodness
+     *
+     * @mbg.generated
+     */
+    private BigDecimal yeargoodness;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.recordDate
+     *
+     * @mbg.generated
+     */
+    private Date recorddate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.dayTop
+     *
+     * @mbg.generated
+     */
+    private Integer daytop;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.monthTop
+     *
+     * @mbg.generated
+     */
+    private Integer monthtop;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.yearTop
+     *
+     * @mbg.generated
+     */
+    private Integer yeartop;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.windtPowerStationId
+     *
+     * @mbg.generated
+     */
+    private String windtpowerstationid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.modelId
+     *
+     * @mbg.generated
+     */
+    private String modelid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.dayspeed
+     *
+     * @mbg.generated
+     */
+    private BigDecimal dayspeed;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.monthspeed
+     *
+     * @mbg.generated
+     */
+    private BigDecimal monthspeed;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.yearspeed
+     *
+     * @mbg.generated
+     */
+    private BigDecimal yearspeed;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table windturbinegoodness
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.id
+     *
+     * @return the value of windturbinegoodness.id
+     *
+     * @mbg.generated
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.id
+     *
+     * @param id the value for windturbinegoodness.id
+     *
+     * @mbg.generated
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.windturbineId
+     *
+     * @return the value of windturbinegoodness.windturbineId
+     *
+     * @mbg.generated
+     */
+    public String getWindturbineid() {
+        return windturbineid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.windturbineId
+     *
+     * @param windturbineid the value for windturbinegoodness.windturbineId
+     *
+     * @mbg.generated
+     */
+    public void setWindturbineid(String windturbineid) {
+        this.windturbineid = windturbineid == null ? null : windturbineid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.dayGoodness
+     *
+     * @return the value of windturbinegoodness.dayGoodness
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getDaygoodness() {
+        return daygoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.dayGoodness
+     *
+     * @param daygoodness the value for windturbinegoodness.dayGoodness
+     *
+     * @mbg.generated
+     */
+    public void setDaygoodness(BigDecimal daygoodness) {
+        this.daygoodness = daygoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.monthGoodness
+     *
+     * @return the value of windturbinegoodness.monthGoodness
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getMonthgoodness() {
+        return monthgoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.monthGoodness
+     *
+     * @param monthgoodness the value for windturbinegoodness.monthGoodness
+     *
+     * @mbg.generated
+     */
+    public void setMonthgoodness(BigDecimal monthgoodness) {
+        this.monthgoodness = monthgoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.yearGoodness
+     *
+     * @return the value of windturbinegoodness.yearGoodness
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getYeargoodness() {
+        return yeargoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.yearGoodness
+     *
+     * @param yeargoodness the value for windturbinegoodness.yearGoodness
+     *
+     * @mbg.generated
+     */
+    public void setYeargoodness(BigDecimal yeargoodness) {
+        this.yeargoodness = yeargoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.recordDate
+     *
+     * @return the value of windturbinegoodness.recordDate
+     *
+     * @mbg.generated
+     */
+    public Date getRecorddate() {
+        return recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.recordDate
+     *
+     * @param recorddate the value for windturbinegoodness.recordDate
+     *
+     * @mbg.generated
+     */
+    public void setRecorddate(Date recorddate) {
+        this.recorddate = recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.dayTop
+     *
+     * @return the value of windturbinegoodness.dayTop
+     *
+     * @mbg.generated
+     */
+    public Integer getDaytop() {
+        return daytop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.dayTop
+     *
+     * @param daytop the value for windturbinegoodness.dayTop
+     *
+     * @mbg.generated
+     */
+    public void setDaytop(Integer daytop) {
+        this.daytop = daytop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.monthTop
+     *
+     * @return the value of windturbinegoodness.monthTop
+     *
+     * @mbg.generated
+     */
+    public Integer getMonthtop() {
+        return monthtop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.monthTop
+     *
+     * @param monthtop the value for windturbinegoodness.monthTop
+     *
+     * @mbg.generated
+     */
+    public void setMonthtop(Integer monthtop) {
+        this.monthtop = monthtop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.yearTop
+     *
+     * @return the value of windturbinegoodness.yearTop
+     *
+     * @mbg.generated
+     */
+    public Integer getYeartop() {
+        return yeartop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.yearTop
+     *
+     * @param yeartop the value for windturbinegoodness.yearTop
+     *
+     * @mbg.generated
+     */
+    public void setYeartop(Integer yeartop) {
+        this.yeartop = yeartop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.windtPowerStationId
+     *
+     * @return the value of windturbinegoodness.windtPowerStationId
+     *
+     * @mbg.generated
+     */
+    public String getWindtpowerstationid() {
+        return windtpowerstationid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.windtPowerStationId
+     *
+     * @param windtpowerstationid the value for windturbinegoodness.windtPowerStationId
+     *
+     * @mbg.generated
+     */
+    public void setWindtpowerstationid(String windtpowerstationid) {
+        this.windtpowerstationid = windtpowerstationid == null ? null : windtpowerstationid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.modelId
+     *
+     * @return the value of windturbinegoodness.modelId
+     *
+     * @mbg.generated
+     */
+    public String getModelid() {
+        return modelid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.modelId
+     *
+     * @param modelid the value for windturbinegoodness.modelId
+     *
+     * @mbg.generated
+     */
+    public void setModelid(String modelid) {
+        this.modelid = modelid == null ? null : modelid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.dayspeed
+     *
+     * @return the value of windturbinegoodness.dayspeed
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getDayspeed() {
+        return dayspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.dayspeed
+     *
+     * @param dayspeed the value for windturbinegoodness.dayspeed
+     *
+     * @mbg.generated
+     */
+    public void setDayspeed(BigDecimal dayspeed) {
+        this.dayspeed = dayspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.monthspeed
+     *
+     * @return the value of windturbinegoodness.monthspeed
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getMonthspeed() {
+        return monthspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.monthspeed
+     *
+     * @param monthspeed the value for windturbinegoodness.monthspeed
+     *
+     * @mbg.generated
+     */
+    public void setMonthspeed(BigDecimal monthspeed) {
+        this.monthspeed = monthspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.yearspeed
+     *
+     * @return the value of windturbinegoodness.yearspeed
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getYearspeed() {
+        return yearspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.yearspeed
+     *
+     * @param yearspeed the value for windturbinegoodness.yearspeed
+     *
+     * @mbg.generated
+     */
+    public void setYearspeed(BigDecimal yearspeed) {
+        this.yearspeed = yearspeed;
+    }
+}

+ 477 - 0
src/main/java/com/gyee/frame/model/auto/Windturbinegoodness.java.1

@@ -0,0 +1,477 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class Windturbinegoodness implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.id
+     *
+     * @mbg.generated
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.windturbineId
+     *
+     * @mbg.generated
+     */
+    private String windturbineid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.dayGoodness
+     *
+     * @mbg.generated
+     */
+    private BigDecimal daygoodness;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.monthGoodness
+     *
+     * @mbg.generated
+     */
+    private BigDecimal monthgoodness;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.yearGoodness
+     *
+     * @mbg.generated
+     */
+    private BigDecimal yeargoodness;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.recordDate
+     *
+     * @mbg.generated
+     */
+    private Date recorddate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.dayTop
+     *
+     * @mbg.generated
+     */
+    private Integer daytop;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.monthTop
+     *
+     * @mbg.generated
+     */
+    private Integer monthtop;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.yearTop
+     *
+     * @mbg.generated
+     */
+    private Integer yeartop;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.windtPowerStationId
+     *
+     * @mbg.generated
+     */
+    private String windtpowerstationid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.modelId
+     *
+     * @mbg.generated
+     */
+    private String modelid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.dayspeed
+     *
+     * @mbg.generated
+     */
+    private BigDecimal dayspeed;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.monthspeed
+     *
+     * @mbg.generated
+     */
+    private BigDecimal monthspeed;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windturbinegoodness.yearspeed
+     *
+     * @mbg.generated
+     */
+    private BigDecimal yearspeed;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table windturbinegoodness
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.id
+     *
+     * @return the value of windturbinegoodness.id
+     *
+     * @mbg.generated
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.id
+     *
+     * @param id the value for windturbinegoodness.id
+     *
+     * @mbg.generated
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.windturbineId
+     *
+     * @return the value of windturbinegoodness.windturbineId
+     *
+     * @mbg.generated
+     */
+    public String getWindturbineid() {
+        return windturbineid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.windturbineId
+     *
+     * @param windturbineid the value for windturbinegoodness.windturbineId
+     *
+     * @mbg.generated
+     */
+    public void setWindturbineid(String windturbineid) {
+        this.windturbineid = windturbineid == null ? null : windturbineid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.dayGoodness
+     *
+     * @return the value of windturbinegoodness.dayGoodness
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getDaygoodness() {
+        return daygoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.dayGoodness
+     *
+     * @param daygoodness the value for windturbinegoodness.dayGoodness
+     *
+     * @mbg.generated
+     */
+    public void setDaygoodness(BigDecimal daygoodness) {
+        this.daygoodness = daygoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.monthGoodness
+     *
+     * @return the value of windturbinegoodness.monthGoodness
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getMonthgoodness() {
+        return monthgoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.monthGoodness
+     *
+     * @param monthgoodness the value for windturbinegoodness.monthGoodness
+     *
+     * @mbg.generated
+     */
+    public void setMonthgoodness(BigDecimal monthgoodness) {
+        this.monthgoodness = monthgoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.yearGoodness
+     *
+     * @return the value of windturbinegoodness.yearGoodness
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getYeargoodness() {
+        return yeargoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.yearGoodness
+     *
+     * @param yeargoodness the value for windturbinegoodness.yearGoodness
+     *
+     * @mbg.generated
+     */
+    public void setYeargoodness(BigDecimal yeargoodness) {
+        this.yeargoodness = yeargoodness;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.recordDate
+     *
+     * @return the value of windturbinegoodness.recordDate
+     *
+     * @mbg.generated
+     */
+    public Date getRecorddate() {
+        return recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.recordDate
+     *
+     * @param recorddate the value for windturbinegoodness.recordDate
+     *
+     * @mbg.generated
+     */
+    public void setRecorddate(Date recorddate) {
+        this.recorddate = recorddate;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.dayTop
+     *
+     * @return the value of windturbinegoodness.dayTop
+     *
+     * @mbg.generated
+     */
+    public Integer getDaytop() {
+        return daytop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.dayTop
+     *
+     * @param daytop the value for windturbinegoodness.dayTop
+     *
+     * @mbg.generated
+     */
+    public void setDaytop(Integer daytop) {
+        this.daytop = daytop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.monthTop
+     *
+     * @return the value of windturbinegoodness.monthTop
+     *
+     * @mbg.generated
+     */
+    public Integer getMonthtop() {
+        return monthtop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.monthTop
+     *
+     * @param monthtop the value for windturbinegoodness.monthTop
+     *
+     * @mbg.generated
+     */
+    public void setMonthtop(Integer monthtop) {
+        this.monthtop = monthtop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.yearTop
+     *
+     * @return the value of windturbinegoodness.yearTop
+     *
+     * @mbg.generated
+     */
+    public Integer getYeartop() {
+        return yeartop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.yearTop
+     *
+     * @param yeartop the value for windturbinegoodness.yearTop
+     *
+     * @mbg.generated
+     */
+    public void setYeartop(Integer yeartop) {
+        this.yeartop = yeartop;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.windtPowerStationId
+     *
+     * @return the value of windturbinegoodness.windtPowerStationId
+     *
+     * @mbg.generated
+     */
+    public String getWindtpowerstationid() {
+        return windtpowerstationid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.windtPowerStationId
+     *
+     * @param windtpowerstationid the value for windturbinegoodness.windtPowerStationId
+     *
+     * @mbg.generated
+     */
+    public void setWindtpowerstationid(String windtpowerstationid) {
+        this.windtpowerstationid = windtpowerstationid == null ? null : windtpowerstationid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.modelId
+     *
+     * @return the value of windturbinegoodness.modelId
+     *
+     * @mbg.generated
+     */
+    public String getModelid() {
+        return modelid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.modelId
+     *
+     * @param modelid the value for windturbinegoodness.modelId
+     *
+     * @mbg.generated
+     */
+    public void setModelid(String modelid) {
+        this.modelid = modelid == null ? null : modelid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.dayspeed
+     *
+     * @return the value of windturbinegoodness.dayspeed
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getDayspeed() {
+        return dayspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.dayspeed
+     *
+     * @param dayspeed the value for windturbinegoodness.dayspeed
+     *
+     * @mbg.generated
+     */
+    public void setDayspeed(BigDecimal dayspeed) {
+        this.dayspeed = dayspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.monthspeed
+     *
+     * @return the value of windturbinegoodness.monthspeed
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getMonthspeed() {
+        return monthspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.monthspeed
+     *
+     * @param monthspeed the value for windturbinegoodness.monthspeed
+     *
+     * @mbg.generated
+     */
+    public void setMonthspeed(BigDecimal monthspeed) {
+        this.monthspeed = monthspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windturbinegoodness.yearspeed
+     *
+     * @return the value of windturbinegoodness.yearspeed
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getYearspeed() {
+        return yearspeed;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windturbinegoodness.yearspeed
+     *
+     * @param yearspeed the value for windturbinegoodness.yearspeed
+     *
+     * @mbg.generated
+     */
+    public void setYearspeed(BigDecimal yearspeed) {
+        this.yearspeed = yearspeed;
+    }
+}

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


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


+ 46 - 0
src/main/java/com/gyee/frame/service/goodness/WindturbinegoodnessService.java

@@ -0,0 +1,46 @@
+package com.gyee.frame.service.goodness;
+
+import com.gyee.frame.mapper.auto.WindturbinegoodnessMapper;
+import com.gyee.frame.model.auto.Windturbinegoodness;
+import com.gyee.frame.model.auto.WindturbinegoodnessExample;
+import com.gyee.frame.util.DateUtils;
+import com.gyee.frame.util.StringUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * @ClassName : WindturbinegoodnessService
+ * @Author : xieshengjie
+ * @Date: 2021/2/20 20:35
+ * @Description : 单机性能总览service
+ */
+@Service
+public class WindturbinegoodnessService {
+    @Resource
+    private WindturbinegoodnessMapper windturbinegoodnessMapper;
+
+
+    public List<Windturbinegoodness> windturbinegoodnessList(String theday, String wpid) {
+
+        WindturbinegoodnessExample example = new WindturbinegoodnessExample();
+        WindturbinegoodnessExample.Criteria criteria = example.createCriteria();
+        if (StringUtils.notEmp(theday) && !theday.equals("undefined")) {
+            Date date = DateUtils.parseStrtoDate(theday);
+            criteria.andRecorddateEqualTo(date);
+        }else {
+            Calendar cal= Calendar.getInstance();
+            cal.add(Calendar.DATE,-1);
+            Date d=cal.getTime();
+            criteria.andRecorddateEqualTo(d);
+        }
+        if (StringUtils.notEmp(wpid) && !wpid.equals("undefined")) {
+            criteria.andWindtpowerstationidEqualTo(wpid);
+        }
+        List<Windturbinegoodness> list = windturbinegoodnessMapper.selectByExample(example);
+        return list;
+    }
+}

+ 63 - 59
src/main/java/com/gyee/frame/util/DateUtils.java

@@ -15,31 +15,36 @@ import java.util.Date;
  * @date 2019-06-23 00:53
  * @version V1.0
  */
-public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
-	/** 时间格式(yyyy-MM-dd) */
-	public final static String DATE_PATTERN = "yyyy-MM-dd";
-	/** 时间格式(yyyy-MM-dd HH:mm:ss) */
-	public final static String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
-	
-	public static String format(Date date) {
+public class DateUtils  extends org.apache.commons.lang3.time.DateUtils {
+    /**
+     * 时间格式(yyyy-MM-dd)
+     */
+    public final static String DATE_PATTERN = "yyyy-MM-dd";
+    /**
+     * 时间格式(yyyy-MM-dd HH:mm:ss)
+     */
+    public final static String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
+
+    public static String format(Date date) {
         return format(date, DATE_PATTERN);
     }
-	/**
-	 * 时间转换
-	 * @param date
-	 * @param pattern
-	 * @return
-	 */
+
+    /**
+     * 时间转换
+     *
+     * @param date
+     * @param pattern
+     * @return
+     */
     public static String format(Date date, String pattern) {
-        if(date != null){
+        if (date != null) {
             SimpleDateFormat df = new SimpleDateFormat(pattern);
             return df.format(date);
         }
         return null;
     }
-    
-    
-    
+
+
     public static String YYYY = "yyyy";
 
     public static String YYYY_MM = "yyyy-MM";
@@ -51,63 +56,52 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
 
     private static String[] parsePatterns = {
-            "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", 
+            "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
             "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
             "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};
 
     /**
      * 获取当前Date型日期
-     * 
+     *
      * @return Date() 当前日期
      */
-    public static Date getNowDate()
-    {
+    public static Date getNowDate() {
         return new Date();
     }
 
     /**
      * 获取当前日期, 默认格式为yyyy-MM-dd
-     * 
+     *
      * @return String
      */
-    public static String getDate()
-    {
+    public static String getDate() {
         return dateTimeNow(YYYY_MM_DD);
     }
 
-    public static final String getTime()
-    {
+    public static final String getTime() {
         return dateTimeNow(YYYY_MM_DD_HH_MM_SS);
     }
 
-    public static final String dateTimeNow()
-    {
+    public static final String dateTimeNow() {
         return dateTimeNow(YYYYMMDDHHMMSS);
     }
 
-    public static final String dateTimeNow(final String format)
-    {
+    public static final String dateTimeNow(final String format) {
         return parseDateToStr(format, new Date());
     }
 
-    public static final String dateTime(final Date date)
-    {
+    public static final String dateTime(final Date date) {
         return parseDateToStr(YYYY_MM_DD, date);
     }
 
-    public static final String parseDateToStr(final String format, final Date date)
-    {
+    public static final String parseDateToStr(final String format, final Date date) {
         return new SimpleDateFormat(format).format(date);
     }
 
-    public static final Date dateTime(final String format, final String ts)
-    {
-        try
-        {
+    public static final Date dateTime(final String format, final String ts) {
+        try {
             return new SimpleDateFormat(format).parse(ts);
-        }
-        catch (ParseException e)
-        {
+        } catch (ParseException e) {
             throw new RuntimeException(e);
         }
     }
@@ -115,8 +109,7 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     /**
      * 日期路径 即年/月/日 如2018/08/08
      */
-    public static final String datePath()
-    {
+    public static final String datePath() {
         Date now = new Date();
         return DateFormatUtils.format(now, "yyyy/MM/dd");
     }
@@ -124,8 +117,7 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     /**
      * 日期路径 即年/月/日 如20180808
      */
-    public static final String dateTime()
-    {
+    public static final String dateTime() {
         Date now = new Date();
         return DateFormatUtils.format(now, "yyyyMMdd");
     }
@@ -133,18 +125,13 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     /**
      * 日期型字符串转化为日期 格式
      */
-    public static Date parseDate(Object str)
-    {
-        if (str == null)
-        {
+    public static Date parseDate(Object str) {
+        if (str == null) {
             return null;
         }
-        try
-        {
+        try {
             return parseDate(str.toString(), parsePatterns);
-        }
-        catch (ParseException e)
-        {
+        } catch (ParseException e) {
             return null;
         }
     }
@@ -152,8 +139,7 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     /**
      * 获取服务器启动时间
      */
-    public static Date getServerStartDate()
-    {
+    public static Date getServerStartDate() {
         long time = ManagementFactory.getRuntimeMXBean().getStartTime();
         return new Date(time);
     }
@@ -161,8 +147,7 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     /**
      * 计算两个时间差
      */
-    public static String getDatePoor(Date endDate, Date nowDate)
-    {
+    public static String getDatePoor(Date endDate, Date nowDate) {
         long nd = 1000 * 24 * 60 * 60;
         long nh = 1000 * 60 * 60;
         long nm = 1000 * 60;
@@ -206,4 +191,23 @@ public class DateUtils  extends org.apache.commons.lang3.time.DateUtils{
     public static int daysDiff(Date d1, Date d2) {
         return (int) Math.floor(Math.abs((d1.getTime() - d2.getTime())) / (60 * 60 * 24 * 1000));
     }
-}
+
+    /**
+     * 将字符串日期转换成日期类型
+     *
+     * @param time
+     * @return
+     */
+    public static Date parseStrtoDate(String time) {
+
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        Date dateTime = null;
+        try {
+            dateTime = sdf.parse(time);
+        } catch (ParseException e) {
+            e.printStackTrace();
+
+        }
+        return dateTime;
+    }
+}

+ 413 - 0
src/main/resources/mybatis/auto/WindturbinegoodnessMapper.xml

@@ -0,0 +1,413 @@
+<?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.WindturbinegoodnessMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="windturbineId" jdbcType="VARCHAR" property="windturbineid" />
+    <result column="dayGoodness" jdbcType="DECIMAL" property="daygoodness" />
+    <result column="monthGoodness" jdbcType="DECIMAL" property="monthgoodness" />
+    <result column="yearGoodness" jdbcType="DECIMAL" property="yeargoodness" />
+    <result column="recordDate" jdbcType="DATE" property="recorddate" />
+    <result column="dayTop" jdbcType="INTEGER" property="daytop" />
+    <result column="monthTop" jdbcType="INTEGER" property="monthtop" />
+    <result column="yearTop" jdbcType="INTEGER" property="yeartop" />
+    <result column="windtPowerStationId" jdbcType="VARCHAR" property="windtpowerstationid" />
+    <result column="modelId" jdbcType="VARCHAR" property="modelid" />
+    <result column="dayspeed" jdbcType="DECIMAL" property="dayspeed" />
+    <result column="monthspeed" jdbcType="DECIMAL" property="monthspeed" />
+    <result column="yearspeed" jdbcType="DECIMAL" property="yearspeed" />
+  </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, windturbineId, dayGoodness, monthGoodness, yearGoodness, recordDate, dayTop, 
+    monthTop, yearTop, windtPowerStationId, modelId, dayspeed, monthspeed, yearspeed
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WindturbinegoodnessExample" 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 windturbinegoodness
+    <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 windturbinegoodness
+    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 windturbinegoodness
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WindturbinegoodnessExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windturbinegoodness
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windturbinegoodness (id, windturbineId, dayGoodness, 
+      monthGoodness, yearGoodness, recordDate, 
+      dayTop, monthTop, yearTop, 
+      windtPowerStationId, modelId, dayspeed, 
+      monthspeed, yearspeed)
+    values (#{id,jdbcType=INTEGER}, #{windturbineid,jdbcType=VARCHAR}, #{daygoodness,jdbcType=DECIMAL}, 
+      #{monthgoodness,jdbcType=DECIMAL}, #{yeargoodness,jdbcType=DECIMAL}, #{recorddate,jdbcType=DATE}, 
+      #{daytop,jdbcType=INTEGER}, #{monthtop,jdbcType=INTEGER}, #{yeartop,jdbcType=INTEGER}, 
+      #{windtpowerstationid,jdbcType=VARCHAR}, #{modelid,jdbcType=VARCHAR}, #{dayspeed,jdbcType=DECIMAL}, 
+      #{monthspeed,jdbcType=DECIMAL}, #{yearspeed,jdbcType=DECIMAL})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windturbinegoodness
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="windturbineid != null">
+        windturbineId,
+      </if>
+      <if test="daygoodness != null">
+        dayGoodness,
+      </if>
+      <if test="monthgoodness != null">
+        monthGoodness,
+      </if>
+      <if test="yeargoodness != null">
+        yearGoodness,
+      </if>
+      <if test="recorddate != null">
+        recordDate,
+      </if>
+      <if test="daytop != null">
+        dayTop,
+      </if>
+      <if test="monthtop != null">
+        monthTop,
+      </if>
+      <if test="yeartop != null">
+        yearTop,
+      </if>
+      <if test="windtpowerstationid != null">
+        windtPowerStationId,
+      </if>
+      <if test="modelid != null">
+        modelId,
+      </if>
+      <if test="dayspeed != null">
+        dayspeed,
+      </if>
+      <if test="monthspeed != null">
+        monthspeed,
+      </if>
+      <if test="yearspeed != null">
+        yearspeed,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="windturbineid != null">
+        #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daygoodness != null">
+        #{daygoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="monthgoodness != null">
+        #{monthgoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="yeargoodness != null">
+        #{yeargoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        #{recorddate,jdbcType=DATE},
+      </if>
+      <if test="daytop != null">
+        #{daytop,jdbcType=INTEGER},
+      </if>
+      <if test="monthtop != null">
+        #{monthtop,jdbcType=INTEGER},
+      </if>
+      <if test="yeartop != null">
+        #{yeartop,jdbcType=INTEGER},
+      </if>
+      <if test="windtpowerstationid != null">
+        #{windtpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="modelid != null">
+        #{modelid,jdbcType=VARCHAR},
+      </if>
+      <if test="dayspeed != null">
+        #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="monthspeed != null">
+        #{monthspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="yearspeed != null">
+        #{yearspeed,jdbcType=DECIMAL},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WindturbinegoodnessExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from windturbinegoodness
+    <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 windturbinegoodness
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.windturbineid != null">
+        windturbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.daygoodness != null">
+        dayGoodness = #{record.daygoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="record.monthgoodness != null">
+        monthGoodness = #{record.monthgoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="record.yeargoodness != null">
+        yearGoodness = #{record.yeargoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="record.recorddate != null">
+        recordDate = #{record.recorddate,jdbcType=DATE},
+      </if>
+      <if test="record.daytop != null">
+        dayTop = #{record.daytop,jdbcType=INTEGER},
+      </if>
+      <if test="record.monthtop != null">
+        monthTop = #{record.monthtop,jdbcType=INTEGER},
+      </if>
+      <if test="record.yeartop != null">
+        yearTop = #{record.yeartop,jdbcType=INTEGER},
+      </if>
+      <if test="record.windtpowerstationid != null">
+        windtPowerStationId = #{record.windtpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.modelid != null">
+        modelId = #{record.modelid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.dayspeed != null">
+        dayspeed = #{record.dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.monthspeed != null">
+        monthspeed = #{record.monthspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.yearspeed != null">
+        yearspeed = #{record.yearspeed,jdbcType=DECIMAL},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbinegoodness
+    set id = #{record.id,jdbcType=INTEGER},
+      windturbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      dayGoodness = #{record.daygoodness,jdbcType=DECIMAL},
+      monthGoodness = #{record.monthgoodness,jdbcType=DECIMAL},
+      yearGoodness = #{record.yeargoodness,jdbcType=DECIMAL},
+      recordDate = #{record.recorddate,jdbcType=DATE},
+      dayTop = #{record.daytop,jdbcType=INTEGER},
+      monthTop = #{record.monthtop,jdbcType=INTEGER},
+      yearTop = #{record.yeartop,jdbcType=INTEGER},
+      windtPowerStationId = #{record.windtpowerstationid,jdbcType=VARCHAR},
+      modelId = #{record.modelid,jdbcType=VARCHAR},
+      dayspeed = #{record.dayspeed,jdbcType=DECIMAL},
+      monthspeed = #{record.monthspeed,jdbcType=DECIMAL},
+      yearspeed = #{record.yearspeed,jdbcType=DECIMAL}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbinegoodness
+    <set>
+      <if test="windturbineid != null">
+        windturbineId = #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daygoodness != null">
+        dayGoodness = #{daygoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="monthgoodness != null">
+        monthGoodness = #{monthgoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="yeargoodness != null">
+        yearGoodness = #{yeargoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        recordDate = #{recorddate,jdbcType=DATE},
+      </if>
+      <if test="daytop != null">
+        dayTop = #{daytop,jdbcType=INTEGER},
+      </if>
+      <if test="monthtop != null">
+        monthTop = #{monthtop,jdbcType=INTEGER},
+      </if>
+      <if test="yeartop != null">
+        yearTop = #{yeartop,jdbcType=INTEGER},
+      </if>
+      <if test="windtpowerstationid != null">
+        windtPowerStationId = #{windtpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="modelid != null">
+        modelId = #{modelid,jdbcType=VARCHAR},
+      </if>
+      <if test="dayspeed != null">
+        dayspeed = #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="monthspeed != null">
+        monthspeed = #{monthspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="yearspeed != null">
+        yearspeed = #{yearspeed,jdbcType=DECIMAL},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbinegoodness
+    set windturbineId = #{windturbineid,jdbcType=VARCHAR},
+      dayGoodness = #{daygoodness,jdbcType=DECIMAL},
+      monthGoodness = #{monthgoodness,jdbcType=DECIMAL},
+      yearGoodness = #{yeargoodness,jdbcType=DECIMAL},
+      recordDate = #{recorddate,jdbcType=DATE},
+      dayTop = #{daytop,jdbcType=INTEGER},
+      monthTop = #{monthtop,jdbcType=INTEGER},
+      yearTop = #{yeartop,jdbcType=INTEGER},
+      windtPowerStationId = #{windtpowerstationid,jdbcType=VARCHAR},
+      modelId = #{modelid,jdbcType=VARCHAR},
+      dayspeed = #{dayspeed,jdbcType=DECIMAL},
+      monthspeed = #{monthspeed,jdbcType=DECIMAL},
+      yearspeed = #{yearspeed,jdbcType=DECIMAL}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 413 - 0
src/main/resources/mybatis/auto/WindturbinegoodnessMapper.xml.1

@@ -0,0 +1,413 @@
+<?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.WindturbinegoodnessMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="windturbineId" jdbcType="VARCHAR" property="windturbineid" />
+    <result column="dayGoodness" jdbcType="DECIMAL" property="daygoodness" />
+    <result column="monthGoodness" jdbcType="DECIMAL" property="monthgoodness" />
+    <result column="yearGoodness" jdbcType="DECIMAL" property="yeargoodness" />
+    <result column="recordDate" jdbcType="DATE" property="recorddate" />
+    <result column="dayTop" jdbcType="INTEGER" property="daytop" />
+    <result column="monthTop" jdbcType="INTEGER" property="monthtop" />
+    <result column="yearTop" jdbcType="INTEGER" property="yeartop" />
+    <result column="windtPowerStationId" jdbcType="VARCHAR" property="windtpowerstationid" />
+    <result column="modelId" jdbcType="VARCHAR" property="modelid" />
+    <result column="dayspeed" jdbcType="DECIMAL" property="dayspeed" />
+    <result column="monthspeed" jdbcType="DECIMAL" property="monthspeed" />
+    <result column="yearspeed" jdbcType="DECIMAL" property="yearspeed" />
+  </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, windturbineId, dayGoodness, monthGoodness, yearGoodness, recordDate, dayTop, 
+    monthTop, yearTop, windtPowerStationId, modelId, dayspeed, monthspeed, yearspeed
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WindturbinegoodnessExample" 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 windturbinegoodness
+    <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 windturbinegoodness
+    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 windturbinegoodness
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WindturbinegoodnessExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windturbinegoodness
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windturbinegoodness (id, windturbineId, dayGoodness, 
+      monthGoodness, yearGoodness, recordDate, 
+      dayTop, monthTop, yearTop, 
+      windtPowerStationId, modelId, dayspeed, 
+      monthspeed, yearspeed)
+    values (#{id,jdbcType=INTEGER}, #{windturbineid,jdbcType=VARCHAR}, #{daygoodness,jdbcType=DECIMAL}, 
+      #{monthgoodness,jdbcType=DECIMAL}, #{yeargoodness,jdbcType=DECIMAL}, #{recorddate,jdbcType=DATE}, 
+      #{daytop,jdbcType=INTEGER}, #{monthtop,jdbcType=INTEGER}, #{yeartop,jdbcType=INTEGER}, 
+      #{windtpowerstationid,jdbcType=VARCHAR}, #{modelid,jdbcType=VARCHAR}, #{dayspeed,jdbcType=DECIMAL}, 
+      #{monthspeed,jdbcType=DECIMAL}, #{yearspeed,jdbcType=DECIMAL})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windturbinegoodness
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="windturbineid != null">
+        windturbineId,
+      </if>
+      <if test="daygoodness != null">
+        dayGoodness,
+      </if>
+      <if test="monthgoodness != null">
+        monthGoodness,
+      </if>
+      <if test="yeargoodness != null">
+        yearGoodness,
+      </if>
+      <if test="recorddate != null">
+        recordDate,
+      </if>
+      <if test="daytop != null">
+        dayTop,
+      </if>
+      <if test="monthtop != null">
+        monthTop,
+      </if>
+      <if test="yeartop != null">
+        yearTop,
+      </if>
+      <if test="windtpowerstationid != null">
+        windtPowerStationId,
+      </if>
+      <if test="modelid != null">
+        modelId,
+      </if>
+      <if test="dayspeed != null">
+        dayspeed,
+      </if>
+      <if test="monthspeed != null">
+        monthspeed,
+      </if>
+      <if test="yearspeed != null">
+        yearspeed,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="windturbineid != null">
+        #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daygoodness != null">
+        #{daygoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="monthgoodness != null">
+        #{monthgoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="yeargoodness != null">
+        #{yeargoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        #{recorddate,jdbcType=DATE},
+      </if>
+      <if test="daytop != null">
+        #{daytop,jdbcType=INTEGER},
+      </if>
+      <if test="monthtop != null">
+        #{monthtop,jdbcType=INTEGER},
+      </if>
+      <if test="yeartop != null">
+        #{yeartop,jdbcType=INTEGER},
+      </if>
+      <if test="windtpowerstationid != null">
+        #{windtpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="modelid != null">
+        #{modelid,jdbcType=VARCHAR},
+      </if>
+      <if test="dayspeed != null">
+        #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="monthspeed != null">
+        #{monthspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="yearspeed != null">
+        #{yearspeed,jdbcType=DECIMAL},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WindturbinegoodnessExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from windturbinegoodness
+    <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 windturbinegoodness
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.windturbineid != null">
+        windturbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.daygoodness != null">
+        dayGoodness = #{record.daygoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="record.monthgoodness != null">
+        monthGoodness = #{record.monthgoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="record.yeargoodness != null">
+        yearGoodness = #{record.yeargoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="record.recorddate != null">
+        recordDate = #{record.recorddate,jdbcType=DATE},
+      </if>
+      <if test="record.daytop != null">
+        dayTop = #{record.daytop,jdbcType=INTEGER},
+      </if>
+      <if test="record.monthtop != null">
+        monthTop = #{record.monthtop,jdbcType=INTEGER},
+      </if>
+      <if test="record.yeartop != null">
+        yearTop = #{record.yeartop,jdbcType=INTEGER},
+      </if>
+      <if test="record.windtpowerstationid != null">
+        windtPowerStationId = #{record.windtpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.modelid != null">
+        modelId = #{record.modelid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.dayspeed != null">
+        dayspeed = #{record.dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.monthspeed != null">
+        monthspeed = #{record.monthspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="record.yearspeed != null">
+        yearspeed = #{record.yearspeed,jdbcType=DECIMAL},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbinegoodness
+    set id = #{record.id,jdbcType=INTEGER},
+      windturbineId = #{record.windturbineid,jdbcType=VARCHAR},
+      dayGoodness = #{record.daygoodness,jdbcType=DECIMAL},
+      monthGoodness = #{record.monthgoodness,jdbcType=DECIMAL},
+      yearGoodness = #{record.yeargoodness,jdbcType=DECIMAL},
+      recordDate = #{record.recorddate,jdbcType=DATE},
+      dayTop = #{record.daytop,jdbcType=INTEGER},
+      monthTop = #{record.monthtop,jdbcType=INTEGER},
+      yearTop = #{record.yeartop,jdbcType=INTEGER},
+      windtPowerStationId = #{record.windtpowerstationid,jdbcType=VARCHAR},
+      modelId = #{record.modelid,jdbcType=VARCHAR},
+      dayspeed = #{record.dayspeed,jdbcType=DECIMAL},
+      monthspeed = #{record.monthspeed,jdbcType=DECIMAL},
+      yearspeed = #{record.yearspeed,jdbcType=DECIMAL}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbinegoodness
+    <set>
+      <if test="windturbineid != null">
+        windturbineId = #{windturbineid,jdbcType=VARCHAR},
+      </if>
+      <if test="daygoodness != null">
+        dayGoodness = #{daygoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="monthgoodness != null">
+        monthGoodness = #{monthgoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="yeargoodness != null">
+        yearGoodness = #{yeargoodness,jdbcType=DECIMAL},
+      </if>
+      <if test="recorddate != null">
+        recordDate = #{recorddate,jdbcType=DATE},
+      </if>
+      <if test="daytop != null">
+        dayTop = #{daytop,jdbcType=INTEGER},
+      </if>
+      <if test="monthtop != null">
+        monthTop = #{monthtop,jdbcType=INTEGER},
+      </if>
+      <if test="yeartop != null">
+        yearTop = #{yeartop,jdbcType=INTEGER},
+      </if>
+      <if test="windtpowerstationid != null">
+        windtPowerStationId = #{windtpowerstationid,jdbcType=VARCHAR},
+      </if>
+      <if test="modelid != null">
+        modelId = #{modelid,jdbcType=VARCHAR},
+      </if>
+      <if test="dayspeed != null">
+        dayspeed = #{dayspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="monthspeed != null">
+        monthspeed = #{monthspeed,jdbcType=DECIMAL},
+      </if>
+      <if test="yearspeed != null">
+        yearspeed = #{yearspeed,jdbcType=DECIMAL},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Windturbinegoodness">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windturbinegoodness
+    set windturbineId = #{windturbineid,jdbcType=VARCHAR},
+      dayGoodness = #{daygoodness,jdbcType=DECIMAL},
+      monthGoodness = #{monthgoodness,jdbcType=DECIMAL},
+      yearGoodness = #{yeargoodness,jdbcType=DECIMAL},
+      recordDate = #{recorddate,jdbcType=DATE},
+      dayTop = #{daytop,jdbcType=INTEGER},
+      monthTop = #{monthtop,jdbcType=INTEGER},
+      yearTop = #{yeartop,jdbcType=INTEGER},
+      windtPowerStationId = #{windtpowerstationid,jdbcType=VARCHAR},
+      modelId = #{modelid,jdbcType=VARCHAR},
+      dayspeed = #{dayspeed,jdbcType=DECIMAL},
+      monthspeed = #{monthspeed,jdbcType=DECIMAL},
+      yearspeed = #{yearspeed,jdbcType=DECIMAL}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 28 - 28
src/main/resources/mybatis/benchmarking/PowerCompareDetailMapper.xml

@@ -19,23 +19,23 @@
             a.windturbineid generation,
           </otherwise>
         </choose>
-    sum(a.generatingcapacity) scadafdl,
+    sum(a.generatingcapacity)/10000 scadafdl,
     avg(a.speed) speed,
     (
     sum(a.generatingcapacity) + sum(b.statuslossofpower0) + sum(b.statuslossofpower1) + sum(b.statuslossofpower2) + sum(b.statuslossofpower3) + sum(b.statuslossofpower4) + sum(b.statuslossofpower5) + sum(b.statuslossofpower6) + sum(b.statuslossofpower7) + sum(b.statuslossofpower8) + sum(b.statuslossofpower9) + sum(b.statuslossofpower10) + sum(b.statuslossofpower11) + sum(b.statuslossofpower12)
-    ) llfdl,
-    sum(b.statuslossofpower0) dfssdl,
-    sum(b.statuslossofpower1) sdtjssdl,
-    sum(b.statuslossofpower2) zcfdssdl,
-    sum(b.statuslossofpower3) qxjclssdl,
-    sum(b.statuslossofpower4) xdjclssdl,
-    sum(b.statuslossofpower5) xdtjssdl,
-    sum(b.statuslossofpower6) gzssdl,
-    sum(b.statuslossofpower7) gzslssdl,
-    sum(b.statuslossofpower8) jxssdl,
-    sum(b.statuslossofpower9) jxslssdl,
-    sum(b.statuslossofpower10) dwslssdl,
-    sum(b.statuslossofpower11) hjslssdl
+    )/10000 llfdl,
+    sum(b.statuslossofpower0)/10000 dfssdl,
+    sum(b.statuslossofpower1)/10000 sdtjssdl,
+    sum(b.statuslossofpower2)/10000 zcfdssdl,
+    sum(b.statuslossofpower3)/10000 qxjclssdl,
+    sum(b.statuslossofpower4)/10000 xdjclssdl,
+    sum(b.statuslossofpower5)/10000 xdtjssdl,
+    sum(b.statuslossofpower6)/10000 gzssdl,
+    sum(b.statuslossofpower7)/10000 gzslssdl,
+    sum(b.statuslossofpower8)/10000 jxssdl,
+    sum(b.statuslossofpower9)/10000 jxslssdl,
+    sum(b.statuslossofpower10)/10000 dwslssdl,
+    sum(b.statuslossofpower11)/10000 hjslssdl
     FROM
     windturbineinfoday a,
     windturbinestatusdaystatistics b,
@@ -65,23 +65,23 @@
   </select>
 
   <select id="getDetailWtInfo" resultType="com.gyee.frame.model.benchmarking.PowerCompareDetail">
-    select a.windturbineid generation,sum(a.generatingcapacity) scadafdl,
+    select a.windturbineid generation,sum(a.generatingcapacity)/10000 scadafdl,
     avg(a.speed) speed,
     (
     sum(a.generatingcapacity) + sum(b.statuslossofpower0) + sum(b.statuslossofpower1) + sum(b.statuslossofpower2) + sum(b.statuslossofpower3) + sum(b.statuslossofpower4) + sum(b.statuslossofpower5) + sum(b.statuslossofpower6) + sum(b.statuslossofpower7) + sum(b.statuslossofpower8) + sum(b.statuslossofpower9) + sum(b.statuslossofpower10) + sum(b.statuslossofpower11) + sum(b.statuslossofpower12)
-    ) llfdl,
-    sum(b.statuslossofpower0) dfssdl,
-    sum(b.statuslossofpower1) sdtjssdl,
-    sum(b.statuslossofpower2) zcfdssdl,
-    sum(b.statuslossofpower3) qxjclssdl,
-    sum(b.statuslossofpower4) xdjclssdl,
-    sum(b.statuslossofpower5) xdtjssdl,
-    sum(b.statuslossofpower6) gzssdl,
-    sum(b.statuslossofpower7) gzslssdl,
-    sum(b.statuslossofpower8) jxssdl,
-    sum(b.statuslossofpower9) jxslssdl,
-    sum(b.statuslossofpower10) dwslssdl,
-    sum(b.statuslossofpower11) hjslssdl
+    )/10000 llfdl,
+    sum(b.statuslossofpower0)/10000 dfssdl,
+    sum(b.statuslossofpower1)/10000 sdtjssdl,
+    sum(b.statuslossofpower2)/10000 zcfdssdl,
+    sum(b.statuslossofpower3)/10000 qxjclssdl,
+    sum(b.statuslossofpower4)/10000 xdjclssdl,
+    sum(b.statuslossofpower5)/10000 xdtjssdl,
+    sum(b.statuslossofpower6)/10000 gzssdl,
+    sum(b.statuslossofpower7)/10000 gzslssdl,
+    sum(b.statuslossofpower8)/10000 jxssdl,
+    sum(b.statuslossofpower9)/10000 jxslssdl,
+    sum(b.statuslossofpower10)/10000 dwslssdl,
+    sum(b.statuslossofpower11)/10000 hjslssdl
     FROM
     windturbineinfoday a,
     windturbinestatusdaystatistics b,