Browse Source

Merge remote-tracking branch 'origin/master'

shilin 2 years ago
parent
commit
222c890265

+ 9 - 0
web/gdsx-ghost/pom.xml

@@ -45,6 +45,15 @@
             <groupId>org.postgresql</groupId>
             <artifactId>postgresql</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-autoconfigure</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-autoconfigure</artifactId>
+        </dependency>
     </dependencies>
     <build>
         <plugins>

+ 7 - 7
web/gdsx-ghost/src/main/java/com/gyee/ghost/init/CacheContext.java

@@ -117,12 +117,12 @@ public class CacheContext implements CommandLineRunner {
 //        });
 
 
-//        String yesterday = DateUtils.getYesterdayStr("yyyy-MM-dd");
-//        try {
-////            realtimeService.saveWindturbineStatus2();
-//            realtimeService.saveWindstationStatus(yesterday,yesterday);
-//        } catch (Exception e) {
-//            e.printStackTrace();
-//        }
+        String yesterday = DateUtils.getYesterdayStr("yyyy-MM-dd");
+        try {
+//            realtimeService.saveWindturbineStatus2();
+            realtimeService.saveWindstationStatus(yesterday,yesterday);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
     }
 }

+ 2 - 2
web/gdsx-ghost/src/main/java/com/gyee/ghost/service/RealtimeService.java

@@ -156,7 +156,7 @@ public class RealtimeService {
 //        Date befroeDate = DateUtils.addMinutes(currentDate,-5);
         days.forEach(day->{
             Date date = DateUtils.parseDate(day);
-            Date addday = DateUtils.addMinutes(date, 1);
+            Date addday = DateUtils.addDays(date, 1);
             wtls.stream().forEach(wt->{
                 Map<String, Windturbinetestingpointai> stringWindturbinetestingpointaiMap = wtpAimap.get(wt.getId());
                 Windturbinetestingpointai windturbinetestingpointai = stringWindturbinetestingpointaiMap.get(Contant.ZTMX);
@@ -171,7 +171,7 @@ public class RealtimeService {
                         proEconStationStatusmx.setWindpowerstationId(wt.getWindpowerstationid());
                         proEconStationStatusmx.setWindturbineId(wt.getId());
                         proEconStationStatusmx.setRecorddate(date);
-                        proEconStationStatusmx.setStopHours(DoubleUtils.keepPrecision(new Double(minutes).intValue()/60,2));
+                        proEconStationStatusmx.setStopHours(DoubleUtils.keepPrecision(new Double(minutes)/60,2));
                         proEconStationStatusmx.setLossPower(0.0);
                         proEconStationStatusmx.setSatusCode(sta);
                         proEconStationStatusmx.setStatusDesc(statusmxMap.get(sta));

+ 2 - 2
web/gdsx-ghost/src/main/java/com/gyee/ghost/task/SaticScheduleTask.java

@@ -54,7 +54,7 @@ public class SaticScheduleTask {
 
 
     //或直接指定时间间隔,例如:5秒
-    @Scheduled(fixedRate=300000)
+//    @Scheduled(fixedRate=300000)
     private void status() {
         try {
             realtimeService.saveWindturbineStatus2();
@@ -63,7 +63,7 @@ public class SaticScheduleTask {
         }
     }
 
-    @Scheduled(cron = "0 0 1 * * ?")
+    @Scheduled(cron = "1 0 0 * * ?")
     //或直接指定时间间隔,例如:5秒
     //@Scheduled(fixedRate=5000)
     private void statustj() {

+ 11 - 2
web/gdsx-ghost/src/test/java/com/gyee/ghost/GhostTest.java

@@ -3,6 +3,8 @@ package com.gyee.ghost;/*
 @date   2022/8/3-17:10
 */
 
+import com.gyee.common.util.DateUtils;
+import com.gyee.ghost.service.RealtimeService;
 import com.gyee.ghost.service.auto.GhostService;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -19,10 +21,17 @@ import javax.annotation.Resource;
 public class GhostTest {
     @Resource
     private GhostService ghostService;
+    @Resource
+    private RealtimeService realtimeService;
 
     @Test
     public void test1(){
-        double a = 1/2;
-        System.out.println();
+                String yesterday = DateUtils.getYesterdayStr("yyyy-MM-dd");
+        try {
+//            realtimeService.saveWindturbineStatus2();
+            realtimeService.saveWindstationStatus(yesterday,yesterday);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
     }
 }

+ 96 - 0
web/monitor-web-sxjn/src/main/java/com/gyee/frame/mapper/auto/ProjectplanPGMapper.java

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

+ 96 - 0
web/monitor-web-sxjn/src/main/java/com/gyee/frame/mapper/auto/WindpowerstationPGMapper.java

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

+ 245 - 0
web/monitor-web-sxjn/src/main/java/com/gyee/frame/model/auto/ProjectplanPG.java

@@ -0,0 +1,245 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+public class ProjectplanPG implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.id
+     *
+     * @mbg.generated
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.projectid
+     *
+     * @mbg.generated
+     */
+    private String projectid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.generatingcapacity
+     *
+     * @mbg.generated
+     */
+    private String generatingcapacity;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.outagehours
+     *
+     * @mbg.generated
+     */
+    private BigDecimal outagehours;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.year
+     *
+     * @mbg.generated
+     */
+    private String year;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.month
+     *
+     * @mbg.generated
+     */
+    private String month;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column projectplan.windpower
+     *
+     * @mbg.generated
+     */
+    private String windpower;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.id
+     *
+     * @return the value of projectplan.id
+     *
+     * @mbg.generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.id
+     *
+     * @param id the value for projectplan.id
+     *
+     * @mbg.generated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.projectid
+     *
+     * @return the value of projectplan.projectid
+     *
+     * @mbg.generated
+     */
+    public String getProjectid() {
+        return projectid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.projectid
+     *
+     * @param projectid the value for projectplan.projectid
+     *
+     * @mbg.generated
+     */
+    public void setProjectid(String projectid) {
+        this.projectid = projectid == null ? null : projectid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.generatingcapacity
+     *
+     * @return the value of projectplan.generatingcapacity
+     *
+     * @mbg.generated
+     */
+    public String getGeneratingcapacity() {
+        return generatingcapacity;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.generatingcapacity
+     *
+     * @param generatingcapacity the value for projectplan.generatingcapacity
+     *
+     * @mbg.generated
+     */
+    public void setGeneratingcapacity(String generatingcapacity) {
+        this.generatingcapacity = generatingcapacity == null ? null : generatingcapacity.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.outagehours
+     *
+     * @return the value of projectplan.outagehours
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getOutagehours() {
+        return outagehours;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.outagehours
+     *
+     * @param outagehours the value for projectplan.outagehours
+     *
+     * @mbg.generated
+     */
+    public void setOutagehours(BigDecimal outagehours) {
+        this.outagehours = outagehours;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.year
+     *
+     * @return the value of projectplan.year
+     *
+     * @mbg.generated
+     */
+    public String getYear() {
+        return year;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.year
+     *
+     * @param year the value for projectplan.year
+     *
+     * @mbg.generated
+     */
+    public void setYear(String year) {
+        this.year = year == null ? null : year.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.month
+     *
+     * @return the value of projectplan.month
+     *
+     * @mbg.generated
+     */
+    public String getMonth() {
+        return month;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.month
+     *
+     * @param month the value for projectplan.month
+     *
+     * @mbg.generated
+     */
+    public void setMonth(String month) {
+        this.month = month == null ? null : month.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column projectplan.windpower
+     *
+     * @return the value of projectplan.windpower
+     *
+     * @mbg.generated
+     */
+    public String getWindpower() {
+        return windpower;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column projectplan.windpower
+     *
+     * @param windpower the value for projectplan.windpower
+     *
+     * @mbg.generated
+     */
+    public void setWindpower(String windpower) {
+        this.windpower = windpower == null ? null : windpower.trim();
+    }
+}

+ 783 - 0
web/monitor-web-sxjn/src/main/java/com/gyee/frame/model/auto/ProjectplanPGExample.java

@@ -0,0 +1,783 @@
+package com.gyee.frame.model.auto;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+public class ProjectplanPGExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public ProjectplanPGExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("id like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("id not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidIsNull() {
+            addCriterion("projectid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidIsNotNull() {
+            addCriterion("projectid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidEqualTo(String value) {
+            addCriterion("projectid =", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidNotEqualTo(String value) {
+            addCriterion("projectid <>", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidGreaterThan(String value) {
+            addCriterion("projectid >", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidGreaterThanOrEqualTo(String value) {
+            addCriterion("projectid >=", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidLessThan(String value) {
+            addCriterion("projectid <", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidLessThanOrEqualTo(String value) {
+            addCriterion("projectid <=", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidLike(String value) {
+            addCriterion("projectid like", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidNotLike(String value) {
+            addCriterion("projectid not like", value, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidIn(List<String> values) {
+            addCriterion("projectid in", values, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidNotIn(List<String> values) {
+            addCriterion("projectid not in", values, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidBetween(String value1, String value2) {
+            addCriterion("projectid between", value1, value2, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andProjectidNotBetween(String value1, String value2) {
+            addCriterion("projectid not between", value1, value2, "projectid");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityIsNull() {
+            addCriterion("generatingcapacity is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityIsNotNull() {
+            addCriterion("generatingcapacity is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityEqualTo(String value) {
+            addCriterion("generatingcapacity =", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityNotEqualTo(String value) {
+            addCriterion("generatingcapacity <>", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityGreaterThan(String value) {
+            addCriterion("generatingcapacity >", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityGreaterThanOrEqualTo(String value) {
+            addCriterion("generatingcapacity >=", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityLessThan(String value) {
+            addCriterion("generatingcapacity <", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityLessThanOrEqualTo(String value) {
+            addCriterion("generatingcapacity <=", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityLike(String value) {
+            addCriterion("generatingcapacity like", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityNotLike(String value) {
+            addCriterion("generatingcapacity not like", value, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityIn(List<String> values) {
+            addCriterion("generatingcapacity in", values, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityNotIn(List<String> values) {
+            addCriterion("generatingcapacity not in", values, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityBetween(String value1, String value2) {
+            addCriterion("generatingcapacity between", value1, value2, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andGeneratingcapacityNotBetween(String value1, String value2) {
+            addCriterion("generatingcapacity not between", value1, value2, "generatingcapacity");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursIsNull() {
+            addCriterion("outagehours is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursIsNotNull() {
+            addCriterion("outagehours is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursEqualTo(BigDecimal value) {
+            addCriterion("outagehours =", value, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursNotEqualTo(BigDecimal value) {
+            addCriterion("outagehours <>", value, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursGreaterThan(BigDecimal value) {
+            addCriterion("outagehours >", value, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursGreaterThanOrEqualTo(BigDecimal value) {
+            addCriterion("outagehours >=", value, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursLessThan(BigDecimal value) {
+            addCriterion("outagehours <", value, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursLessThanOrEqualTo(BigDecimal value) {
+            addCriterion("outagehours <=", value, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursIn(List<BigDecimal> values) {
+            addCriterion("outagehours in", values, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursNotIn(List<BigDecimal> values) {
+            addCriterion("outagehours not in", values, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursBetween(BigDecimal value1, BigDecimal value2) {
+            addCriterion("outagehours between", value1, value2, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andOutagehoursNotBetween(BigDecimal value1, BigDecimal value2) {
+            addCriterion("outagehours not between", value1, value2, "outagehours");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearIsNull() {
+            addCriterion("year is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearIsNotNull() {
+            addCriterion("year is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearEqualTo(String value) {
+            addCriterion("year =", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearNotEqualTo(String value) {
+            addCriterion("year <>", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearGreaterThan(String value) {
+            addCriterion("year >", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearGreaterThanOrEqualTo(String value) {
+            addCriterion("year >=", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearLessThan(String value) {
+            addCriterion("year <", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearLessThanOrEqualTo(String value) {
+            addCriterion("year <=", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearLike(String value) {
+            addCriterion("year like", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearNotLike(String value) {
+            addCriterion("year not like", value, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearIn(List<String> values) {
+            addCriterion("year in", values, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearNotIn(List<String> values) {
+            addCriterion("year not in", values, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearBetween(String value1, String value2) {
+            addCriterion("year between", value1, value2, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andYearNotBetween(String value1, String value2) {
+            addCriterion("year not between", value1, value2, "year");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthIsNull() {
+            addCriterion("month is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthIsNotNull() {
+            addCriterion("month is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthEqualTo(String value) {
+            addCriterion("month =", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthNotEqualTo(String value) {
+            addCriterion("month <>", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthGreaterThan(String value) {
+            addCriterion("month >", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthGreaterThanOrEqualTo(String value) {
+            addCriterion("month >=", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthLessThan(String value) {
+            addCriterion("month <", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthLessThanOrEqualTo(String value) {
+            addCriterion("month <=", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthLike(String value) {
+            addCriterion("month like", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthNotLike(String value) {
+            addCriterion("month not like", value, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthIn(List<String> values) {
+            addCriterion("month in", values, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthNotIn(List<String> values) {
+            addCriterion("month not in", values, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthBetween(String value1, String value2) {
+            addCriterion("month between", value1, value2, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andMonthNotBetween(String value1, String value2) {
+            addCriterion("month not between", value1, value2, "month");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerIsNull() {
+            addCriterion("windpower is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerIsNotNull() {
+            addCriterion("windpower is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerEqualTo(String value) {
+            addCriterion("windpower =", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerNotEqualTo(String value) {
+            addCriterion("windpower <>", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerGreaterThan(String value) {
+            addCriterion("windpower >", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerGreaterThanOrEqualTo(String value) {
+            addCriterion("windpower >=", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerLessThan(String value) {
+            addCriterion("windpower <", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerLessThanOrEqualTo(String value) {
+            addCriterion("windpower <=", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerLike(String value) {
+            addCriterion("windpower like", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerNotLike(String value) {
+            addCriterion("windpower not like", value, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerIn(List<String> values) {
+            addCriterion("windpower in", values, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerNotIn(List<String> values) {
+            addCriterion("windpower not in", values, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerBetween(String value1, String value2) {
+            addCriterion("windpower between", value1, value2, "windpower");
+            return (Criteria) this;
+        }
+
+        public Criteria andWindpowerNotBetween(String value1, String value2) {
+            addCriterion("windpower not between", value1, value2, "windpower");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table projectplan
+     *
+     * @mbg.generated do_not_delete_during_merge
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table projectplan
+     *
+     * @mbg.generated
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 707 - 0
web/monitor-web-sxjn/src/main/java/com/gyee/frame/model/auto/WindpowerstationPG.java

@@ -0,0 +1,707 @@
+package com.gyee.frame.model.auto;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+public class WindpowerstationPG implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.id
+     *
+     * @mbg.generated
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.code
+     *
+     * @mbg.generated
+     */
+    private String code;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.name
+     *
+     * @mbg.generated
+     */
+    private String name;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.address
+     *
+     * @mbg.generated
+     */
+    private String address;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.telephone
+     *
+     * @mbg.generated
+     */
+    private String telephone;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.capacity
+     *
+     * @mbg.generated
+     */
+    private BigDecimal capacity;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.capacityunit
+     *
+     * @mbg.generated
+     */
+    private String capacityunit;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.quantity
+     *
+     * @mbg.generated
+     */
+    private Long quantity;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.aname
+     *
+     * @mbg.generated
+     */
+    private String aname;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.longitude
+     *
+     * @mbg.generated
+     */
+    private BigDecimal longitude;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.latitude
+     *
+     * @mbg.generated
+     */
+    private BigDecimal latitude;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.photo
+     *
+     * @mbg.generated
+     */
+    private String photo;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.companyid
+     *
+     * @mbg.generated
+     */
+    private String companyid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.systemmanufact
+     *
+     * @mbg.generated
+     */
+    private String systemmanufact;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.headfarm
+     *
+     * @mbg.generated
+     */
+    private String headfarm;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.headfarmphone
+     *
+     * @mbg.generated
+     */
+    private String headfarmphone;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.model
+     *
+     * @mbg.generated
+     */
+    private String model;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.ordernum
+     *
+     * @mbg.generated
+     */
+    private Long ordernum;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.altitude
+     *
+     * @mbg.generated
+     */
+    private BigDecimal altitude;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.height
+     *
+     * @mbg.generated
+     */
+    private BigDecimal height;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column windpowerstation.regionid
+     *
+     * @mbg.generated
+     */
+    private String regionid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table windpowerstation
+     *
+     * @mbg.generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.id
+     *
+     * @return the value of windpowerstation.id
+     *
+     * @mbg.generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.id
+     *
+     * @param id the value for windpowerstation.id
+     *
+     * @mbg.generated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.code
+     *
+     * @return the value of windpowerstation.code
+     *
+     * @mbg.generated
+     */
+    public String getCode() {
+        return code;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.code
+     *
+     * @param code the value for windpowerstation.code
+     *
+     * @mbg.generated
+     */
+    public void setCode(String code) {
+        this.code = code == null ? null : code.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.name
+     *
+     * @return the value of windpowerstation.name
+     *
+     * @mbg.generated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.name
+     *
+     * @param name the value for windpowerstation.name
+     *
+     * @mbg.generated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.address
+     *
+     * @return the value of windpowerstation.address
+     *
+     * @mbg.generated
+     */
+    public String getAddress() {
+        return address;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.address
+     *
+     * @param address the value for windpowerstation.address
+     *
+     * @mbg.generated
+     */
+    public void setAddress(String address) {
+        this.address = address == null ? null : address.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.telephone
+     *
+     * @return the value of windpowerstation.telephone
+     *
+     * @mbg.generated
+     */
+    public String getTelephone() {
+        return telephone;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.telephone
+     *
+     * @param telephone the value for windpowerstation.telephone
+     *
+     * @mbg.generated
+     */
+    public void setTelephone(String telephone) {
+        this.telephone = telephone == null ? null : telephone.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.capacity
+     *
+     * @return the value of windpowerstation.capacity
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getCapacity() {
+        return capacity;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.capacity
+     *
+     * @param capacity the value for windpowerstation.capacity
+     *
+     * @mbg.generated
+     */
+    public void setCapacity(BigDecimal capacity) {
+        this.capacity = capacity;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.capacityunit
+     *
+     * @return the value of windpowerstation.capacityunit
+     *
+     * @mbg.generated
+     */
+    public String getCapacityunit() {
+        return capacityunit;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.capacityunit
+     *
+     * @param capacityunit the value for windpowerstation.capacityunit
+     *
+     * @mbg.generated
+     */
+    public void setCapacityunit(String capacityunit) {
+        this.capacityunit = capacityunit == null ? null : capacityunit.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.quantity
+     *
+     * @return the value of windpowerstation.quantity
+     *
+     * @mbg.generated
+     */
+    public Long getQuantity() {
+        return quantity;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.quantity
+     *
+     * @param quantity the value for windpowerstation.quantity
+     *
+     * @mbg.generated
+     */
+    public void setQuantity(Long quantity) {
+        this.quantity = quantity;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.aname
+     *
+     * @return the value of windpowerstation.aname
+     *
+     * @mbg.generated
+     */
+    public String getAname() {
+        return aname;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.aname
+     *
+     * @param aname the value for windpowerstation.aname
+     *
+     * @mbg.generated
+     */
+    public void setAname(String aname) {
+        this.aname = aname == null ? null : aname.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.longitude
+     *
+     * @return the value of windpowerstation.longitude
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getLongitude() {
+        return longitude;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.longitude
+     *
+     * @param longitude the value for windpowerstation.longitude
+     *
+     * @mbg.generated
+     */
+    public void setLongitude(BigDecimal longitude) {
+        this.longitude = longitude;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.latitude
+     *
+     * @return the value of windpowerstation.latitude
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getLatitude() {
+        return latitude;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.latitude
+     *
+     * @param latitude the value for windpowerstation.latitude
+     *
+     * @mbg.generated
+     */
+    public void setLatitude(BigDecimal latitude) {
+        this.latitude = latitude;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.photo
+     *
+     * @return the value of windpowerstation.photo
+     *
+     * @mbg.generated
+     */
+    public String getPhoto() {
+        return photo;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.photo
+     *
+     * @param photo the value for windpowerstation.photo
+     *
+     * @mbg.generated
+     */
+    public void setPhoto(String photo) {
+        this.photo = photo == null ? null : photo.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.companyid
+     *
+     * @return the value of windpowerstation.companyid
+     *
+     * @mbg.generated
+     */
+    public String getCompanyid() {
+        return companyid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.companyid
+     *
+     * @param companyid the value for windpowerstation.companyid
+     *
+     * @mbg.generated
+     */
+    public void setCompanyid(String companyid) {
+        this.companyid = companyid == null ? null : companyid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.systemmanufact
+     *
+     * @return the value of windpowerstation.systemmanufact
+     *
+     * @mbg.generated
+     */
+    public String getSystemmanufact() {
+        return systemmanufact;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.systemmanufact
+     *
+     * @param systemmanufact the value for windpowerstation.systemmanufact
+     *
+     * @mbg.generated
+     */
+    public void setSystemmanufact(String systemmanufact) {
+        this.systemmanufact = systemmanufact == null ? null : systemmanufact.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.headfarm
+     *
+     * @return the value of windpowerstation.headfarm
+     *
+     * @mbg.generated
+     */
+    public String getHeadfarm() {
+        return headfarm;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.headfarm
+     *
+     * @param headfarm the value for windpowerstation.headfarm
+     *
+     * @mbg.generated
+     */
+    public void setHeadfarm(String headfarm) {
+        this.headfarm = headfarm == null ? null : headfarm.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.headfarmphone
+     *
+     * @return the value of windpowerstation.headfarmphone
+     *
+     * @mbg.generated
+     */
+    public String getHeadfarmphone() {
+        return headfarmphone;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.headfarmphone
+     *
+     * @param headfarmphone the value for windpowerstation.headfarmphone
+     *
+     * @mbg.generated
+     */
+    public void setHeadfarmphone(String headfarmphone) {
+        this.headfarmphone = headfarmphone == null ? null : headfarmphone.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.model
+     *
+     * @return the value of windpowerstation.model
+     *
+     * @mbg.generated
+     */
+    public String getModel() {
+        return model;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.model
+     *
+     * @param model the value for windpowerstation.model
+     *
+     * @mbg.generated
+     */
+    public void setModel(String model) {
+        this.model = model == null ? null : model.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.ordernum
+     *
+     * @return the value of windpowerstation.ordernum
+     *
+     * @mbg.generated
+     */
+    public Long getOrdernum() {
+        return ordernum;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.ordernum
+     *
+     * @param ordernum the value for windpowerstation.ordernum
+     *
+     * @mbg.generated
+     */
+    public void setOrdernum(Long ordernum) {
+        this.ordernum = ordernum;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.altitude
+     *
+     * @return the value of windpowerstation.altitude
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getAltitude() {
+        return altitude;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.altitude
+     *
+     * @param altitude the value for windpowerstation.altitude
+     *
+     * @mbg.generated
+     */
+    public void setAltitude(BigDecimal altitude) {
+        this.altitude = altitude;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.height
+     *
+     * @return the value of windpowerstation.height
+     *
+     * @mbg.generated
+     */
+    public BigDecimal getHeight() {
+        return height;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.height
+     *
+     * @param height the value for windpowerstation.height
+     *
+     * @mbg.generated
+     */
+    public void setHeight(BigDecimal height) {
+        this.height = height;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column windpowerstation.regionid
+     *
+     * @return the value of windpowerstation.regionid
+     *
+     * @mbg.generated
+     */
+    public String getRegionid() {
+        return regionid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column windpowerstation.regionid
+     *
+     * @param regionid the value for windpowerstation.regionid
+     *
+     * @mbg.generated
+     */
+    public void setRegionid(String regionid) {
+        this.regionid = regionid == null ? null : regionid.trim();
+    }
+}

File diff suppressed because it is too large
+ 1703 - 0
web/monitor-web-sxjn/src/main/java/com/gyee/frame/model/auto/WindpowerstationPGExample.java


+ 2 - 2
web/monitor-web-sxjn/src/main/resources/mybatis-generator.xml

@@ -60,7 +60,7 @@
 
             <jdbcConnection
                     driverClass="org.postgresql.Driver"
-                    connectionURL="jdbc:postgresql://192.168.11.248:5432/postgres"
+                    connectionURL="jdbc:postgresql://10.81.3.151:5432/postgres"
                     userId="postgres"
                     password="postgres">
             </jdbcConnection>
@@ -125,7 +125,7 @@
 <!--        <table tableName='StopAnalysismainVo' domainObjectName='StopAnalysismainVo'/>-->
 
 
-        <table tableName='companys' domainObjectName='CompanysPG'/>
+        <table tableName='windpowerstation' domainObjectName='WindpowerstationPG'/>
 
 
     </context>

+ 525 - 0
web/monitor-web-sxjn/src/main/resources/mybatis/auto/WindpowerstationPGMapper.xml

@@ -0,0 +1,525 @@
+<?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.WindpowerstationPGMapper">
+  <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.WindpowerstationPG">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="code" jdbcType="VARCHAR" property="code" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="address" jdbcType="VARCHAR" property="address" />
+    <result column="telephone" jdbcType="VARCHAR" property="telephone" />
+    <result column="capacity" jdbcType="NUMERIC" property="capacity" />
+    <result column="capacityunit" jdbcType="VARCHAR" property="capacityunit" />
+    <result column="quantity" jdbcType="NUMERIC" property="quantity" />
+    <result column="aname" jdbcType="VARCHAR" property="aname" />
+    <result column="longitude" jdbcType="NUMERIC" property="longitude" />
+    <result column="latitude" jdbcType="NUMERIC" property="latitude" />
+    <result column="photo" jdbcType="VARCHAR" property="photo" />
+    <result column="companyid" jdbcType="VARCHAR" property="companyid" />
+    <result column="systemmanufact" jdbcType="VARCHAR" property="systemmanufact" />
+    <result column="headfarm" jdbcType="VARCHAR" property="headfarm" />
+    <result column="headfarmphone" jdbcType="VARCHAR" property="headfarmphone" />
+    <result column="model" jdbcType="VARCHAR" property="model" />
+    <result column="ordernum" jdbcType="NUMERIC" property="ordernum" />
+    <result column="altitude" jdbcType="NUMERIC" property="altitude" />
+    <result column="height" jdbcType="NUMERIC" property="height" />
+    <result column="regionid" jdbcType="VARCHAR" property="regionid" />
+  </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, code, name, address, telephone, capacity, capacityunit, quantity, aname, longitude, 
+    latitude, photo, companyid, systemmanufact, headfarm, headfarmphone, model, ordernum, 
+    altitude, height, regionid
+  </sql>
+  <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationPGExample" 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 windpowerstation
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from windpowerstation
+    where id = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windpowerstation
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationPGExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from windpowerstation
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windpowerstation (id, code, name, 
+      address, telephone, capacity, 
+      capacityunit, quantity, aname, 
+      longitude, latitude, photo, 
+      companyid, systemmanufact, headfarm, 
+      headfarmphone, model, ordernum, 
+      altitude, height, regionid
+      )
+    values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
+      #{address,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, #{capacity,jdbcType=NUMERIC}, 
+      #{capacityunit,jdbcType=VARCHAR}, #{quantity,jdbcType=NUMERIC}, #{aname,jdbcType=VARCHAR}, 
+      #{longitude,jdbcType=NUMERIC}, #{latitude,jdbcType=NUMERIC}, #{photo,jdbcType=VARCHAR}, 
+      #{companyid,jdbcType=VARCHAR}, #{systemmanufact,jdbcType=VARCHAR}, #{headfarm,jdbcType=VARCHAR}, 
+      #{headfarmphone,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{ordernum,jdbcType=NUMERIC}, 
+      #{altitude,jdbcType=NUMERIC}, #{height,jdbcType=NUMERIC}, #{regionid,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into windpowerstation
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="code != null">
+        code,
+      </if>
+      <if test="name != null">
+        name,
+      </if>
+      <if test="address != null">
+        address,
+      </if>
+      <if test="telephone != null">
+        telephone,
+      </if>
+      <if test="capacity != null">
+        capacity,
+      </if>
+      <if test="capacityunit != null">
+        capacityunit,
+      </if>
+      <if test="quantity != null">
+        quantity,
+      </if>
+      <if test="aname != null">
+        aname,
+      </if>
+      <if test="longitude != null">
+        longitude,
+      </if>
+      <if test="latitude != null">
+        latitude,
+      </if>
+      <if test="photo != null">
+        photo,
+      </if>
+      <if test="companyid != null">
+        companyid,
+      </if>
+      <if test="systemmanufact != null">
+        systemmanufact,
+      </if>
+      <if test="headfarm != null">
+        headfarm,
+      </if>
+      <if test="headfarmphone != null">
+        headfarmphone,
+      </if>
+      <if test="model != null">
+        model,
+      </if>
+      <if test="ordernum != null">
+        ordernum,
+      </if>
+      <if test="altitude != null">
+        altitude,
+      </if>
+      <if test="height != null">
+        height,
+      </if>
+      <if test="regionid != null">
+        regionid,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="code != null">
+        #{code,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="address != null">
+        #{address,jdbcType=VARCHAR},
+      </if>
+      <if test="telephone != null">
+        #{telephone,jdbcType=VARCHAR},
+      </if>
+      <if test="capacity != null">
+        #{capacity,jdbcType=NUMERIC},
+      </if>
+      <if test="capacityunit != null">
+        #{capacityunit,jdbcType=VARCHAR},
+      </if>
+      <if test="quantity != null">
+        #{quantity,jdbcType=NUMERIC},
+      </if>
+      <if test="aname != null">
+        #{aname,jdbcType=VARCHAR},
+      </if>
+      <if test="longitude != null">
+        #{longitude,jdbcType=NUMERIC},
+      </if>
+      <if test="latitude != null">
+        #{latitude,jdbcType=NUMERIC},
+      </if>
+      <if test="photo != null">
+        #{photo,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null">
+        #{companyid,jdbcType=VARCHAR},
+      </if>
+      <if test="systemmanufact != null">
+        #{systemmanufact,jdbcType=VARCHAR},
+      </if>
+      <if test="headfarm != null">
+        #{headfarm,jdbcType=VARCHAR},
+      </if>
+      <if test="headfarmphone != null">
+        #{headfarmphone,jdbcType=VARCHAR},
+      </if>
+      <if test="model != null">
+        #{model,jdbcType=VARCHAR},
+      </if>
+      <if test="ordernum != null">
+        #{ordernum,jdbcType=NUMERIC},
+      </if>
+      <if test="altitude != null">
+        #{altitude,jdbcType=NUMERIC},
+      </if>
+      <if test="height != null">
+        #{height,jdbcType=NUMERIC},
+      </if>
+      <if test="regionid != null">
+        #{regionid,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.gyee.frame.model.auto.WindpowerstationPGExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from windpowerstation
+    <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 windpowerstation
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.code != null">
+        code = #{record.code,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null">
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.address != null">
+        address = #{record.address,jdbcType=VARCHAR},
+      </if>
+      <if test="record.telephone != null">
+        telephone = #{record.telephone,jdbcType=VARCHAR},
+      </if>
+      <if test="record.capacity != null">
+        capacity = #{record.capacity,jdbcType=NUMERIC},
+      </if>
+      <if test="record.capacityunit != null">
+        capacityunit = #{record.capacityunit,jdbcType=VARCHAR},
+      </if>
+      <if test="record.quantity != null">
+        quantity = #{record.quantity,jdbcType=NUMERIC},
+      </if>
+      <if test="record.aname != null">
+        aname = #{record.aname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.longitude != null">
+        longitude = #{record.longitude,jdbcType=NUMERIC},
+      </if>
+      <if test="record.latitude != null">
+        latitude = #{record.latitude,jdbcType=NUMERIC},
+      </if>
+      <if test="record.photo != null">
+        photo = #{record.photo,jdbcType=VARCHAR},
+      </if>
+      <if test="record.companyid != null">
+        companyid = #{record.companyid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.systemmanufact != null">
+        systemmanufact = #{record.systemmanufact,jdbcType=VARCHAR},
+      </if>
+      <if test="record.headfarm != null">
+        headfarm = #{record.headfarm,jdbcType=VARCHAR},
+      </if>
+      <if test="record.headfarmphone != null">
+        headfarmphone = #{record.headfarmphone,jdbcType=VARCHAR},
+      </if>
+      <if test="record.model != null">
+        model = #{record.model,jdbcType=VARCHAR},
+      </if>
+      <if test="record.ordernum != null">
+        ordernum = #{record.ordernum,jdbcType=NUMERIC},
+      </if>
+      <if test="record.altitude != null">
+        altitude = #{record.altitude,jdbcType=NUMERIC},
+      </if>
+      <if test="record.height != null">
+        height = #{record.height,jdbcType=NUMERIC},
+      </if>
+      <if test="record.regionid != null">
+        regionid = #{record.regionid,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 windpowerstation
+    set id = #{record.id,jdbcType=VARCHAR},
+      code = #{record.code,jdbcType=VARCHAR},
+      name = #{record.name,jdbcType=VARCHAR},
+      address = #{record.address,jdbcType=VARCHAR},
+      telephone = #{record.telephone,jdbcType=VARCHAR},
+      capacity = #{record.capacity,jdbcType=NUMERIC},
+      capacityunit = #{record.capacityunit,jdbcType=VARCHAR},
+      quantity = #{record.quantity,jdbcType=NUMERIC},
+      aname = #{record.aname,jdbcType=VARCHAR},
+      longitude = #{record.longitude,jdbcType=NUMERIC},
+      latitude = #{record.latitude,jdbcType=NUMERIC},
+      photo = #{record.photo,jdbcType=VARCHAR},
+      companyid = #{record.companyid,jdbcType=VARCHAR},
+      systemmanufact = #{record.systemmanufact,jdbcType=VARCHAR},
+      headfarm = #{record.headfarm,jdbcType=VARCHAR},
+      headfarmphone = #{record.headfarmphone,jdbcType=VARCHAR},
+      model = #{record.model,jdbcType=VARCHAR},
+      ordernum = #{record.ordernum,jdbcType=NUMERIC},
+      altitude = #{record.altitude,jdbcType=NUMERIC},
+      height = #{record.height,jdbcType=NUMERIC},
+      regionid = #{record.regionid,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windpowerstation
+    <set>
+      <if test="code != null">
+        code = #{code,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="address != null">
+        address = #{address,jdbcType=VARCHAR},
+      </if>
+      <if test="telephone != null">
+        telephone = #{telephone,jdbcType=VARCHAR},
+      </if>
+      <if test="capacity != null">
+        capacity = #{capacity,jdbcType=NUMERIC},
+      </if>
+      <if test="capacityunit != null">
+        capacityunit = #{capacityunit,jdbcType=VARCHAR},
+      </if>
+      <if test="quantity != null">
+        quantity = #{quantity,jdbcType=NUMERIC},
+      </if>
+      <if test="aname != null">
+        aname = #{aname,jdbcType=VARCHAR},
+      </if>
+      <if test="longitude != null">
+        longitude = #{longitude,jdbcType=NUMERIC},
+      </if>
+      <if test="latitude != null">
+        latitude = #{latitude,jdbcType=NUMERIC},
+      </if>
+      <if test="photo != null">
+        photo = #{photo,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null">
+        companyid = #{companyid,jdbcType=VARCHAR},
+      </if>
+      <if test="systemmanufact != null">
+        systemmanufact = #{systemmanufact,jdbcType=VARCHAR},
+      </if>
+      <if test="headfarm != null">
+        headfarm = #{headfarm,jdbcType=VARCHAR},
+      </if>
+      <if test="headfarmphone != null">
+        headfarmphone = #{headfarmphone,jdbcType=VARCHAR},
+      </if>
+      <if test="model != null">
+        model = #{model,jdbcType=VARCHAR},
+      </if>
+      <if test="ordernum != null">
+        ordernum = #{ordernum,jdbcType=NUMERIC},
+      </if>
+      <if test="altitude != null">
+        altitude = #{altitude,jdbcType=NUMERIC},
+      </if>
+      <if test="height != null">
+        height = #{height,jdbcType=NUMERIC},
+      </if>
+      <if test="regionid != null">
+        regionid = #{regionid,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.WindpowerstationPG">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update windpowerstation
+    set code = #{code,jdbcType=VARCHAR},
+      name = #{name,jdbcType=VARCHAR},
+      address = #{address,jdbcType=VARCHAR},
+      telephone = #{telephone,jdbcType=VARCHAR},
+      capacity = #{capacity,jdbcType=NUMERIC},
+      capacityunit = #{capacityunit,jdbcType=VARCHAR},
+      quantity = #{quantity,jdbcType=NUMERIC},
+      aname = #{aname,jdbcType=VARCHAR},
+      longitude = #{longitude,jdbcType=NUMERIC},
+      latitude = #{latitude,jdbcType=NUMERIC},
+      photo = #{photo,jdbcType=VARCHAR},
+      companyid = #{companyid,jdbcType=VARCHAR},
+      systemmanufact = #{systemmanufact,jdbcType=VARCHAR},
+      headfarm = #{headfarm,jdbcType=VARCHAR},
+      headfarmphone = #{headfarmphone,jdbcType=VARCHAR},
+      model = #{model,jdbcType=VARCHAR},
+      ordernum = #{ordernum,jdbcType=NUMERIC},
+      altitude = #{altitude,jdbcType=NUMERIC},
+      height = #{height,jdbcType=NUMERIC},
+      regionid = #{regionid,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>