diff --git a/hzims-service-api/assets-api/src/main/java/com/hnac/hzims/spare/h.java b/hzims-service-api/assets-api/src/main/java/com/hnac/hzims/spare/h.java new file mode 100644 index 0000000..e69de29 diff --git a/hzims-service-api/base-info-api/pom.xml b/hzims-service-api/base-info-api/pom.xml new file mode 100644 index 0000000..3fcd836 --- /dev/null +++ b/hzims-service-api/base-info-api/pom.xml @@ -0,0 +1,23 @@ + + + 4.0.0 + + com.hnac.hzims + hzims-service-api + 4.0.0-SNAPSHOT + + + + base-info-api + ${hzims.project.version} + jar + + + 8 + 8 + UTF-8 + + + \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/FileReservoirInfo.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/FileReservoirInfo.java new file mode 100644 index 0000000..379d842 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/FileReservoirInfo.java @@ -0,0 +1,65 @@ +package com.hnac.hzims.baseinfo.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * 文件 + * + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:01 + */ +@Data +@Accessors(chain = true) +@TableName("file_reservoir_info") +public class FileReservoirInfo implements Serializable { + + + /** + * 视频Id + */ + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + + /** + * '视频地址' + */ + private String file; + + + /** + * 站点Id + */ + private String reservoirInfoId; + + + + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + + /** + * 逻辑删除0 正常 1 删除 + */ + @TableLogic + private int isDeleted; +} diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ImageReservoirInfo.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ImageReservoirInfo.java new file mode 100644 index 0000000..687249f --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ImageReservoirInfo.java @@ -0,0 +1,62 @@ +package com.hnac.hzims.baseinfo.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * 文件 + * + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:01 + */ +@Data +@Accessors(chain = true) +@TableName("image_reservoir_info") +public class ImageReservoirInfo implements Serializable { + + + /** + * 视频Id + */ + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + + /** + * '视频地址' + */ + private String image; + + + /** + * 站点Id + */ + private String reservoirInfoId; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + + /** + * 逻辑删除0 正常 1 删除 + */ + @TableLogic + private int isDeleted; +} diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReach.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReach.java new file mode 100644 index 0000000..2513e9f --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReach.java @@ -0,0 +1,62 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; + +/** + * 河流 <国标> + * + * @author moze + * + */ +public class IrrBIReach { + private String riverCode; // 河流代码 + + private String riverName; // 河流名称 + + private BigDecimal riverWidth; // 河槽平均宽度(米) + + private BigDecimal riverFlux; // 河槽平均流量(立方米/秒) + + private String coordinateset; // 经纬集合 + + public String getCoordinateset() { + return coordinateset; + } + + public void setCoordinateset(String coordinateset) { + this.coordinateset = coordinateset; + } + + public String getRiverCode() { + return riverCode; + } + + public void setRiverCode(String riverCode) { + this.riverCode = riverCode; + } + + public String getRiverName() { + return riverName; + } + + public void setRiverName(String riverName) { + this.riverName = riverName; + } + + public BigDecimal getRiverWidth() { + return riverWidth; + } + + public void setRiverWidth(BigDecimal riverWidth) { + this.riverWidth = riverWidth; + } + + public BigDecimal getRiverFlux() { + return riverFlux; + } + + public void setRiverFlux(BigDecimal riverFlux) { + this.riverFlux = riverFlux; + } + +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReachExample.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReachExample.java new file mode 100644 index 0000000..888d33a --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReachExample.java @@ -0,0 +1,531 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class IrrBIReachExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public IrrBIReachExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andRiverCodeIsNull() { + addCriterion("RIVER_CODE is null"); + return (Criteria) this; + } + + public Criteria andRiverCodeIsNotNull() { + addCriterion("RIVER_CODE is not null"); + return (Criteria) this; + } + + public Criteria andRiverCodeEqualTo(String value) { + addCriterion("RIVER_CODE =", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeNotEqualTo(String value) { + addCriterion("RIVER_CODE <>", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeGreaterThan(String value) { + addCriterion("RIVER_CODE >", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeGreaterThanOrEqualTo(String value) { + addCriterion("RIVER_CODE >=", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeLessThan(String value) { + addCriterion("RIVER_CODE <", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeLessThanOrEqualTo(String value) { + addCriterion("RIVER_CODE <=", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeLike(String value) { + addCriterion("RIVER_CODE like", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeNotLike(String value) { + addCriterion("RIVER_CODE not like", value, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeIn(List values) { + addCriterion("RIVER_CODE in", values, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeNotIn(List values) { + addCriterion("RIVER_CODE not in", values, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeBetween(String value1, String value2) { + addCriterion("RIVER_CODE between", value1, value2, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverCodeNotBetween(String value1, String value2) { + addCriterion("RIVER_CODE not between", value1, value2, "riverCode"); + return (Criteria) this; + } + + public Criteria andRiverNameIsNull() { + addCriterion("RIVER_NAME is null"); + return (Criteria) this; + } + + public Criteria andRiverNameIsNotNull() { + addCriterion("RIVER_NAME is not null"); + return (Criteria) this; + } + + public Criteria andRiverNameEqualTo(String value) { + addCriterion("RIVER_NAME =", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameNotEqualTo(String value) { + addCriterion("RIVER_NAME <>", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameGreaterThan(String value) { + addCriterion("RIVER_NAME >", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameGreaterThanOrEqualTo(String value) { + addCriterion("RIVER_NAME >=", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameLessThan(String value) { + addCriterion("RIVER_NAME <", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameLessThanOrEqualTo(String value) { + addCriterion("RIVER_NAME <=", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameLike(String value) { + addCriterion("RIVER_NAME like", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameNotLike(String value) { + addCriterion("RIVER_NAME not like", value, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameIn(List values) { + addCriterion("RIVER_NAME in", values, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameNotIn(List values) { + addCriterion("RIVER_NAME not in", values, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameBetween(String value1, String value2) { + addCriterion("RIVER_NAME between", value1, value2, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverNameNotBetween(String value1, String value2) { + addCriterion("RIVER_NAME not between", value1, value2, "riverName"); + return (Criteria) this; + } + + public Criteria andRiverWidthIsNull() { + addCriterion("RIVER_WIDTH is null"); + return (Criteria) this; + } + + public Criteria andRiverWidthIsNotNull() { + addCriterion("RIVER_WIDTH is not null"); + return (Criteria) this; + } + + public Criteria andRiverWidthEqualTo(BigDecimal value) { + addCriterion("RIVER_WIDTH =", value, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthNotEqualTo(BigDecimal value) { + addCriterion("RIVER_WIDTH <>", value, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthGreaterThan(BigDecimal value) { + addCriterion("RIVER_WIDTH >", value, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("RIVER_WIDTH >=", value, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthLessThan(BigDecimal value) { + addCriterion("RIVER_WIDTH <", value, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthLessThanOrEqualTo(BigDecimal value) { + addCriterion("RIVER_WIDTH <=", value, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthIn(List values) { + addCriterion("RIVER_WIDTH in", values, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthNotIn(List values) { + addCriterion("RIVER_WIDTH not in", values, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RIVER_WIDTH between", value1, value2, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverWidthNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RIVER_WIDTH not between", value1, value2, "riverWidth"); + return (Criteria) this; + } + + public Criteria andRiverFluxIsNull() { + addCriterion("RIVER_FLUX is null"); + return (Criteria) this; + } + + public Criteria andRiverFluxIsNotNull() { + addCriterion("RIVER_FLUX is not null"); + return (Criteria) this; + } + + public Criteria andRiverFluxEqualTo(BigDecimal value) { + addCriterion("RIVER_FLUX =", value, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxNotEqualTo(BigDecimal value) { + addCriterion("RIVER_FLUX <>", value, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxGreaterThan(BigDecimal value) { + addCriterion("RIVER_FLUX >", value, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("RIVER_FLUX >=", value, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxLessThan(BigDecimal value) { + addCriterion("RIVER_FLUX <", value, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxLessThanOrEqualTo(BigDecimal value) { + addCriterion("RIVER_FLUX <=", value, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxIn(List values) { + addCriterion("RIVER_FLUX in", values, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxNotIn(List values) { + addCriterion("RIVER_FLUX not in", values, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RIVER_FLUX between", value1, value2, "riverFlux"); + return (Criteria) this; + } + + public Criteria andRiverFluxNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RIVER_FLUX not between", value1, value2, "riverFlux"); + return (Criteria) this; + } + + public Criteria andCoordinatesetIsNull() { + addCriterion("COORDINATESET is null"); + return (Criteria) this; + } + + public Criteria andCoordinatesetIsNotNull() { + addCriterion("COORDINATESET is not null"); + return (Criteria) this; + } + + public Criteria andCoordinatesetEqualTo(String value) { + addCriterion("COORDINATESET =", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotEqualTo(String value) { + addCriterion("COORDINATESET <>", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetGreaterThan(String value) { + addCriterion("COORDINATESET >", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetGreaterThanOrEqualTo(String value) { + addCriterion("COORDINATESET >=", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetLessThan(String value) { + addCriterion("COORDINATESET <", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetLessThanOrEqualTo(String value) { + addCriterion("COORDINATESET <=", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetLike(String value) { + addCriterion("COORDINATESET like", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotLike(String value) { + addCriterion("COORDINATESET not like", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetIn(List values) { + addCriterion("COORDINATESET in", values, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotIn(List values) { + addCriterion("COORDINATESET not in", values, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetBetween(String value1, String value2) { + addCriterion("COORDINATESET between", value1, value2, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotBetween(String value1, String value2) { + addCriterion("COORDINATESET not between", value1, value2, "coordinateset"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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); + } + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfo.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfo.java new file mode 100644 index 0000000..c8af1b7 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfo.java @@ -0,0 +1,408 @@ +package com.hnac.hzims.baseinfo.entity; + + + +import com.hnac.hzims.baseinfo.vo.ReservoirInfoVo; + +import java.util.Date; + +/** + * 水库基本信息表 《参照国标自行设计》 + * + * @author moze + * + */ +public class ReservoirInfo { + private String stcd; // 水库编号 + + private String stationid; // 站点ID + + private Float discharge; // 水库核定下泄流量 m³/s + + private String name; // 水库名称 + + private String location; // 水库地址 + + private String village; // 所在乡镇村 + + private Float roadlength; // 防汛公路长度 m + + private String roadconditiion;// 防汛公路状况 + + private Date builddate;// 建设时间 + + private Date completeddate;// 竣工时间 + + private Float rainarea;// 积雨面积km² + + private Float designedfloodflow;// 设计洪水流量m³/s + + private Float chedkedfloodflow;// 校核洪水流量m³/s + + private Float designedfillarea;// 设计灌面km² + + private Float designedtotalflow;// 设计洪水总量 万m³ + + private Float checdedtotalflow;// 校核洪水总量 万m³ + + private Float averagerainfall;// 平均降雨量 mm + + private Float designedmaxflow;// 设计最大泄量 m³/s + + private Float checkedmaxflow;// 校核最大泄量m³/s + + private Float volume;// 总库容 万m³ + + private Float checkedfloodlevel;// 校核洪水位 + + private Float historicalmaxlevel;// 历史最高水位 + + private Float floodcontrolvolume;// 防洪库容 万m³ + + private Float designedfloodlevel; // 设计洪水位 m + + private Date maxleveltime; // 最高水位发生时间 + + private Float utilizablevolume; // 兴利库容万m³ + + private Float norrmallevel; // 正常蓄水位 m + + private Float flooddetentionvolume; // 滞洪库容 万m³ + + private Float deadlevel; // 死水位 m + + private String areaCode; // 行政区划Code + + private String lrcd; // 湖库代码 + + private String szhldm; // 所在河流代码 + + private Float dongj; // 东经 + + private Float beiw; // 北纬 + + private Float mjflsscnwl; //主汛期限制水位 + + public Float getMjflsscnwl() { + return mjflsscnwl; + } + + public void setMjflsscnwl(Float mjflsscnwl) { + this.mjflsscnwl = mjflsscnwl; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public String getLrcd() { + return lrcd; + } + + public void setLrcd(String lrcd) { + this.lrcd = lrcd; + } + + public String getSzhldm() { + return szhldm; + } + + public void setSzhldm(String szhldm) { + this.szhldm = szhldm; + } + + public Float getDongj() { + return dongj; + } + + public void setDongj(Float dongj) { + this.dongj = dongj; + } + + public Float getBeiw() { + return beiw; + } + + public void setBeiw(Float beiw) { + this.beiw = beiw; + } + + public ReservoirInfo() { + } + + public ReservoirInfo(ReservoirInfoVo vo) { + this.averagerainfall = vo.getAveragerainfall(); + this.builddate = vo.getBuilddate(); + this.checdedtotalflow = vo.getChecdedtotalflow(); + this.checkedfloodlevel = vo.getCheckedfloodlevel(); + this.checkedmaxflow = vo.getCheckedmaxflow(); + this.chedkedfloodflow = vo.getChedkedfloodflow(); + this.completeddate = vo.getCompleteddate(); + this.deadlevel = vo.getDeadlevel(); + this.designedfillarea = vo.getDesignedfillarea(); + this.designedfloodflow = vo.getDesignedfloodflow(); + this.designedfloodlevel = vo.getDesignedfloodlevel(); + this.designedmaxflow = vo.getDesignedmaxflow(); + this.designedtotalflow = vo.getDesignedtotalflow(); + this.discharge = vo.getDischarge(); + this.floodcontrolvolume = vo.getFloodcontrolvolume(); + this.flooddetentionvolume = vo.getFlooddetentionvolume(); + this.historicalmaxlevel = vo.getHistoricalmaxlevel(); + this.location = vo.getLocation(); + this.maxleveltime = vo.getMaxleveltime(); + this.name = vo.getName(); + this.norrmallevel = vo.getNorrmallevel(); + this.rainarea = vo.getRainarea(); + this.roadconditiion = vo.getRoadconditiion(); + this.roadlength = vo.getRoadlength(); + this.stationid = vo.getStationid(); + this.stcd = vo.getStcd(); + this.utilizablevolume = vo.getUtilizablevolume(); + this.village = vo.getVillage(); + this.volume = vo.getVolume(); + this.areaCode = vo.getAreaCode(); + this.beiw = vo.getBeiw(); + this.dongj = vo.getDongj(); + this.lrcd = vo.getLrcd(); + this.szhldm = vo.getSzhldm(); + this.areaCode = vo.getAreaCode(); + this.mjflsscnwl = vo.getMjflsscnwl(); + } + + public String getStcd() { + return stcd; + } + + public void setStcd(String stcd) { + this.stcd = stcd; + } + + public String getStationid() { + return stationid; + } + + public void setStationid(String stationid) { + this.stationid = stationid; + } + + public Float getDischarge() { + return discharge; + } + + public void setDischarge(Float discharge) { + this.discharge = discharge; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } + + public String getVillage() { + return village; + } + + public void setVillage(String village) { + this.village = village; + } + + public Float getRoadlength() { + return roadlength; + } + + public void setRoadlength(Float roadlength) { + this.roadlength = roadlength; + } + + public String getRoadconditiion() { + return roadconditiion; + } + + public void setRoadconditiion(String roadconditiion) { + this.roadconditiion = roadconditiion; + } + + public Date getBuilddate() { + return builddate; + } + + public void setBuilddate(Date builddate) { + this.builddate = builddate; + } + + public Date getCompleteddate() { + return completeddate; + } + + public void setCompleteddate(Date completeddate) { + this.completeddate = completeddate; + } + + public Float getRainarea() { + return rainarea; + } + + public void setRainarea(Float rainarea) { + this.rainarea = rainarea; + } + + public Float getDesignedfloodflow() { + return designedfloodflow; + } + + public void setDesignedfloodflow(Float designedfloodflow) { + this.designedfloodflow = designedfloodflow; + } + + public Float getChedkedfloodflow() { + return chedkedfloodflow; + } + + public void setChedkedfloodflow(Float chedkedfloodflow) { + this.chedkedfloodflow = chedkedfloodflow; + } + + public Float getDesignedfillarea() { + return designedfillarea; + } + + public void setDesignedfillarea(Float designedfillarea) { + this.designedfillarea = designedfillarea; + } + + public Float getDesignedtotalflow() { + return designedtotalflow; + } + + public void setDesignedtotalflow(Float designedtotalflow) { + this.designedtotalflow = designedtotalflow; + } + + public Float getChecdedtotalflow() { + return checdedtotalflow; + } + + public void setChecdedtotalflow(Float checdedtotalflow) { + this.checdedtotalflow = checdedtotalflow; + } + + public Float getAveragerainfall() { + return averagerainfall; + } + + public void setAveragerainfall(Float averagerainfall) { + this.averagerainfall = averagerainfall; + } + + public Float getDesignedmaxflow() { + return designedmaxflow; + } + + public void setDesignedmaxflow(Float designedmaxflow) { + this.designedmaxflow = designedmaxflow; + } + + public Float getCheckedmaxflow() { + return checkedmaxflow; + } + + public void setCheckedmaxflow(Float checkedmaxflow) { + this.checkedmaxflow = checkedmaxflow; + } + + public Float getVolume() { + return volume; + } + + public void setVolume(Float volume) { + this.volume = volume; + } + + public Float getCheckedfloodlevel() { + return checkedfloodlevel; + } + + public void setCheckedfloodlevel(Float checkedfloodlevel) { + this.checkedfloodlevel = checkedfloodlevel; + } + + public Float getHistoricalmaxlevel() { + return historicalmaxlevel; + } + + public void setHistoricalmaxlevel(Float historicalmaxlevel) { + this.historicalmaxlevel = historicalmaxlevel; + } + + public Float getFloodcontrolvolume() { + return floodcontrolvolume; + } + + public void setFloodcontrolvolume(Float floodcontrolvolume) { + this.floodcontrolvolume = floodcontrolvolume; + } + + public Float getDesignedfloodlevel() { + return designedfloodlevel; + } + + public void setDesignedfloodlevel(Float designedfloodlevel) { + this.designedfloodlevel = designedfloodlevel; + } + + public Date getMaxleveltime() { + return maxleveltime; + } + + public void setMaxleveltime(Date maxleveltime) { + this.maxleveltime = maxleveltime; + } + + public Float getUtilizablevolume() { + return utilizablevolume; + } + + public void setUtilizablevolume(Float utilizablevolume) { + this.utilizablevolume = utilizablevolume; + } + + public Float getNorrmallevel() { + return norrmallevel; + } + + public void setNorrmallevel(Float norrmallevel) { + this.norrmallevel = norrmallevel; + } + + public Float getFlooddetentionvolume() { + return flooddetentionvolume; + } + + public void setFlooddetentionvolume(Float flooddetentionvolume) { + this.flooddetentionvolume = flooddetentionvolume; + } + + public Float getDeadlevel() { + return deadlevel; + } + + public void setDeadlevel(Float deadlevel) { + this.deadlevel = deadlevel; + } + +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfoExample.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfoExample.java new file mode 100644 index 0000000..51e78e3 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfoExample.java @@ -0,0 +1,2358 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class ReservoirInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ReservoirInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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)); + } + + protected void addCriterionForJDBCDate(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value.getTime()), property); + } + + protected void addCriterionForJDBCDate(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List dateList = new ArrayList(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + dateList.add(new java.sql.Date(iter.next().getTime())); + } + addCriterion(condition, dateList, property); + } + + protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); + } + + public Criteria andStcdIsNull() { + addCriterion("STCD is null"); + return (Criteria) this; + } + + public Criteria andStcdIsNotNull() { + addCriterion("STCD is not null"); + return (Criteria) this; + } + + public Criteria andStcdEqualTo(String value) { + addCriterion("STCD =", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotEqualTo(String value) { + addCriterion("STCD <>", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThan(String value) { + addCriterion("STCD >", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThanOrEqualTo(String value) { + addCriterion("STCD >=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThan(String value) { + addCriterion("STCD <", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThanOrEqualTo(String value) { + addCriterion("STCD <=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLike(String value) { + addCriterion("STCD like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotLike(String value) { + addCriterion("STCD not like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdIn(List values) { + addCriterion("STCD in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotIn(List values) { + addCriterion("STCD not in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdBetween(String value1, String value2) { + addCriterion("STCD between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotBetween(String value1, String value2) { + addCriterion("STCD not between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andStationidIsNull() { + addCriterion("STATIONID is null"); + return (Criteria) this; + } + + public Criteria andStationidIsNotNull() { + addCriterion("STATIONID is not null"); + return (Criteria) this; + } + + public Criteria andStationidEqualTo(String value) { + addCriterion("STATIONID =", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidNotEqualTo(String value) { + addCriterion("STATIONID <>", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidGreaterThan(String value) { + addCriterion("STATIONID >", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidGreaterThanOrEqualTo(String value) { + addCriterion("STATIONID >=", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidLessThan(String value) { + addCriterion("STATIONID <", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidLessThanOrEqualTo(String value) { + addCriterion("STATIONID <=", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidLike(String value) { + addCriterion("STATIONID like", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidNotLike(String value) { + addCriterion("STATIONID not like", value, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidIn(List values) { + addCriterion("STATIONID in", values, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidNotIn(List values) { + addCriterion("STATIONID not in", values, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidBetween(String value1, String value2) { + addCriterion("STATIONID between", value1, value2, "stationid"); + return (Criteria) this; + } + + public Criteria andStationidNotBetween(String value1, String value2) { + addCriterion("STATIONID not between", value1, value2, "stationid"); + return (Criteria) this; + } + + public Criteria andDischargeIsNull() { + addCriterion("DISCHARGE is null"); + return (Criteria) this; + } + + public Criteria andDischargeIsNotNull() { + addCriterion("DISCHARGE is not null"); + return (Criteria) this; + } + + public Criteria andDischargeEqualTo(Float value) { + addCriterion("DISCHARGE =", value, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeNotEqualTo(Float value) { + addCriterion("DISCHARGE <>", value, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeGreaterThan(Float value) { + addCriterion("DISCHARGE >", value, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeGreaterThanOrEqualTo(Float value) { + addCriterion("DISCHARGE >=", value, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeLessThan(Float value) { + addCriterion("DISCHARGE <", value, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeLessThanOrEqualTo(Float value) { + addCriterion("DISCHARGE <=", value, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeIn(List values) { + addCriterion("DISCHARGE in", values, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeNotIn(List values) { + addCriterion("DISCHARGE not in", values, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeBetween(Float value1, Float value2) { + addCriterion("DISCHARGE between", value1, value2, "discharge"); + return (Criteria) this; + } + + public Criteria andDischargeNotBetween(Float value1, Float value2) { + addCriterion("DISCHARGE not between", value1, value2, "discharge"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("NAME is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("NAME is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("NAME =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("NAME <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("NAME >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("NAME >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("NAME <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("NAME <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("NAME like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("NAME not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("NAME in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("NAME not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("NAME between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("NAME not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andLocationIsNull() { + addCriterion("LOCATION is null"); + return (Criteria) this; + } + + public Criteria andLocationIsNotNull() { + addCriterion("LOCATION is not null"); + return (Criteria) this; + } + + public Criteria andLocationEqualTo(String value) { + addCriterion("LOCATION =", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationNotEqualTo(String value) { + addCriterion("LOCATION <>", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationGreaterThan(String value) { + addCriterion("LOCATION >", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationGreaterThanOrEqualTo(String value) { + addCriterion("LOCATION >=", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationLessThan(String value) { + addCriterion("LOCATION <", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationLessThanOrEqualTo(String value) { + addCriterion("LOCATION <=", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationLike(String value) { + addCriterion("LOCATION like", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationNotLike(String value) { + addCriterion("LOCATION not like", value, "location"); + return (Criteria) this; + } + + public Criteria andLocationIn(List values) { + addCriterion("LOCATION in", values, "location"); + return (Criteria) this; + } + + public Criteria andLocationNotIn(List values) { + addCriterion("LOCATION not in", values, "location"); + return (Criteria) this; + } + + public Criteria andLocationBetween(String value1, String value2) { + addCriterion("LOCATION between", value1, value2, "location"); + return (Criteria) this; + } + + public Criteria andLocationNotBetween(String value1, String value2) { + addCriterion("LOCATION not between", value1, value2, "location"); + return (Criteria) this; + } + + public Criteria andVillageIsNull() { + addCriterion("VILLAGE is null"); + return (Criteria) this; + } + + public Criteria andVillageIsNotNull() { + addCriterion("VILLAGE is not null"); + return (Criteria) this; + } + + public Criteria andVillageEqualTo(String value) { + addCriterion("VILLAGE =", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageNotEqualTo(String value) { + addCriterion("VILLAGE <>", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageGreaterThan(String value) { + addCriterion("VILLAGE >", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageGreaterThanOrEqualTo(String value) { + addCriterion("VILLAGE >=", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageLessThan(String value) { + addCriterion("VILLAGE <", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageLessThanOrEqualTo(String value) { + addCriterion("VILLAGE <=", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageLike(String value) { + addCriterion("VILLAGE like", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageNotLike(String value) { + addCriterion("VILLAGE not like", value, "village"); + return (Criteria) this; + } + + public Criteria andVillageIn(List values) { + addCriterion("VILLAGE in", values, "village"); + return (Criteria) this; + } + + public Criteria andVillageNotIn(List values) { + addCriterion("VILLAGE not in", values, "village"); + return (Criteria) this; + } + + public Criteria andVillageBetween(String value1, String value2) { + addCriterion("VILLAGE between", value1, value2, "village"); + return (Criteria) this; + } + + public Criteria andVillageNotBetween(String value1, String value2) { + addCriterion("VILLAGE not between", value1, value2, "village"); + return (Criteria) this; + } + + public Criteria andRoadlengthIsNull() { + addCriterion("ROADLENGTH is null"); + return (Criteria) this; + } + + public Criteria andRoadlengthIsNotNull() { + addCriterion("ROADLENGTH is not null"); + return (Criteria) this; + } + + public Criteria andRoadlengthEqualTo(Float value) { + addCriterion("ROADLENGTH =", value, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthNotEqualTo(Float value) { + addCriterion("ROADLENGTH <>", value, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthGreaterThan(Float value) { + addCriterion("ROADLENGTH >", value, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthGreaterThanOrEqualTo(Float value) { + addCriterion("ROADLENGTH >=", value, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthLessThan(Float value) { + addCriterion("ROADLENGTH <", value, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthLessThanOrEqualTo(Float value) { + addCriterion("ROADLENGTH <=", value, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthIn(List values) { + addCriterion("ROADLENGTH in", values, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthNotIn(List values) { + addCriterion("ROADLENGTH not in", values, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthBetween(Float value1, Float value2) { + addCriterion("ROADLENGTH between", value1, value2, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadlengthNotBetween(Float value1, Float value2) { + addCriterion("ROADLENGTH not between", value1, value2, "roadlength"); + return (Criteria) this; + } + + public Criteria andRoadconditiionIsNull() { + addCriterion("ROADCONDITIION is null"); + return (Criteria) this; + } + + public Criteria andRoadconditiionIsNotNull() { + addCriterion("ROADCONDITIION is not null"); + return (Criteria) this; + } + + public Criteria andRoadconditiionEqualTo(String value) { + addCriterion("ROADCONDITIION =", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionNotEqualTo(String value) { + addCriterion("ROADCONDITIION <>", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionGreaterThan(String value) { + addCriterion("ROADCONDITIION >", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionGreaterThanOrEqualTo(String value) { + addCriterion("ROADCONDITIION >=", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionLessThan(String value) { + addCriterion("ROADCONDITIION <", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionLessThanOrEqualTo(String value) { + addCriterion("ROADCONDITIION <=", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionLike(String value) { + addCriterion("ROADCONDITIION like", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionNotLike(String value) { + addCriterion("ROADCONDITIION not like", value, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionIn(List values) { + addCriterion("ROADCONDITIION in", values, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionNotIn(List values) { + addCriterion("ROADCONDITIION not in", values, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionBetween(String value1, String value2) { + addCriterion("ROADCONDITIION between", value1, value2, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andRoadconditiionNotBetween(String value1, String value2) { + addCriterion("ROADCONDITIION not between", value1, value2, "roadconditiion"); + return (Criteria) this; + } + + public Criteria andBuilddateIsNull() { + addCriterion("BUILDDATE is null"); + return (Criteria) this; + } + + public Criteria andBuilddateIsNotNull() { + addCriterion("BUILDDATE is not null"); + return (Criteria) this; + } + + public Criteria andBuilddateEqualTo(Date value) { + addCriterionForJDBCDate("BUILDDATE =", value, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateNotEqualTo(Date value) { + addCriterionForJDBCDate("BUILDDATE <>", value, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateGreaterThan(Date value) { + addCriterionForJDBCDate("BUILDDATE >", value, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("BUILDDATE >=", value, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateLessThan(Date value) { + addCriterionForJDBCDate("BUILDDATE <", value, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("BUILDDATE <=", value, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateIn(List values) { + addCriterionForJDBCDate("BUILDDATE in", values, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateNotIn(List values) { + addCriterionForJDBCDate("BUILDDATE not in", values, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("BUILDDATE between", value1, value2, "builddate"); + return (Criteria) this; + } + + public Criteria andBuilddateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("BUILDDATE not between", value1, value2, "builddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateIsNull() { + addCriterion("COMPLETEDDATE is null"); + return (Criteria) this; + } + + public Criteria andCompleteddateIsNotNull() { + addCriterion("COMPLETEDDATE is not null"); + return (Criteria) this; + } + + public Criteria andCompleteddateEqualTo(Date value) { + addCriterionForJDBCDate("COMPLETEDDATE =", value, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateNotEqualTo(Date value) { + addCriterionForJDBCDate("COMPLETEDDATE <>", value, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateGreaterThan(Date value) { + addCriterionForJDBCDate("COMPLETEDDATE >", value, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("COMPLETEDDATE >=", value, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateLessThan(Date value) { + addCriterionForJDBCDate("COMPLETEDDATE <", value, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("COMPLETEDDATE <=", value, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateIn(List values) { + addCriterionForJDBCDate("COMPLETEDDATE in", values, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateNotIn(List values) { + addCriterionForJDBCDate("COMPLETEDDATE not in", values, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("COMPLETEDDATE between", value1, value2, "completeddate"); + return (Criteria) this; + } + + public Criteria andCompleteddateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("COMPLETEDDATE not between", value1, value2, "completeddate"); + return (Criteria) this; + } + + public Criteria andRainareaIsNull() { + addCriterion("RAINAREA is null"); + return (Criteria) this; + } + + public Criteria andRainareaIsNotNull() { + addCriterion("RAINAREA is not null"); + return (Criteria) this; + } + + public Criteria andRainareaEqualTo(Float value) { + addCriterion("RAINAREA =", value, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaNotEqualTo(Float value) { + addCriterion("RAINAREA <>", value, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaGreaterThan(Float value) { + addCriterion("RAINAREA >", value, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaGreaterThanOrEqualTo(Float value) { + addCriterion("RAINAREA >=", value, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaLessThan(Float value) { + addCriterion("RAINAREA <", value, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaLessThanOrEqualTo(Float value) { + addCriterion("RAINAREA <=", value, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaIn(List values) { + addCriterion("RAINAREA in", values, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaNotIn(List values) { + addCriterion("RAINAREA not in", values, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaBetween(Float value1, Float value2) { + addCriterion("RAINAREA between", value1, value2, "rainarea"); + return (Criteria) this; + } + + public Criteria andRainareaNotBetween(Float value1, Float value2) { + addCriterion("RAINAREA not between", value1, value2, "rainarea"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowIsNull() { + addCriterion("DESIGNEDFLOODFLOW is null"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowIsNotNull() { + addCriterion("DESIGNEDFLOODFLOW is not null"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowEqualTo(Float value) { + addCriterion("DESIGNEDFLOODFLOW =", value, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowNotEqualTo(Float value) { + addCriterion("DESIGNEDFLOODFLOW <>", value, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowGreaterThan(Float value) { + addCriterion("DESIGNEDFLOODFLOW >", value, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowGreaterThanOrEqualTo(Float value) { + addCriterion("DESIGNEDFLOODFLOW >=", value, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowLessThan(Float value) { + addCriterion("DESIGNEDFLOODFLOW <", value, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowLessThanOrEqualTo(Float value) { + addCriterion("DESIGNEDFLOODFLOW <=", value, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowIn(List values) { + addCriterion("DESIGNEDFLOODFLOW in", values, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowNotIn(List values) { + addCriterion("DESIGNEDFLOODFLOW not in", values, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowBetween(Float value1, Float value2) { + addCriterion("DESIGNEDFLOODFLOW between", value1, value2, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfloodflowNotBetween(Float value1, Float value2) { + addCriterion("DESIGNEDFLOODFLOW not between", value1, value2, "designedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowIsNull() { + addCriterion("CHEDKEDFLOODFLOW is null"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowIsNotNull() { + addCriterion("CHEDKEDFLOODFLOW is not null"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowEqualTo(Float value) { + addCriterion("CHEDKEDFLOODFLOW =", value, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowNotEqualTo(Float value) { + addCriterion("CHEDKEDFLOODFLOW <>", value, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowGreaterThan(Float value) { + addCriterion("CHEDKEDFLOODFLOW >", value, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowGreaterThanOrEqualTo(Float value) { + addCriterion("CHEDKEDFLOODFLOW >=", value, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowLessThan(Float value) { + addCriterion("CHEDKEDFLOODFLOW <", value, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowLessThanOrEqualTo(Float value) { + addCriterion("CHEDKEDFLOODFLOW <=", value, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowIn(List values) { + addCriterion("CHEDKEDFLOODFLOW in", values, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowNotIn(List values) { + addCriterion("CHEDKEDFLOODFLOW not in", values, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowBetween(Float value1, Float value2) { + addCriterion("CHEDKEDFLOODFLOW between", value1, value2, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andChedkedfloodflowNotBetween(Float value1, Float value2) { + addCriterion("CHEDKEDFLOODFLOW not between", value1, value2, "chedkedfloodflow"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaIsNull() { + addCriterion("DESIGNEDFILLAREA is null"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaIsNotNull() { + addCriterion("DESIGNEDFILLAREA is not null"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaEqualTo(Float value) { + addCriterion("DESIGNEDFILLAREA =", value, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaNotEqualTo(Float value) { + addCriterion("DESIGNEDFILLAREA <>", value, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaGreaterThan(Float value) { + addCriterion("DESIGNEDFILLAREA >", value, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaGreaterThanOrEqualTo(Float value) { + addCriterion("DESIGNEDFILLAREA >=", value, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaLessThan(Float value) { + addCriterion("DESIGNEDFILLAREA <", value, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaLessThanOrEqualTo(Float value) { + addCriterion("DESIGNEDFILLAREA <=", value, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaIn(List values) { + addCriterion("DESIGNEDFILLAREA in", values, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaNotIn(List values) { + addCriterion("DESIGNEDFILLAREA not in", values, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaBetween(Float value1, Float value2) { + addCriterion("DESIGNEDFILLAREA between", value1, value2, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedfillareaNotBetween(Float value1, Float value2) { + addCriterion("DESIGNEDFILLAREA not between", value1, value2, "designedfillarea"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowIsNull() { + addCriterion("DESIGNEDTOTALFLOW is null"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowIsNotNull() { + addCriterion("DESIGNEDTOTALFLOW is not null"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowEqualTo(Float value) { + addCriterion("DESIGNEDTOTALFLOW =", value, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowNotEqualTo(Float value) { + addCriterion("DESIGNEDTOTALFLOW <>", value, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowGreaterThan(Float value) { + addCriterion("DESIGNEDTOTALFLOW >", value, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowGreaterThanOrEqualTo(Float value) { + addCriterion("DESIGNEDTOTALFLOW >=", value, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowLessThan(Float value) { + addCriterion("DESIGNEDTOTALFLOW <", value, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowLessThanOrEqualTo(Float value) { + addCriterion("DESIGNEDTOTALFLOW <=", value, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowIn(List values) { + addCriterion("DESIGNEDTOTALFLOW in", values, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowNotIn(List values) { + addCriterion("DESIGNEDTOTALFLOW not in", values, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowBetween(Float value1, Float value2) { + addCriterion("DESIGNEDTOTALFLOW between", value1, value2, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andDesignedtotalflowNotBetween(Float value1, Float value2) { + addCriterion("DESIGNEDTOTALFLOW not between", value1, value2, "designedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowIsNull() { + addCriterion("CHECDEDTOTALFLOW is null"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowIsNotNull() { + addCriterion("CHECDEDTOTALFLOW is not null"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowEqualTo(Float value) { + addCriterion("CHECDEDTOTALFLOW =", value, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowNotEqualTo(Float value) { + addCriterion("CHECDEDTOTALFLOW <>", value, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowGreaterThan(Float value) { + addCriterion("CHECDEDTOTALFLOW >", value, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowGreaterThanOrEqualTo(Float value) { + addCriterion("CHECDEDTOTALFLOW >=", value, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowLessThan(Float value) { + addCriterion("CHECDEDTOTALFLOW <", value, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowLessThanOrEqualTo(Float value) { + addCriterion("CHECDEDTOTALFLOW <=", value, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowIn(List values) { + addCriterion("CHECDEDTOTALFLOW in", values, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowNotIn(List values) { + addCriterion("CHECDEDTOTALFLOW not in", values, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowBetween(Float value1, Float value2) { + addCriterion("CHECDEDTOTALFLOW between", value1, value2, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andChecdedtotalflowNotBetween(Float value1, Float value2) { + addCriterion("CHECDEDTOTALFLOW not between", value1, value2, "checdedtotalflow"); + return (Criteria) this; + } + + public Criteria andAveragerainfallIsNull() { + addCriterion("AVERAGERAINFALL is null"); + return (Criteria) this; + } + + public Criteria andAveragerainfallIsNotNull() { + addCriterion("AVERAGERAINFALL is not null"); + return (Criteria) this; + } + + public Criteria andAveragerainfallEqualTo(Float value) { + addCriterion("AVERAGERAINFALL =", value, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallNotEqualTo(Float value) { + addCriterion("AVERAGERAINFALL <>", value, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallGreaterThan(Float value) { + addCriterion("AVERAGERAINFALL >", value, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallGreaterThanOrEqualTo(Float value) { + addCriterion("AVERAGERAINFALL >=", value, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallLessThan(Float value) { + addCriterion("AVERAGERAINFALL <", value, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallLessThanOrEqualTo(Float value) { + addCriterion("AVERAGERAINFALL <=", value, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallIn(List values) { + addCriterion("AVERAGERAINFALL in", values, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallNotIn(List values) { + addCriterion("AVERAGERAINFALL not in", values, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallBetween(Float value1, Float value2) { + addCriterion("AVERAGERAINFALL between", value1, value2, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andAveragerainfallNotBetween(Float value1, Float value2) { + addCriterion("AVERAGERAINFALL not between", value1, value2, "averagerainfall"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowIsNull() { + addCriterion("DESIGNEDMAXFLOW is null"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowIsNotNull() { + addCriterion("DESIGNEDMAXFLOW is not null"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowEqualTo(Float value) { + addCriterion("DESIGNEDMAXFLOW =", value, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowNotEqualTo(Float value) { + addCriterion("DESIGNEDMAXFLOW <>", value, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowGreaterThan(Float value) { + addCriterion("DESIGNEDMAXFLOW >", value, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowGreaterThanOrEqualTo(Float value) { + addCriterion("DESIGNEDMAXFLOW >=", value, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowLessThan(Float value) { + addCriterion("DESIGNEDMAXFLOW <", value, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowLessThanOrEqualTo(Float value) { + addCriterion("DESIGNEDMAXFLOW <=", value, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowIn(List values) { + addCriterion("DESIGNEDMAXFLOW in", values, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowNotIn(List values) { + addCriterion("DESIGNEDMAXFLOW not in", values, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowBetween(Float value1, Float value2) { + addCriterion("DESIGNEDMAXFLOW between", value1, value2, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andDesignedmaxflowNotBetween(Float value1, Float value2) { + addCriterion("DESIGNEDMAXFLOW not between", value1, value2, "designedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowIsNull() { + addCriterion("CHECKEDMAXFLOW is null"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowIsNotNull() { + addCriterion("CHECKEDMAXFLOW is not null"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowEqualTo(Float value) { + addCriterion("CHECKEDMAXFLOW =", value, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowNotEqualTo(Float value) { + addCriterion("CHECKEDMAXFLOW <>", value, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowGreaterThan(Float value) { + addCriterion("CHECKEDMAXFLOW >", value, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowGreaterThanOrEqualTo(Float value) { + addCriterion("CHECKEDMAXFLOW >=", value, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowLessThan(Float value) { + addCriterion("CHECKEDMAXFLOW <", value, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowLessThanOrEqualTo(Float value) { + addCriterion("CHECKEDMAXFLOW <=", value, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowIn(List values) { + addCriterion("CHECKEDMAXFLOW in", values, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowNotIn(List values) { + addCriterion("CHECKEDMAXFLOW not in", values, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowBetween(Float value1, Float value2) { + addCriterion("CHECKEDMAXFLOW between", value1, value2, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andCheckedmaxflowNotBetween(Float value1, Float value2) { + addCriterion("CHECKEDMAXFLOW not between", value1, value2, "checkedmaxflow"); + return (Criteria) this; + } + + public Criteria andVolumeIsNull() { + addCriterion("VOLUME is null"); + return (Criteria) this; + } + + public Criteria andVolumeIsNotNull() { + addCriterion("VOLUME is not null"); + return (Criteria) this; + } + + public Criteria andVolumeEqualTo(Float value) { + addCriterion("VOLUME =", value, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeNotEqualTo(Float value) { + addCriterion("VOLUME <>", value, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeGreaterThan(Float value) { + addCriterion("VOLUME >", value, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeGreaterThanOrEqualTo(Float value) { + addCriterion("VOLUME >=", value, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeLessThan(Float value) { + addCriterion("VOLUME <", value, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeLessThanOrEqualTo(Float value) { + addCriterion("VOLUME <=", value, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeIn(List values) { + addCriterion("VOLUME in", values, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeNotIn(List values) { + addCriterion("VOLUME not in", values, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeBetween(Float value1, Float value2) { + addCriterion("VOLUME between", value1, value2, "volume"); + return (Criteria) this; + } + + public Criteria andVolumeNotBetween(Float value1, Float value2) { + addCriterion("VOLUME not between", value1, value2, "volume"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelIsNull() { + addCriterion("CHECKEDFLOODLEVEL is null"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelIsNotNull() { + addCriterion("CHECKEDFLOODLEVEL is not null"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelEqualTo(Float value) { + addCriterion("CHECKEDFLOODLEVEL =", value, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelNotEqualTo(Float value) { + addCriterion("CHECKEDFLOODLEVEL <>", value, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelGreaterThan(Float value) { + addCriterion("CHECKEDFLOODLEVEL >", value, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelGreaterThanOrEqualTo(Float value) { + addCriterion("CHECKEDFLOODLEVEL >=", value, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelLessThan(Float value) { + addCriterion("CHECKEDFLOODLEVEL <", value, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelLessThanOrEqualTo(Float value) { + addCriterion("CHECKEDFLOODLEVEL <=", value, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelIn(List values) { + addCriterion("CHECKEDFLOODLEVEL in", values, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelNotIn(List values) { + addCriterion("CHECKEDFLOODLEVEL not in", values, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelBetween(Float value1, Float value2) { + addCriterion("CHECKEDFLOODLEVEL between", value1, value2, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andCheckedfloodlevelNotBetween(Float value1, Float value2) { + addCriterion("CHECKEDFLOODLEVEL not between", value1, value2, "checkedfloodlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelIsNull() { + addCriterion("HISTORICALMAXLEVEL is null"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelIsNotNull() { + addCriterion("HISTORICALMAXLEVEL is not null"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelEqualTo(Float value) { + addCriterion("HISTORICALMAXLEVEL =", value, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelNotEqualTo(Float value) { + addCriterion("HISTORICALMAXLEVEL <>", value, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelGreaterThan(Float value) { + addCriterion("HISTORICALMAXLEVEL >", value, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelGreaterThanOrEqualTo(Float value) { + addCriterion("HISTORICALMAXLEVEL >=", value, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelLessThan(Float value) { + addCriterion("HISTORICALMAXLEVEL <", value, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelLessThanOrEqualTo(Float value) { + addCriterion("HISTORICALMAXLEVEL <=", value, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelIn(List values) { + addCriterion("HISTORICALMAXLEVEL in", values, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelNotIn(List values) { + addCriterion("HISTORICALMAXLEVEL not in", values, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelBetween(Float value1, Float value2) { + addCriterion("HISTORICALMAXLEVEL between", value1, value2, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andHistoricalmaxlevelNotBetween(Float value1, Float value2) { + addCriterion("HISTORICALMAXLEVEL not between", value1, value2, "historicalmaxlevel"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeIsNull() { + addCriterion("FLOODCONTROLVOLUME is null"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeIsNotNull() { + addCriterion("FLOODCONTROLVOLUME is not null"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeEqualTo(Float value) { + addCriterion("FLOODCONTROLVOLUME =", value, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeNotEqualTo(Float value) { + addCriterion("FLOODCONTROLVOLUME <>", value, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeGreaterThan(Float value) { + addCriterion("FLOODCONTROLVOLUME >", value, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeGreaterThanOrEqualTo(Float value) { + addCriterion("FLOODCONTROLVOLUME >=", value, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeLessThan(Float value) { + addCriterion("FLOODCONTROLVOLUME <", value, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeLessThanOrEqualTo(Float value) { + addCriterion("FLOODCONTROLVOLUME <=", value, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeIn(List values) { + addCriterion("FLOODCONTROLVOLUME in", values, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeNotIn(List values) { + addCriterion("FLOODCONTROLVOLUME not in", values, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeBetween(Float value1, Float value2) { + addCriterion("FLOODCONTROLVOLUME between", value1, value2, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andFloodcontrolvolumeNotBetween(Float value1, Float value2) { + addCriterion("FLOODCONTROLVOLUME not between", value1, value2, "floodcontrolvolume"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelIsNull() { + addCriterion("DESIGNEDFLOODLEVEL is null"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelIsNotNull() { + addCriterion("DESIGNEDFLOODLEVEL is not null"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelEqualTo(Float value) { + addCriterion("DESIGNEDFLOODLEVEL =", value, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelNotEqualTo(Float value) { + addCriterion("DESIGNEDFLOODLEVEL <>", value, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelGreaterThan(Float value) { + addCriterion("DESIGNEDFLOODLEVEL >", value, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelGreaterThanOrEqualTo(Float value) { + addCriterion("DESIGNEDFLOODLEVEL >=", value, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelLessThan(Float value) { + addCriterion("DESIGNEDFLOODLEVEL <", value, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelLessThanOrEqualTo(Float value) { + addCriterion("DESIGNEDFLOODLEVEL <=", value, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelIn(List values) { + addCriterion("DESIGNEDFLOODLEVEL in", values, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelNotIn(List values) { + addCriterion("DESIGNEDFLOODLEVEL not in", values, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelBetween(Float value1, Float value2) { + addCriterion("DESIGNEDFLOODLEVEL between", value1, value2, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andDesignedfloodlevelNotBetween(Float value1, Float value2) { + addCriterion("DESIGNEDFLOODLEVEL not between", value1, value2, "designedfloodlevel"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeIsNull() { + addCriterion("MAXLEVELTIME is null"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeIsNotNull() { + addCriterion("MAXLEVELTIME is not null"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeEqualTo(Date value) { + addCriterion("MAXLEVELTIME =", value, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeNotEqualTo(Date value) { + addCriterion("MAXLEVELTIME <>", value, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeGreaterThan(Date value) { + addCriterion("MAXLEVELTIME >", value, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeGreaterThanOrEqualTo(Date value) { + addCriterion("MAXLEVELTIME >=", value, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeLessThan(Date value) { + addCriterion("MAXLEVELTIME <", value, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeLessThanOrEqualTo(Date value) { + addCriterion("MAXLEVELTIME <=", value, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeIn(List values) { + addCriterion("MAXLEVELTIME in", values, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeNotIn(List values) { + addCriterion("MAXLEVELTIME not in", values, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeBetween(Date value1, Date value2) { + addCriterion("MAXLEVELTIME between", value1, value2, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andMaxleveltimeNotBetween(Date value1, Date value2) { + addCriterion("MAXLEVELTIME not between", value1, value2, "maxleveltime"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeIsNull() { + addCriterion("UTILIZABLEVOLUME is null"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeIsNotNull() { + addCriterion("UTILIZABLEVOLUME is not null"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeEqualTo(Float value) { + addCriterion("UTILIZABLEVOLUME =", value, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeNotEqualTo(Float value) { + addCriterion("UTILIZABLEVOLUME <>", value, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeGreaterThan(Float value) { + addCriterion("UTILIZABLEVOLUME >", value, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeGreaterThanOrEqualTo(Float value) { + addCriterion("UTILIZABLEVOLUME >=", value, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeLessThan(Float value) { + addCriterion("UTILIZABLEVOLUME <", value, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeLessThanOrEqualTo(Float value) { + addCriterion("UTILIZABLEVOLUME <=", value, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeIn(List values) { + addCriterion("UTILIZABLEVOLUME in", values, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeNotIn(List values) { + addCriterion("UTILIZABLEVOLUME not in", values, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeBetween(Float value1, Float value2) { + addCriterion("UTILIZABLEVOLUME between", value1, value2, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andUtilizablevolumeNotBetween(Float value1, Float value2) { + addCriterion("UTILIZABLEVOLUME not between", value1, value2, "utilizablevolume"); + return (Criteria) this; + } + + public Criteria andNorrmallevelIsNull() { + addCriterion("NORRMALLEVEL is null"); + return (Criteria) this; + } + + public Criteria andNorrmallevelIsNotNull() { + addCriterion("NORRMALLEVEL is not null"); + return (Criteria) this; + } + + public Criteria andNorrmallevelEqualTo(Float value) { + addCriterion("NORRMALLEVEL =", value, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelNotEqualTo(Float value) { + addCriterion("NORRMALLEVEL <>", value, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelGreaterThan(Float value) { + addCriterion("NORRMALLEVEL >", value, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelGreaterThanOrEqualTo(Float value) { + addCriterion("NORRMALLEVEL >=", value, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelLessThan(Float value) { + addCriterion("NORRMALLEVEL <", value, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelLessThanOrEqualTo(Float value) { + addCriterion("NORRMALLEVEL <=", value, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelIn(List values) { + addCriterion("NORRMALLEVEL in", values, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelNotIn(List values) { + addCriterion("NORRMALLEVEL not in", values, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelBetween(Float value1, Float value2) { + addCriterion("NORRMALLEVEL between", value1, value2, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andNorrmallevelNotBetween(Float value1, Float value2) { + addCriterion("NORRMALLEVEL not between", value1, value2, "norrmallevel"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeIsNull() { + addCriterion("FLOODDETENTIONVOLUME is null"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeIsNotNull() { + addCriterion("FLOODDETENTIONVOLUME is not null"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeEqualTo(Float value) { + addCriterion("FLOODDETENTIONVOLUME =", value, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeNotEqualTo(Float value) { + addCriterion("FLOODDETENTIONVOLUME <>", value, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeGreaterThan(Float value) { + addCriterion("FLOODDETENTIONVOLUME >", value, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeGreaterThanOrEqualTo(Float value) { + addCriterion("FLOODDETENTIONVOLUME >=", value, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeLessThan(Float value) { + addCriterion("FLOODDETENTIONVOLUME <", value, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeLessThanOrEqualTo(Float value) { + addCriterion("FLOODDETENTIONVOLUME <=", value, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeIn(List values) { + addCriterion("FLOODDETENTIONVOLUME in", values, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeNotIn(List values) { + addCriterion("FLOODDETENTIONVOLUME not in", values, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeBetween(Float value1, Float value2) { + addCriterion("FLOODDETENTIONVOLUME between", value1, value2, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andFlooddetentionvolumeNotBetween(Float value1, Float value2) { + addCriterion("FLOODDETENTIONVOLUME not between", value1, value2, "flooddetentionvolume"); + return (Criteria) this; + } + + public Criteria andDeadlevelIsNull() { + addCriterion("DEADLEVEL is null"); + return (Criteria) this; + } + + public Criteria andDeadlevelIsNotNull() { + addCriterion("DEADLEVEL is not null"); + return (Criteria) this; + } + + public Criteria andDeadlevelEqualTo(Float value) { + addCriterion("DEADLEVEL =", value, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelNotEqualTo(Float value) { + addCriterion("DEADLEVEL <>", value, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelGreaterThan(Float value) { + addCriterion("DEADLEVEL >", value, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelGreaterThanOrEqualTo(Float value) { + addCriterion("DEADLEVEL >=", value, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelLessThan(Float value) { + addCriterion("DEADLEVEL <", value, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelLessThanOrEqualTo(Float value) { + addCriterion("DEADLEVEL <=", value, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelIn(List values) { + addCriterion("DEADLEVEL in", values, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelNotIn(List values) { + addCriterion("DEADLEVEL not in", values, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelBetween(Float value1, Float value2) { + addCriterion("DEADLEVEL between", value1, value2, "deadlevel"); + return (Criteria) this; + } + + public Criteria andDeadlevelNotBetween(Float value1, Float value2) { + addCriterion("DEADLEVEL not between", value1, value2, "deadlevel"); + return (Criteria) this; + } + + public Criteria andAreaCodeIsNull() { + addCriterion("AREA_CODE is null"); + return (Criteria) this; + } + + public Criteria andAreaCodeIsNotNull() { + addCriterion("AREA_CODE is not null"); + return (Criteria) this; + } + + public Criteria andAreaCodeEqualTo(String value) { + addCriterion("AREA_CODE =", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeNotEqualTo(String value) { + addCriterion("AREA_CODE <>", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeGreaterThan(String value) { + addCriterion("AREA_CODE >", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeGreaterThanOrEqualTo(String value) { + addCriterion("AREA_CODE >=", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeLessThan(String value) { + addCriterion("AREA_CODE <", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeLessThanOrEqualTo(String value) { + addCriterion("AREA_CODE <=", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeLike(String value) { + addCriterion("AREA_CODE like", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeNotLike(String value) { + addCriterion("AREA_CODE not like", value, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeIn(List values) { + addCriterion("AREA_CODE in", values, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeNotIn(List values) { + addCriterion("AREA_CODE not in", values, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeBetween(String value1, String value2) { + addCriterion("AREA_CODE between", value1, value2, "areaCode"); + return (Criteria) this; + } + + public Criteria andAreaCodeNotBetween(String value1, String value2) { + addCriterion("AREA_CODE not between", value1, value2, "areaCode"); + return (Criteria) this; + } + + public Criteria andLrcdIsNull() { + addCriterion("LRCD is null"); + return (Criteria) this; + } + + public Criteria andLrcdIsNotNull() { + addCriterion("LRCD is not null"); + return (Criteria) this; + } + + public Criteria andLrcdEqualTo(String value) { + addCriterion("LRCD =", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotEqualTo(String value) { + addCriterion("LRCD <>", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdGreaterThan(String value) { + addCriterion("LRCD >", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdGreaterThanOrEqualTo(String value) { + addCriterion("LRCD >=", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdLessThan(String value) { + addCriterion("LRCD <", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdLessThanOrEqualTo(String value) { + addCriterion("LRCD <=", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdLike(String value) { + addCriterion("LRCD like", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotLike(String value) { + addCriterion("LRCD not like", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdIn(List values) { + addCriterion("LRCD in", values, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotIn(List values) { + addCriterion("LRCD not in", values, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdBetween(String value1, String value2) { + addCriterion("LRCD between", value1, value2, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotBetween(String value1, String value2) { + addCriterion("LRCD not between", value1, value2, "lrcd"); + return (Criteria) this; + } + + public Criteria andSzhldmIsNull() { + addCriterion("SZHLDM is null"); + return (Criteria) this; + } + + public Criteria andSzhldmIsNotNull() { + addCriterion("SZHLDM is not null"); + return (Criteria) this; + } + + public Criteria andSzhldmEqualTo(String value) { + addCriterion("SZHLDM =", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmNotEqualTo(String value) { + addCriterion("SZHLDM <>", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmGreaterThan(String value) { + addCriterion("SZHLDM >", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmGreaterThanOrEqualTo(String value) { + addCriterion("SZHLDM >=", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmLessThan(String value) { + addCriterion("SZHLDM <", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmLessThanOrEqualTo(String value) { + addCriterion("SZHLDM <=", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmLike(String value) { + addCriterion("SZHLDM like", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmNotLike(String value) { + addCriterion("SZHLDM not like", value, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmIn(List values) { + addCriterion("SZHLDM in", values, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmNotIn(List values) { + addCriterion("SZHLDM not in", values, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmBetween(String value1, String value2) { + addCriterion("SZHLDM between", value1, value2, "szhldm"); + return (Criteria) this; + } + + public Criteria andSzhldmNotBetween(String value1, String value2) { + addCriterion("SZHLDM not between", value1, value2, "szhldm"); + return (Criteria) this; + } + + public Criteria andDongjIsNull() { + addCriterion("DONGJ is null"); + return (Criteria) this; + } + + public Criteria andDongjIsNotNull() { + addCriterion("DONGJ is not null"); + return (Criteria) this; + } + + public Criteria andDongjEqualTo(Float value) { + addCriterion("DONGJ =", value, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjNotEqualTo(Float value) { + addCriterion("DONGJ <>", value, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjGreaterThan(Float value) { + addCriterion("DONGJ >", value, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjGreaterThanOrEqualTo(Float value) { + addCriterion("DONGJ >=", value, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjLessThan(Float value) { + addCriterion("DONGJ <", value, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjLessThanOrEqualTo(Float value) { + addCriterion("DONGJ <=", value, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjIn(List values) { + addCriterion("DONGJ in", values, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjNotIn(List values) { + addCriterion("DONGJ not in", values, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjBetween(Float value1, Float value2) { + addCriterion("DONGJ between", value1, value2, "dongj"); + return (Criteria) this; + } + + public Criteria andDongjNotBetween(Float value1, Float value2) { + addCriterion("DONGJ not between", value1, value2, "dongj"); + return (Criteria) this; + } + + public Criteria andBeiwIsNull() { + addCriterion("BEIW is null"); + return (Criteria) this; + } + + public Criteria andBeiwIsNotNull() { + addCriterion("BEIW is not null"); + return (Criteria) this; + } + + public Criteria andBeiwEqualTo(Float value) { + addCriterion("BEIW =", value, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwNotEqualTo(Float value) { + addCriterion("BEIW <>", value, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwGreaterThan(Float value) { + addCriterion("BEIW >", value, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwGreaterThanOrEqualTo(Float value) { + addCriterion("BEIW >=", value, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwLessThan(Float value) { + addCriterion("BEIW <", value, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwLessThanOrEqualTo(Float value) { + addCriterion("BEIW <=", value, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwIn(List values) { + addCriterion("BEIW in", values, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwNotIn(List values) { + addCriterion("BEIW not in", values, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwBetween(Float value1, Float value2) { + addCriterion("BEIW between", value1, value2, "beiw"); + return (Criteria) this; + } + + public Criteria andBeiwNotBetween(Float value1, Float value2) { + addCriterion("BEIW not between", value1, value2, "beiw"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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); + } + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdata.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdata.java new file mode 100644 index 0000000..d389af5 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdata.java @@ -0,0 +1,50 @@ +package com.hnac.hzims.baseinfo.entity; + +/** + * 水库数据扩展表 + * + * @author moze + * + */ +public class ReservoirRefdata { + private String stcd; // 水库编号 + + private String refstcd; // 关联测站 + + private String refqpoint; // 关联流量数据点 + + private String refzpoint; // 关联水位数据点 + + public String getStcd() { + return stcd; + } + + public void setStcd(String stcd) { + this.stcd = stcd; + } + + public String getRefstcd() { + return refstcd; + } + + public void setRefstcd(String refstcd) { + this.refstcd = refstcd; + } + + public String getRefqpoint() { + return refqpoint; + } + + public void setRefqpoint(String refqpoint) { + this.refqpoint = refqpoint; + } + + public String getRefzpoint() { + return refzpoint; + } + + public void setRefzpoint(String refzpoint) { + this.refzpoint = refzpoint; + } + +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdataExample.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdataExample.java new file mode 100644 index 0000000..c59eabc --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdataExample.java @@ -0,0 +1,480 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.util.ArrayList; +import java.util.List; + +public class ReservoirRefdataExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ReservoirRefdataExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andStcdIsNull() { + addCriterion("STCD is null"); + return (Criteria) this; + } + + public Criteria andStcdIsNotNull() { + addCriterion("STCD is not null"); + return (Criteria) this; + } + + public Criteria andStcdEqualTo(String value) { + addCriterion("STCD =", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotEqualTo(String value) { + addCriterion("STCD <>", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThan(String value) { + addCriterion("STCD >", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThanOrEqualTo(String value) { + addCriterion("STCD >=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThan(String value) { + addCriterion("STCD <", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThanOrEqualTo(String value) { + addCriterion("STCD <=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLike(String value) { + addCriterion("STCD like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotLike(String value) { + addCriterion("STCD not like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdIn(List values) { + addCriterion("STCD in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotIn(List values) { + addCriterion("STCD not in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdBetween(String value1, String value2) { + addCriterion("STCD between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotBetween(String value1, String value2) { + addCriterion("STCD not between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andRefstcdIsNull() { + addCriterion("REFSTCD is null"); + return (Criteria) this; + } + + public Criteria andRefstcdIsNotNull() { + addCriterion("REFSTCD is not null"); + return (Criteria) this; + } + + public Criteria andRefstcdEqualTo(String value) { + addCriterion("REFSTCD =", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdNotEqualTo(String value) { + addCriterion("REFSTCD <>", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdGreaterThan(String value) { + addCriterion("REFSTCD >", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdGreaterThanOrEqualTo(String value) { + addCriterion("REFSTCD >=", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdLessThan(String value) { + addCriterion("REFSTCD <", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdLessThanOrEqualTo(String value) { + addCriterion("REFSTCD <=", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdLike(String value) { + addCriterion("REFSTCD like", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdNotLike(String value) { + addCriterion("REFSTCD not like", value, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdIn(List values) { + addCriterion("REFSTCD in", values, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdNotIn(List values) { + addCriterion("REFSTCD not in", values, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdBetween(String value1, String value2) { + addCriterion("REFSTCD between", value1, value2, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefstcdNotBetween(String value1, String value2) { + addCriterion("REFSTCD not between", value1, value2, "refstcd"); + return (Criteria) this; + } + + public Criteria andRefqpointIsNull() { + addCriterion("REFQPOINT is null"); + return (Criteria) this; + } + + public Criteria andRefqpointIsNotNull() { + addCriterion("REFQPOINT is not null"); + return (Criteria) this; + } + + public Criteria andRefqpointEqualTo(String value) { + addCriterion("REFQPOINT =", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointNotEqualTo(String value) { + addCriterion("REFQPOINT <>", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointGreaterThan(String value) { + addCriterion("REFQPOINT >", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointGreaterThanOrEqualTo(String value) { + addCriterion("REFQPOINT >=", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointLessThan(String value) { + addCriterion("REFQPOINT <", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointLessThanOrEqualTo(String value) { + addCriterion("REFQPOINT <=", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointLike(String value) { + addCriterion("REFQPOINT like", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointNotLike(String value) { + addCriterion("REFQPOINT not like", value, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointIn(List values) { + addCriterion("REFQPOINT in", values, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointNotIn(List values) { + addCriterion("REFQPOINT not in", values, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointBetween(String value1, String value2) { + addCriterion("REFQPOINT between", value1, value2, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefqpointNotBetween(String value1, String value2) { + addCriterion("REFQPOINT not between", value1, value2, "refqpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointIsNull() { + addCriterion("REFZPOINT is null"); + return (Criteria) this; + } + + public Criteria andRefzpointIsNotNull() { + addCriterion("REFZPOINT is not null"); + return (Criteria) this; + } + + public Criteria andRefzpointEqualTo(String value) { + addCriterion("REFZPOINT =", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointNotEqualTo(String value) { + addCriterion("REFZPOINT <>", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointGreaterThan(String value) { + addCriterion("REFZPOINT >", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointGreaterThanOrEqualTo(String value) { + addCriterion("REFZPOINT >=", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointLessThan(String value) { + addCriterion("REFZPOINT <", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointLessThanOrEqualTo(String value) { + addCriterion("REFZPOINT <=", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointLike(String value) { + addCriterion("REFZPOINT like", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointNotLike(String value) { + addCriterion("REFZPOINT not like", value, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointIn(List values) { + addCriterion("REFZPOINT in", values, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointNotIn(List values) { + addCriterion("REFZPOINT not in", values, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointBetween(String value1, String value2) { + addCriterion("REFZPOINT between", value1, value2, "refzpoint"); + return (Criteria) this; + } + + public Criteria andRefzpointNotBetween(String value1, String value2) { + addCriterion("REFZPOINT not between", value1, value2, "refzpoint"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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); + } + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManage.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManage.java new file mode 100644 index 0000000..fdb15f0 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManage.java @@ -0,0 +1,95 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; + +public class ReservoirWaterManage { + private Integer id; + + private Integer month; + + private BigDecimal firstArea; + + private BigDecimal secondArea; + + private BigDecimal thirdArea; + + private BigDecimal fourthArea; + + private BigDecimal fivthArea; + + private BigDecimal sixthArea; + + private String stcd; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getMonth() { + return month; + } + + public void setMonth(Integer month) { + this.month = month; + } + + public BigDecimal getFirstArea() { + return firstArea; + } + + public void setFirstArea(BigDecimal firstArea) { + this.firstArea = firstArea; + } + + public BigDecimal getSecondArea() { + return secondArea; + } + + public void setSecondArea(BigDecimal secondArea) { + this.secondArea = secondArea; + } + + public BigDecimal getThirdArea() { + return thirdArea; + } + + public void setThirdArea(BigDecimal thirdArea) { + this.thirdArea = thirdArea; + } + + public BigDecimal getFourthArea() { + return fourthArea; + } + + public void setFourthArea(BigDecimal fourthArea) { + this.fourthArea = fourthArea; + } + + public BigDecimal getFivthArea() { + return fivthArea; + } + + public void setFivthArea(BigDecimal fivthArea) { + this.fivthArea = fivthArea; + } + + public BigDecimal getSixthArea() { + return sixthArea; + } + + public void setSixthArea(BigDecimal sixthArea) { + this.sixthArea = sixthArea; + } + + public String getStcd() { + return stcd; + } + + public void setStcd(String stcd) { + this.stcd = stcd; + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManageExample.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManageExample.java new file mode 100644 index 0000000..64bf2f4 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManageExample.java @@ -0,0 +1,751 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class ReservoirWaterManageExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ReservoirWaterManageExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("ID is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("ID is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("ID =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("ID <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("ID >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("ID >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("ID <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("ID <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("ID in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("ID not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("ID between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("ID not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andMonthIsNull() { + addCriterion("MONTH is null"); + return (Criteria) this; + } + + public Criteria andMonthIsNotNull() { + addCriterion("MONTH is not null"); + return (Criteria) this; + } + + public Criteria andMonthEqualTo(Integer value) { + addCriterion("MONTH =", value, "month"); + return (Criteria) this; + } + + public Criteria andMonthNotEqualTo(Integer value) { + addCriterion("MONTH <>", value, "month"); + return (Criteria) this; + } + + public Criteria andMonthGreaterThan(Integer value) { + addCriterion("MONTH >", value, "month"); + return (Criteria) this; + } + + public Criteria andMonthGreaterThanOrEqualTo(Integer value) { + addCriterion("MONTH >=", value, "month"); + return (Criteria) this; + } + + public Criteria andMonthLessThan(Integer value) { + addCriterion("MONTH <", value, "month"); + return (Criteria) this; + } + + public Criteria andMonthLessThanOrEqualTo(Integer value) { + addCriterion("MONTH <=", value, "month"); + return (Criteria) this; + } + + public Criteria andMonthIn(List values) { + addCriterion("MONTH in", values, "month"); + return (Criteria) this; + } + + public Criteria andMonthNotIn(List values) { + addCriterion("MONTH not in", values, "month"); + return (Criteria) this; + } + + public Criteria andMonthBetween(Integer value1, Integer value2) { + addCriterion("MONTH between", value1, value2, "month"); + return (Criteria) this; + } + + public Criteria andMonthNotBetween(Integer value1, Integer value2) { + addCriterion("MONTH not between", value1, value2, "month"); + return (Criteria) this; + } + + public Criteria andFirstAreaIsNull() { + addCriterion("FIRST_AREA is null"); + return (Criteria) this; + } + + public Criteria andFirstAreaIsNotNull() { + addCriterion("FIRST_AREA is not null"); + return (Criteria) this; + } + + public Criteria andFirstAreaEqualTo(BigDecimal value) { + addCriterion("FIRST_AREA =", value, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaNotEqualTo(BigDecimal value) { + addCriterion("FIRST_AREA <>", value, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaGreaterThan(BigDecimal value) { + addCriterion("FIRST_AREA >", value, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("FIRST_AREA >=", value, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaLessThan(BigDecimal value) { + addCriterion("FIRST_AREA <", value, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaLessThanOrEqualTo(BigDecimal value) { + addCriterion("FIRST_AREA <=", value, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaIn(List values) { + addCriterion("FIRST_AREA in", values, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaNotIn(List values) { + addCriterion("FIRST_AREA not in", values, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("FIRST_AREA between", value1, value2, "firstArea"); + return (Criteria) this; + } + + public Criteria andFirstAreaNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("FIRST_AREA not between", value1, value2, "firstArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaIsNull() { + addCriterion("SECOND_AREA is null"); + return (Criteria) this; + } + + public Criteria andSecondAreaIsNotNull() { + addCriterion("SECOND_AREA is not null"); + return (Criteria) this; + } + + public Criteria andSecondAreaEqualTo(BigDecimal value) { + addCriterion("SECOND_AREA =", value, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaNotEqualTo(BigDecimal value) { + addCriterion("SECOND_AREA <>", value, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaGreaterThan(BigDecimal value) { + addCriterion("SECOND_AREA >", value, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("SECOND_AREA >=", value, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaLessThan(BigDecimal value) { + addCriterion("SECOND_AREA <", value, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaLessThanOrEqualTo(BigDecimal value) { + addCriterion("SECOND_AREA <=", value, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaIn(List values) { + addCriterion("SECOND_AREA in", values, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaNotIn(List values) { + addCriterion("SECOND_AREA not in", values, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("SECOND_AREA between", value1, value2, "secondArea"); + return (Criteria) this; + } + + public Criteria andSecondAreaNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("SECOND_AREA not between", value1, value2, "secondArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaIsNull() { + addCriterion("THIRD_AREA is null"); + return (Criteria) this; + } + + public Criteria andThirdAreaIsNotNull() { + addCriterion("THIRD_AREA is not null"); + return (Criteria) this; + } + + public Criteria andThirdAreaEqualTo(BigDecimal value) { + addCriterion("THIRD_AREA =", value, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaNotEqualTo(BigDecimal value) { + addCriterion("THIRD_AREA <>", value, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaGreaterThan(BigDecimal value) { + addCriterion("THIRD_AREA >", value, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("THIRD_AREA >=", value, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaLessThan(BigDecimal value) { + addCriterion("THIRD_AREA <", value, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaLessThanOrEqualTo(BigDecimal value) { + addCriterion("THIRD_AREA <=", value, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaIn(List values) { + addCriterion("THIRD_AREA in", values, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaNotIn(List values) { + addCriterion("THIRD_AREA not in", values, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("THIRD_AREA between", value1, value2, "thirdArea"); + return (Criteria) this; + } + + public Criteria andThirdAreaNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("THIRD_AREA not between", value1, value2, "thirdArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaIsNull() { + addCriterion("FOURTH_AREA is null"); + return (Criteria) this; + } + + public Criteria andFourthAreaIsNotNull() { + addCriterion("FOURTH_AREA is not null"); + return (Criteria) this; + } + + public Criteria andFourthAreaEqualTo(BigDecimal value) { + addCriterion("FOURTH_AREA =", value, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaNotEqualTo(BigDecimal value) { + addCriterion("FOURTH_AREA <>", value, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaGreaterThan(BigDecimal value) { + addCriterion("FOURTH_AREA >", value, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("FOURTH_AREA >=", value, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaLessThan(BigDecimal value) { + addCriterion("FOURTH_AREA <", value, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaLessThanOrEqualTo(BigDecimal value) { + addCriterion("FOURTH_AREA <=", value, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaIn(List values) { + addCriterion("FOURTH_AREA in", values, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaNotIn(List values) { + addCriterion("FOURTH_AREA not in", values, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("FOURTH_AREA between", value1, value2, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFourthAreaNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("FOURTH_AREA not between", value1, value2, "fourthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaIsNull() { + addCriterion("FIVTH_AREA is null"); + return (Criteria) this; + } + + public Criteria andFivthAreaIsNotNull() { + addCriterion("FIVTH_AREA is not null"); + return (Criteria) this; + } + + public Criteria andFivthAreaEqualTo(BigDecimal value) { + addCriterion("FIVTH_AREA =", value, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaNotEqualTo(BigDecimal value) { + addCriterion("FIVTH_AREA <>", value, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaGreaterThan(BigDecimal value) { + addCriterion("FIVTH_AREA >", value, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("FIVTH_AREA >=", value, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaLessThan(BigDecimal value) { + addCriterion("FIVTH_AREA <", value, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaLessThanOrEqualTo(BigDecimal value) { + addCriterion("FIVTH_AREA <=", value, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaIn(List values) { + addCriterion("FIVTH_AREA in", values, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaNotIn(List values) { + addCriterion("FIVTH_AREA not in", values, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("FIVTH_AREA between", value1, value2, "fivthArea"); + return (Criteria) this; + } + + public Criteria andFivthAreaNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("FIVTH_AREA not between", value1, value2, "fivthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaIsNull() { + addCriterion("SIXTH_AREA is null"); + return (Criteria) this; + } + + public Criteria andSixthAreaIsNotNull() { + addCriterion("SIXTH_AREA is not null"); + return (Criteria) this; + } + + public Criteria andSixthAreaEqualTo(BigDecimal value) { + addCriterion("SIXTH_AREA =", value, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaNotEqualTo(BigDecimal value) { + addCriterion("SIXTH_AREA <>", value, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaGreaterThan(BigDecimal value) { + addCriterion("SIXTH_AREA >", value, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("SIXTH_AREA >=", value, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaLessThan(BigDecimal value) { + addCriterion("SIXTH_AREA <", value, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaLessThanOrEqualTo(BigDecimal value) { + addCriterion("SIXTH_AREA <=", value, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaIn(List values) { + addCriterion("SIXTH_AREA in", values, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaNotIn(List values) { + addCriterion("SIXTH_AREA not in", values, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("SIXTH_AREA between", value1, value2, "sixthArea"); + return (Criteria) this; + } + + public Criteria andSixthAreaNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("SIXTH_AREA not between", value1, value2, "sixthArea"); + return (Criteria) this; + } + + public Criteria andStcdIsNull() { + addCriterion("STCD is null"); + return (Criteria) this; + } + + public Criteria andStcdIsNotNull() { + addCriterion("STCD is not null"); + return (Criteria) this; + } + + public Criteria andStcdEqualTo(String value) { + addCriterion("STCD =", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotEqualTo(String value) { + addCriterion("STCD <>", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThan(String value) { + addCriterion("STCD >", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThanOrEqualTo(String value) { + addCriterion("STCD >=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThan(String value) { + addCriterion("STCD <", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThanOrEqualTo(String value) { + addCriterion("STCD <=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLike(String value) { + addCriterion("STCD like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotLike(String value) { + addCriterion("STCD not like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdIn(List values) { + addCriterion("STCD in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotIn(List values) { + addCriterion("STCD not in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdBetween(String value1, String value2) { + addCriterion("STCD between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotBetween(String value1, String value2) { + addCriterion("STCD not between", value1, value2, "stcd"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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); + } + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlB.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlB.java new file mode 100644 index 0000000..3bc009f --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlB.java @@ -0,0 +1,92 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * 库(湖)容曲线表 + * + * @author moze + * + */ +public class StZvarlB { + private Integer id; + + private String stcd; // 水库编码 + + private Date mstm; // 施测时间 + + private Integer ptno; // 点序号 + + private BigDecimal rz; // 库水位 + + private BigDecimal w; // 蓄水量 + + private BigDecimal wsfa; // 水位面积 + + private Date moditime; // 时间戳 + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getStcd() { + return stcd; + } + + public void setStcd(String stcd) { + this.stcd = stcd; + } + + public Date getMstm() { + return mstm; + } + + public void setMstm(Date mstm) { + this.mstm = mstm; + } + + public Integer getPtno() { + return ptno; + } + + public void setPtno(Integer ptno) { + this.ptno = ptno; + } + + public BigDecimal getRz() { + return rz; + } + + public void setRz(BigDecimal rz) { + this.rz = rz; + } + + public BigDecimal getW() { + return w; + } + + public void setW(BigDecimal w) { + this.w = w; + } + + public BigDecimal getWsfa() { + return wsfa; + } + + public void setWsfa(BigDecimal wsfa) { + this.wsfa = wsfa; + } + + public Date getModitime() { + return moditime; + } + + public void setModitime(Date moditime) { + this.moditime = moditime; + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlBExample.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlBExample.java new file mode 100644 index 0000000..d510e14 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlBExample.java @@ -0,0 +1,692 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class StZvarlBExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public StZvarlBExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("ID is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("ID is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("ID =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("ID <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("ID >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("ID >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("ID <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("ID <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("ID in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("ID not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("ID between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("ID not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andStcdIsNull() { + addCriterion("STCD is null"); + return (Criteria) this; + } + + public Criteria andStcdIsNotNull() { + addCriterion("STCD is not null"); + return (Criteria) this; + } + + public Criteria andStcdEqualTo(String value) { + addCriterion("STCD =", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotEqualTo(String value) { + addCriterion("STCD <>", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThan(String value) { + addCriterion("STCD >", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdGreaterThanOrEqualTo(String value) { + addCriterion("STCD >=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThan(String value) { + addCriterion("STCD <", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLessThanOrEqualTo(String value) { + addCriterion("STCD <=", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdLike(String value) { + addCriterion("STCD like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotLike(String value) { + addCriterion("STCD not like", value, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdIn(List values) { + addCriterion("STCD in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotIn(List values) { + addCriterion("STCD not in", values, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdBetween(String value1, String value2) { + addCriterion("STCD between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andStcdNotBetween(String value1, String value2) { + addCriterion("STCD not between", value1, value2, "stcd"); + return (Criteria) this; + } + + public Criteria andMstmIsNull() { + addCriterion("MSTM is null"); + return (Criteria) this; + } + + public Criteria andMstmIsNotNull() { + addCriterion("MSTM is not null"); + return (Criteria) this; + } + + public Criteria andMstmEqualTo(Date value) { + addCriterion("MSTM =", value, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmNotEqualTo(Date value) { + addCriterion("MSTM <>", value, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmGreaterThan(Date value) { + addCriterion("MSTM >", value, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmGreaterThanOrEqualTo(Date value) { + addCriterion("MSTM >=", value, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmLessThan(Date value) { + addCriterion("MSTM <", value, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmLessThanOrEqualTo(Date value) { + addCriterion("MSTM <=", value, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmIn(List values) { + addCriterion("MSTM in", values, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmNotIn(List values) { + addCriterion("MSTM not in", values, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmBetween(Date value1, Date value2) { + addCriterion("MSTM between", value1, value2, "mstm"); + return (Criteria) this; + } + + public Criteria andMstmNotBetween(Date value1, Date value2) { + addCriterion("MSTM not between", value1, value2, "mstm"); + return (Criteria) this; + } + + public Criteria andPtnoIsNull() { + addCriterion("PTNO is null"); + return (Criteria) this; + } + + public Criteria andPtnoIsNotNull() { + addCriterion("PTNO is not null"); + return (Criteria) this; + } + + public Criteria andPtnoEqualTo(Integer value) { + addCriterion("PTNO =", value, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoNotEqualTo(Integer value) { + addCriterion("PTNO <>", value, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoGreaterThan(Integer value) { + addCriterion("PTNO >", value, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoGreaterThanOrEqualTo(Integer value) { + addCriterion("PTNO >=", value, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoLessThan(Integer value) { + addCriterion("PTNO <", value, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoLessThanOrEqualTo(Integer value) { + addCriterion("PTNO <=", value, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoIn(List values) { + addCriterion("PTNO in", values, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoNotIn(List values) { + addCriterion("PTNO not in", values, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoBetween(Integer value1, Integer value2) { + addCriterion("PTNO between", value1, value2, "ptno"); + return (Criteria) this; + } + + public Criteria andPtnoNotBetween(Integer value1, Integer value2) { + addCriterion("PTNO not between", value1, value2, "ptno"); + return (Criteria) this; + } + + public Criteria andRzIsNull() { + addCriterion("RZ is null"); + return (Criteria) this; + } + + public Criteria andRzIsNotNull() { + addCriterion("RZ is not null"); + return (Criteria) this; + } + + public Criteria andRzEqualTo(BigDecimal value) { + addCriterion("RZ =", value, "rz"); + return (Criteria) this; + } + + public Criteria andRzNotEqualTo(BigDecimal value) { + addCriterion("RZ <>", value, "rz"); + return (Criteria) this; + } + + public Criteria andRzGreaterThan(BigDecimal value) { + addCriterion("RZ >", value, "rz"); + return (Criteria) this; + } + + public Criteria andRzGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("RZ >=", value, "rz"); + return (Criteria) this; + } + + public Criteria andRzLessThan(BigDecimal value) { + addCriterion("RZ <", value, "rz"); + return (Criteria) this; + } + + public Criteria andRzLessThanOrEqualTo(BigDecimal value) { + addCriterion("RZ <=", value, "rz"); + return (Criteria) this; + } + + public Criteria andRzIn(List values) { + addCriterion("RZ in", values, "rz"); + return (Criteria) this; + } + + public Criteria andRzNotIn(List values) { + addCriterion("RZ not in", values, "rz"); + return (Criteria) this; + } + + public Criteria andRzBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RZ between", value1, value2, "rz"); + return (Criteria) this; + } + + public Criteria andRzNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RZ not between", value1, value2, "rz"); + return (Criteria) this; + } + + public Criteria andWIsNull() { + addCriterion("W is null"); + return (Criteria) this; + } + + public Criteria andWIsNotNull() { + addCriterion("W is not null"); + return (Criteria) this; + } + + public Criteria andWEqualTo(BigDecimal value) { + addCriterion("W =", value, "w"); + return (Criteria) this; + } + + public Criteria andWNotEqualTo(BigDecimal value) { + addCriterion("W <>", value, "w"); + return (Criteria) this; + } + + public Criteria andWGreaterThan(BigDecimal value) { + addCriterion("W >", value, "w"); + return (Criteria) this; + } + + public Criteria andWGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("W >=", value, "w"); + return (Criteria) this; + } + + public Criteria andWLessThan(BigDecimal value) { + addCriterion("W <", value, "w"); + return (Criteria) this; + } + + public Criteria andWLessThanOrEqualTo(BigDecimal value) { + addCriterion("W <=", value, "w"); + return (Criteria) this; + } + + public Criteria andWIn(List values) { + addCriterion("W in", values, "w"); + return (Criteria) this; + } + + public Criteria andWNotIn(List values) { + addCriterion("W not in", values, "w"); + return (Criteria) this; + } + + public Criteria andWBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("W between", value1, value2, "w"); + return (Criteria) this; + } + + public Criteria andWNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("W not between", value1, value2, "w"); + return (Criteria) this; + } + + public Criteria andWsfaIsNull() { + addCriterion("WSFA is null"); + return (Criteria) this; + } + + public Criteria andWsfaIsNotNull() { + addCriterion("WSFA is not null"); + return (Criteria) this; + } + + public Criteria andWsfaEqualTo(Integer value) { + addCriterion("WSFA =", value, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaNotEqualTo(Integer value) { + addCriterion("WSFA <>", value, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaGreaterThan(Integer value) { + addCriterion("WSFA >", value, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaGreaterThanOrEqualTo(Integer value) { + addCriterion("WSFA >=", value, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaLessThan(Integer value) { + addCriterion("WSFA <", value, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaLessThanOrEqualTo(Integer value) { + addCriterion("WSFA <=", value, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaIn(List values) { + addCriterion("WSFA in", values, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaNotIn(List values) { + addCriterion("WSFA not in", values, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaBetween(Integer value1, Integer value2) { + addCriterion("WSFA between", value1, value2, "wsfa"); + return (Criteria) this; + } + + public Criteria andWsfaNotBetween(Integer value1, Integer value2) { + addCriterion("WSFA not between", value1, value2, "wsfa"); + return (Criteria) this; + } + + public Criteria andModitimeIsNull() { + addCriterion("MODITIME is null"); + return (Criteria) this; + } + + public Criteria andModitimeIsNotNull() { + addCriterion("MODITIME is not null"); + return (Criteria) this; + } + + public Criteria andModitimeEqualTo(Date value) { + addCriterion("MODITIME =", value, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeNotEqualTo(Date value) { + addCriterion("MODITIME <>", value, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeGreaterThan(Date value) { + addCriterion("MODITIME >", value, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeGreaterThanOrEqualTo(Date value) { + addCriterion("MODITIME >=", value, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeLessThan(Date value) { + addCriterion("MODITIME <", value, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeLessThanOrEqualTo(Date value) { + addCriterion("MODITIME <=", value, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeIn(List values) { + addCriterion("MODITIME in", values, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeNotIn(List values) { + addCriterion("MODITIME not in", values, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeBetween(Date value1, Date value2) { + addCriterion("MODITIME between", value1, value2, "moditime"); + return (Criteria) this; + } + + public Criteria andModitimeNotBetween(Date value1, Date value2) { + addCriterion("MODITIME not between", value1, value2, "moditime"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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); + } + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfB.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfB.java new file mode 100644 index 0000000..3c71b9b --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfB.java @@ -0,0 +1,72 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; + +/** + * 湖库<国标> + * + * @author moze + * + */ +public class WqLrinfB { + private String lrcd; // 湖库代码 + + private String watp; // 水域类型 + + private String lrnm; // 湖(库)名称 + + private BigDecimal lrar; // 湖(库)面积 + + private BigDecimal rscp; // 水库库容 + + private String coordinateset; // 经纬集合 + + public String getCoordinateset() { + return coordinateset; + } + + public void setCoordinateset(String coordinateset) { + this.coordinateset = coordinateset; + } + + public String getLrcd() { + return lrcd; + } + + public void setLrcd(String lrcd) { + this.lrcd = lrcd; + } + + public String getWatp() { + return watp; + } + + public void setWatp(String watp) { + this.watp = watp; + } + + public String getLrnm() { + return lrnm; + } + + public void setLrnm(String lrnm) { + this.lrnm = lrnm; + } + + public BigDecimal getLrar() { + return lrar; + } + + public void setLrar(BigDecimal lrar) { + this.lrar = lrar; + } + + public BigDecimal getRscp() { + return rscp; + } + + public void setRscp(BigDecimal rscp) { + this.rscp = rscp; + } + +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfBExample.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfBExample.java new file mode 100644 index 0000000..e8ef6c8 --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfBExample.java @@ -0,0 +1,601 @@ +package com.hnac.hzims.baseinfo.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class WqLrinfBExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public WqLrinfBExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andLrcdIsNull() { + addCriterion("LRCD is null"); + return (Criteria) this; + } + + public Criteria andLrcdIsNotNull() { + addCriterion("LRCD is not null"); + return (Criteria) this; + } + + public Criteria andLrcdEqualTo(String value) { + addCriterion("LRCD =", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotEqualTo(String value) { + addCriterion("LRCD <>", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdGreaterThan(String value) { + addCriterion("LRCD >", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdGreaterThanOrEqualTo(String value) { + addCriterion("LRCD >=", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdLessThan(String value) { + addCriterion("LRCD <", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdLessThanOrEqualTo(String value) { + addCriterion("LRCD <=", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdLike(String value) { + addCriterion("LRCD like", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotLike(String value) { + addCriterion("LRCD not like", value, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdIn(List values) { + addCriterion("LRCD in", values, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotIn(List values) { + addCriterion("LRCD not in", values, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdBetween(String value1, String value2) { + addCriterion("LRCD between", value1, value2, "lrcd"); + return (Criteria) this; + } + + public Criteria andLrcdNotBetween(String value1, String value2) { + addCriterion("LRCD not between", value1, value2, "lrcd"); + return (Criteria) this; + } + + public Criteria andWatpIsNull() { + addCriterion("WATP is null"); + return (Criteria) this; + } + + public Criteria andWatpIsNotNull() { + addCriterion("WATP is not null"); + return (Criteria) this; + } + + public Criteria andWatpEqualTo(String value) { + addCriterion("WATP =", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpNotEqualTo(String value) { + addCriterion("WATP <>", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpGreaterThan(String value) { + addCriterion("WATP >", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpGreaterThanOrEqualTo(String value) { + addCriterion("WATP >=", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpLessThan(String value) { + addCriterion("WATP <", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpLessThanOrEqualTo(String value) { + addCriterion("WATP <=", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpLike(String value) { + addCriterion("WATP like", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpNotLike(String value) { + addCriterion("WATP not like", value, "watp"); + return (Criteria) this; + } + + public Criteria andWatpIn(List values) { + addCriterion("WATP in", values, "watp"); + return (Criteria) this; + } + + public Criteria andWatpNotIn(List values) { + addCriterion("WATP not in", values, "watp"); + return (Criteria) this; + } + + public Criteria andWatpBetween(String value1, String value2) { + addCriterion("WATP between", value1, value2, "watp"); + return (Criteria) this; + } + + public Criteria andWatpNotBetween(String value1, String value2) { + addCriterion("WATP not between", value1, value2, "watp"); + return (Criteria) this; + } + + public Criteria andLrnmIsNull() { + addCriterion("LRNM is null"); + return (Criteria) this; + } + + public Criteria andLrnmIsNotNull() { + addCriterion("LRNM is not null"); + return (Criteria) this; + } + + public Criteria andLrnmEqualTo(String value) { + addCriterion("LRNM =", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmNotEqualTo(String value) { + addCriterion("LRNM <>", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmGreaterThan(String value) { + addCriterion("LRNM >", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmGreaterThanOrEqualTo(String value) { + addCriterion("LRNM >=", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmLessThan(String value) { + addCriterion("LRNM <", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmLessThanOrEqualTo(String value) { + addCriterion("LRNM <=", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmLike(String value) { + addCriterion("LRNM like", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmNotLike(String value) { + addCriterion("LRNM not like", value, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmIn(List values) { + addCriterion("LRNM in", values, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmNotIn(List values) { + addCriterion("LRNM not in", values, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmBetween(String value1, String value2) { + addCriterion("LRNM between", value1, value2, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrnmNotBetween(String value1, String value2) { + addCriterion("LRNM not between", value1, value2, "lrnm"); + return (Criteria) this; + } + + public Criteria andLrarIsNull() { + addCriterion("LRAR is null"); + return (Criteria) this; + } + + public Criteria andLrarIsNotNull() { + addCriterion("LRAR is not null"); + return (Criteria) this; + } + + public Criteria andLrarEqualTo(BigDecimal value) { + addCriterion("LRAR =", value, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarNotEqualTo(BigDecimal value) { + addCriterion("LRAR <>", value, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarGreaterThan(BigDecimal value) { + addCriterion("LRAR >", value, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("LRAR >=", value, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarLessThan(BigDecimal value) { + addCriterion("LRAR <", value, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarLessThanOrEqualTo(BigDecimal value) { + addCriterion("LRAR <=", value, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarIn(List values) { + addCriterion("LRAR in", values, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarNotIn(List values) { + addCriterion("LRAR not in", values, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("LRAR between", value1, value2, "lrar"); + return (Criteria) this; + } + + public Criteria andLrarNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("LRAR not between", value1, value2, "lrar"); + return (Criteria) this; + } + + public Criteria andRscpIsNull() { + addCriterion("RSCP is null"); + return (Criteria) this; + } + + public Criteria andRscpIsNotNull() { + addCriterion("RSCP is not null"); + return (Criteria) this; + } + + public Criteria andRscpEqualTo(BigDecimal value) { + addCriterion("RSCP =", value, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpNotEqualTo(BigDecimal value) { + addCriterion("RSCP <>", value, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpGreaterThan(BigDecimal value) { + addCriterion("RSCP >", value, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("RSCP >=", value, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpLessThan(BigDecimal value) { + addCriterion("RSCP <", value, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpLessThanOrEqualTo(BigDecimal value) { + addCriterion("RSCP <=", value, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpIn(List values) { + addCriterion("RSCP in", values, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpNotIn(List values) { + addCriterion("RSCP not in", values, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RSCP between", value1, value2, "rscp"); + return (Criteria) this; + } + + public Criteria andRscpNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("RSCP not between", value1, value2, "rscp"); + return (Criteria) this; + } + + public Criteria andCoordinatesetIsNull() { + addCriterion("COORDINATESET is null"); + return (Criteria) this; + } + + public Criteria andCoordinatesetIsNotNull() { + addCriterion("COORDINATESET is not null"); + return (Criteria) this; + } + + public Criteria andCoordinatesetEqualTo(String value) { + addCriterion("COORDINATESET =", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotEqualTo(String value) { + addCriterion("COORDINATESET <>", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetGreaterThan(String value) { + addCriterion("COORDINATESET >", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetGreaterThanOrEqualTo(String value) { + addCriterion("COORDINATESET >=", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetLessThan(String value) { + addCriterion("COORDINATESET <", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetLessThanOrEqualTo(String value) { + addCriterion("COORDINATESET <=", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetLike(String value) { + addCriterion("COORDINATESET like", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotLike(String value) { + addCriterion("COORDINATESET not like", value, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetIn(List values) { + addCriterion("COORDINATESET in", values, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotIn(List values) { + addCriterion("COORDINATESET not in", values, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetBetween(String value1, String value2) { + addCriterion("COORDINATESET between", value1, value2, "coordinateset"); + return (Criteria) this; + } + + public Criteria andCoordinatesetNotBetween(String value1, String value2) { + addCriterion("COORDINATESET not between", value1, value2, "coordinateset"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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); + } + } +} \ No newline at end of file diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirInfoVo.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirInfoVo.java new file mode 100644 index 0000000..16797da --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirInfoVo.java @@ -0,0 +1,64 @@ +package com.hnac.hzims.baseinfo.vo; + + +import com.hnac.hzims.baseinfo.entity.FileReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ImageReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ReservoirInfo; +import lombok.Data; + +import java.util.List; + +@Data +public class ReservoirInfoVo extends ReservoirInfo { + private String rz; // 水位 + private String INQ; // 流量 + + + private List imageReservoirInfoList; + + private List fileReservoirInfoList; + + public ReservoirInfoVo() { + + } + + public ReservoirInfoVo(ReservoirInfo vo) { + this.setAveragerainfall(vo.getAveragerainfall()); + this.setBuilddate(vo.getBuilddate()); + this.setChecdedtotalflow(vo.getChecdedtotalflow()); + this.setCheckedfloodlevel(vo.getCheckedfloodlevel()); + this.setCheckedmaxflow(vo.getCheckedmaxflow()); + this.setChedkedfloodflow(vo.getChedkedfloodflow()); + this.setCompleteddate(vo.getCompleteddate()); + this.setDeadlevel(vo.getDeadlevel()); + this.setDesignedfillarea(vo.getDesignedfillarea()); + this.setDesignedfloodflow(vo.getDesignedfloodflow()); + this.setDesignedfloodlevel(vo.getDesignedfloodlevel()); + this.setDesignedmaxflow(vo.getDesignedmaxflow()); + this.setDesignedtotalflow(vo.getDesignedtotalflow()); + this.setDischarge(vo.getDischarge()); + this.setFloodcontrolvolume(vo.getFloodcontrolvolume()); + this.setFlooddetentionvolume(vo.getFlooddetentionvolume()); + this.setHistoricalmaxlevel(vo.getHistoricalmaxlevel()); + this.setLocation(vo.getLocation()); + this.setMaxleveltime(vo.getMaxleveltime()); + this.setName(vo.getName()); + this.setNorrmallevel(vo.getNorrmallevel()); + this.setRainarea(vo.getRainarea()); + this.setRoadconditiion(vo.getRoadconditiion()); + this.setRoadlength(vo.getRoadlength()); + this.setStationid(vo.getStationid()); + this.setStcd(vo.getStcd()); + this.setUtilizablevolume(vo.getUtilizablevolume()); + this.setVillage(vo.getVillage()); + this.setVolume(vo.getVolume()); + this.setBeiw(vo.getBeiw()); + this.setDongj(vo.getDongj()); + this.setMjflsscnwl(vo.getMjflsscnwl()); + setAreaCode(vo.getAreaCode()); + setLrcd(vo.getLrcd()); + setSzhldm(vo.getSzhldm()); + + } + +} diff --git a/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirRefdataVo.java b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirRefdataVo.java new file mode 100644 index 0000000..046ab2f --- /dev/null +++ b/hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirRefdataVo.java @@ -0,0 +1,57 @@ +package com.hnac.hzims.baseinfo.vo; + + +import com.hnac.hzims.baseinfo.entity.ReservoirRefdata; + +public class ReservoirRefdataVo extends ReservoirRefdata { + private String refqFactory; // 关联流量数据点point + private String refqGroupId; // 关联流量数据点point + private String refzFactory; // 关联水位数据点 + private String refzGroupId; // 关联水位数据点 + + public ReservoirRefdataVo(){ + + } + + public ReservoirRefdataVo(ReservoirRefdata model){ + setStcd(model.getStcd()); + setRefstcd(model.getRefstcd()); + setRefzpoint(model.getRefzpoint()); + setRefqpoint(model.getRefqpoint()); + } + + public String getRefqFactory() { + return refqFactory; + } + + public void setRefqFactory(String refqFactory) { + this.refqFactory = refqFactory; + } + + public String getRefqGroupId() { + return refqGroupId; + } + + public void setRefqGroupId(String refqGroupId) { + this.refqGroupId = refqGroupId; + } + + public String getRefzFactory() { + return refzFactory; + } + + public void setRefzFactory(String refzFactory) { + this.refzFactory = refzFactory; + } + + public String getRefzGroupId() { + return refzGroupId; + } + + public void setRefzGroupId(String refzGroupId) { + this.refzGroupId = refzGroupId; + } + + + +} diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/entity/EmInfoEntity.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/entity/EmInfoEntity.java index de44d52..3a7df24 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/entity/EmInfoEntity.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/entity/EmInfoEntity.java @@ -248,4 +248,8 @@ public class EmInfoEntity extends TenantEntity { @ApiModelProperty(value = "子设备") @TableField(exist = false) private List infoChildren; + + + @ApiModelProperty("固定资产编码") + private String assetCode; } diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/Estimate.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/Estimate.java new file mode 100644 index 0000000..12f8a61 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/Estimate.java @@ -0,0 +1,62 @@ +package com.hnac.hzims.operational.station.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 总体评分附表 + *

+ * + * @author dfy + * @since 2023-08-23 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("estimate") +public class Estimate implements Serializable { + + private static final long serialVersionUID=1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 基本条件 + */ + @TableField("name") + private String name; + + /** + * 0 为选择 1 为选中 + */ + @TableField("checked") + private Boolean checked; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableField("is_deleted") + @TableLogic + private Boolean deleted; + + +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetails.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetails.java new file mode 100644 index 0000000..87b47a3 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetails.java @@ -0,0 +1,80 @@ +package com.hnac.hzims.operational.station.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 得分事项简述 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("evaluation_details") +public class EvaluationDetails implements Serializable { + + private static final long serialVersionUID=1L; + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 电站评分id + */ + @TableField("station_evaluation_id") + private Long stationEvaluationId; + + /** + * 选择题目 + */ + @TableField("title") + private String title; + + /** + * 是否选中 1 选中 0 不选中 + */ + @TableField("checked") + private Boolean checked; + + /** + * 分数 + */ + @TableField("grade") + private Integer grade; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableField("is_deleted") + private Boolean deleted; + + + +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetailsOption.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetailsOption.java new file mode 100644 index 0000000..773ece0 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetailsOption.java @@ -0,0 +1,78 @@ +package com.hnac.hzims.operational.station.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 选择表 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("evaluation_details_option") +public class EvaluationDetailsOption implements Serializable { + + private static final long serialVersionUID=1L; + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 题目 + */ + @TableField("option_title") + private String optionTitle; + + /** + * 是否选中 1 选中 0 不选中 + */ + @TableField("option_checked") + private Boolean optionChecked; + + /** + * 分数 + */ + @TableField("option_grade") + private Integer optionGrade; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableField("is_deleted") + private Boolean deleted; + + + + @TableField("evaluation_details_id") + private Long evaluationDetailsId; + + +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/FileStation.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/FileStation.java new file mode 100644 index 0000000..255dd4a --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/FileStation.java @@ -0,0 +1,62 @@ +package com.hnac.hzims.operational.station.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * 文件 + * + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:01 + */ +@Data +@Accessors(chain = true) +@TableName("file_station") +public class FileStation implements Serializable { + + + /** + * 视频Id + */ + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + + /** + * '视频地址' + */ + private String file; + + + /** + * 站点Id + */ + private Long stationId; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + + /** + * 逻辑删除0 正常 1 删除 + */ + @TableLogic + private int isDeleted; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/ImageStation.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/ImageStation.java new file mode 100644 index 0000000..87a02aa --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/ImageStation.java @@ -0,0 +1,62 @@ +package com.hnac.hzims.operational.station.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * 图片 + * + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:01 + */ +@Data +@Accessors(chain = true) +@TableName("image_station") +public class ImageStation implements Serializable { + + + /** + * 视频Id + */ + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + + /** + * '视频地址' + */ + private String image; + + + /** + * 站点Id + */ + private Long stationId; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + + /** + * 逻辑删除0 正常 1 删除 + */ + @TableLogic + private int isDeleted; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/StationEntity.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/StationEntity.java index 1721302..30bd222 100644 --- a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/StationEntity.java +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/StationEntity.java @@ -21,6 +21,7 @@ import javax.validation.constraints.NotNull; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalDateTime; +import java.util.List; @EqualsAndHashCode(callSuper = true) @Data @@ -173,4 +174,49 @@ public class StationEntity extends TenantEntity implements Serializable { @QueryField(condition = SqlCondition.EQUAL) @TableField(updateStrategy = FieldStrategy.IGNORED) private Boolean isAbroad; + + + + /** + * 生态流量泄放设施 + */ + private String dischargeFacilities; + + /** + * 监测方式 + */ + private String monitoringMode; + + + /** + * 是否绿色小水电示范电站 0 否 1 是 + */ + private Boolean isPowerStation; + + + /** + * 核定值 + */ + private Float discharge; + + + /** + * 图片 list + */ + @TableField(exist = false) + private List imageStationList; + + + /** + * 视频 list + */ + @TableField(exist = false) + private List videoStationList; + + + /** + * 文件 list + */ + @TableField(exist = false) + private List fileStationList; } diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/VideoStation.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/VideoStation.java new file mode 100644 index 0000000..4314782 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/VideoStation.java @@ -0,0 +1,62 @@ +package com.hnac.hzims.operational.station.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * 视频 + * + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:01 + */ +@Data +@Accessors(chain = true) +@TableName("video_station") +public class VideoStation implements Serializable { + + + /** + * 视频Id + */ + @TableId(type = IdType.ASSIGN_ID) + private Long id; + + + /** + * '视频地址' + */ + private String video; + + + /** + * 站点Id + */ + private Long stationId; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + + /** + * 逻辑删除0 正常 1 删除 + */ + @TableLogic + private int isDeleted; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsOptionVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsOptionVo.java new file mode 100644 index 0000000..0773777 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsOptionVo.java @@ -0,0 +1,45 @@ +package com.hnac.hzims.operational.station.vo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/17 11:08 + */ +@Data +public class EvaluationDetailsOptionVo { + + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 题目 + */ + @TableField("option_title") + private String optionTitle; + + /** + * 是否选中 1 选中 0 不选中 + */ + @TableField("option_checked") + private Boolean optionChecked; + + /** + * 分数 + */ + @TableField("option_grade") + private Integer optionGrade; + + + private Long evaluationDetailsId; + +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsVo.java new file mode 100644 index 0000000..688be97 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsVo.java @@ -0,0 +1,53 @@ +package com.hnac.hzims.operational.station.vo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; + +import java.util.List; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/17 11:06 + */ +@Data +public class EvaluationDetailsVo { + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 电站评分id + */ + @TableField("station_evaluation_id") + private Long stationEvaluationId; + + /** + * 选择题目 + */ + @TableField("title") + private String title; + + /** + * 是否选中 1 选中 0 不选中 + */ + @TableField("checked") + private Boolean checked; + + /** + * 分数 + */ + @TableField("grade") + private Integer grade; + + /** + * 封装选择项 + */ + private List evaluationDetailsOptionVos; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/OneStationEvaluationVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/OneStationEvaluationVo.java new file mode 100644 index 0000000..98f93d2 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/OneStationEvaluationVo.java @@ -0,0 +1,63 @@ +package com.hnac.hzims.operational.station.vo; + +import lombok.Data; + +import java.util.List; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/17 10:43 + */ +@Data +public class OneStationEvaluationVo { + + /** + * 编号 + */ + private Long id; + + /** + * 类别 + */ + private String evaluationName; + + /** + * 站点id + */ + + private Long stationId; + + /** + * 父级 + */ + + private Long parentId; + + /** + * 等级 + */ + private Integer level; + + /** + * 分数 + */ + private Integer minute; + + /** + * 得分 + */ + private Integer score; + + /** + * 描述 + */ + private String description; + + + /** + * 封装第二级参数 + */ + private List children; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsQueryVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsQueryVo.java new file mode 100644 index 0000000..29cc2f1 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsQueryVo.java @@ -0,0 +1,20 @@ +package com.hnac.hzims.operational.station.vo; + +import com.baomidou.mybatisplus.annotation.SqlCondition; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springblade.core.mp.support.QueryField; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/22 14:05 + */ +@Data +public class StationsQueryVo { + + @ApiModelProperty("行政区划(来源于平台的行政区划表)") + @QueryField(condition = SqlCondition.EQUAL) + private String areaCode; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsVo.java new file mode 100644 index 0000000..58a7c45 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsVo.java @@ -0,0 +1,22 @@ +package com.hnac.hzims.operational.station.vo; + +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/22 9:39 + */ +@Data +public class StationsVo { + + + /** + * 电站名称 + */ + private Integer year; + + + private Integer count; +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/ThreeStationEvaluationVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/ThreeStationEvaluationVo.java new file mode 100644 index 0000000..ab28732 --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/ThreeStationEvaluationVo.java @@ -0,0 +1,64 @@ +package com.hnac.hzims.operational.station.vo; + +import lombok.Data; + +import java.util.List; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/17 10:59 + */ +@Data +public class ThreeStationEvaluationVo { + + /** + * 编号 + */ + private Long id; + + /** + * 类别 + */ + private String evaluationName; + + /** + * 站点id + */ + + private Long stationId; + + /** + * 父级 + */ + + private Long parentId; + + /** + * 等级 + */ + private Integer level; + + /** + * 分数 + */ + private Integer minute; + + /** + * 得分 + */ + private Integer score; + + /** + * 描述 + */ + private String description; + + + /** + * 封装简述参数 + */ + private List evaluationDetailsVos; + +} diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/TwoStationEvaluationVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/TwoStationEvaluationVo.java new file mode 100644 index 0000000..f89052a --- /dev/null +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/TwoStationEvaluationVo.java @@ -0,0 +1,64 @@ +package com.hnac.hzims.operational.station.vo; + +import lombok.Data; + +import java.util.List; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/17 10:58 + */ +@Data +public class TwoStationEvaluationVo { + + + /** + * 编号 + */ + private Long id; + + /** + * 类别 + */ + private String evaluationName; + + /** + * 站点id + */ + + private Long stationId; + + /** + * 父级 + */ + + private Long parentId; + + /** + * 等级 + */ + private Integer level; + + /** + * 分数 + */ + private Integer minute; + + /** + * 得分 + */ + private Integer score; + + /** + * 描述 + */ + private String description; + + + /** + * 封装第三级参数 + */ + private List children; +} diff --git a/hzims-service-api/middle-api/.gitignore b/hzims-service-api/middle-api/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/hzims-service-api/middle-api/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/hzims-service-api/pom.xml b/hzims-service-api/pom.xml index 397a172..3f05497 100644 --- a/hzims-service-api/pom.xml +++ b/hzims-service-api/pom.xml @@ -27,6 +27,7 @@ weather-api common-api middle-api + base-info-api diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/DocumentManagement.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/DocumentManagement.java new file mode 100644 index 0000000..fafbe44 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/DocumentManagement.java @@ -0,0 +1,74 @@ +package com.hnac.hzims.safeproduct.management.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 文档管理 + *

+ * + * @author dfy + * @since 2023-08-11 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("document_management") +public class DocumentManagement implements Serializable { + + private static final long serialVersionUID=1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 文档名称 + */ + @TableField("document_name") + private String documentName; + + /** + * 文档路径 + */ + @TableField("document_url") + private String documentUrl; + + /** + * 创建人Id + */ + @TableField("creator_id") + private Long creatorId; + + /** + * 创建人名称 + */ + @TableField("creator_name") + private String creatorName; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableLogic + @TableField("is_deleted") + private Integer isDeleted; + + +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/IndicatorManagement.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/IndicatorManagement.java new file mode 100644 index 0000000..c53dc48 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/IndicatorManagement.java @@ -0,0 +1,77 @@ +package com.hnac.hzims.safeproduct.management.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 指标项管理 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("indicator_management") +public class IndicatorManagement implements Serializable { + + private static final long serialVersionUID=1L; + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 项目名称 + */ + @TableField("product_name") + private String productName; + + /** + * 标准分值 + */ + @TableField("standard_score") + private String standardScore; + + /** + * 评审方法及评分标准 + */ + @TableField("evaluation_method") + private String evaluationMethod; + + /** + * 指标管理id + */ + @TableField("target_management_id") + private Long targetManagementId; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableLogic + @TableField("is_deleted") + private Boolean deleted; + + +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/RatingScale.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/RatingScale.java new file mode 100644 index 0000000..9345a44 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/RatingScale.java @@ -0,0 +1,71 @@ +package com.hnac.hzims.safeproduct.management.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 平分表 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("rating_scale") +public class RatingScale implements Serializable { + + private static final long serialVersionUID=1L; + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 指标项管理id + */ + @TableField("indicator_management_id") + private Long indicatorManagementId; + + /** + * 得分 + */ + @TableField("goal") + private String goal; + + /** + * 评审描述 + */ + @TableField("review_description") + private String reviewDescription; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableLogic + @TableField("is_deleted") + private Boolean deleted; + + +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetManagement.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetManagement.java new file mode 100644 index 0000000..be6f001 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetManagement.java @@ -0,0 +1,81 @@ +package com.hnac.hzims.safeproduct.management.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; +import java.util.List; + +/** + *

+ * 指标管理 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("target_management") +public class TargetManagement implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 名称 + */ + @TableField("name") + private String name; + + /** + * 分值 + */ + @TableField("score") + private String score; + + /** + * 父级Id + */ + @TableField("parent_id") + private Long parentId; + + /** + * 等级 + */ + @TableField("level") + private Integer level; + + /** + * 创建时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 更新时间 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 逻辑删除 + */ + @TableLogic + @TableField("is_deleted") + private Boolean deleted; + + + @TableField(exist = false) + private List children; + +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/DocumentManagementQueryVo.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/DocumentManagementQueryVo.java new file mode 100644 index 0000000..375c018 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/DocumentManagementQueryVo.java @@ -0,0 +1,20 @@ +package com.hnac.hzims.safeproduct.management.vo; + +import com.baomidou.mybatisplus.annotation.TableField; +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/11 16:46 + */ +@Data +public class DocumentManagementQueryVo { + + /** + * 文档名称 + */ + @TableField("document_name") + private String documentName; +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementQueryVo.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementQueryVo.java new file mode 100644 index 0000000..4a4fa7f --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementQueryVo.java @@ -0,0 +1,36 @@ +package com.hnac.hzims.safeproduct.management.vo; + +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/11 10:22 + */ +@Data +public class IndicatorManagementQueryVo { + + + /** + * 指标管理id + */ + private Long targetManagementId; + + + /** + * 项目名称 + */ + private String productName; + + + /** + * 开始时间 + */ + private String startTime; + + /** + * 结束时间 + */ + private String endTime; +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementResponseVo.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementResponseVo.java new file mode 100644 index 0000000..c660d08 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementResponseVo.java @@ -0,0 +1,32 @@ +package com.hnac.hzims.safeproduct.management.vo; + +import com.hnac.hzims.safeproduct.management.entity.IndicatorManagement; +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/11 10:32 + */ +@Data +public class IndicatorManagementResponseVo extends IndicatorManagement { + + /** + * 名称 + */ + private String name; + + + /** + * 得分 + */ + private String goal; + + /** + * 评审描述 + */ + private String reviewDescription; + + +} diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/RatingScaleVo.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/RatingScaleVo.java new file mode 100644 index 0000000..b2527d1 --- /dev/null +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/RatingScaleVo.java @@ -0,0 +1,29 @@ +package com.hnac.hzims.safeproduct.management.vo; + +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/15 16:39 + */ +@Data +public class RatingScaleVo { + + + /** + * 指标项管理id + */ + private Long indicatorManagementId; + + /** + * 得分 + */ + private String goal; + + /** + * 评审描述 + */ + private String reviewDescription; +} diff --git a/hzims-service/base-info/pom.xml b/hzims-service/base-info/pom.xml new file mode 100644 index 0000000..e5e862e --- /dev/null +++ b/hzims-service/base-info/pom.xml @@ -0,0 +1,66 @@ + + + 4.0.0 + + com.hnac.hzims + hzims-service + 4.0.0-SNAPSHOT + + + base-info + + + 8 + 8 + UTF-8 + + + + + + com.hnac.hzims + base-info-api + ${hzims.project.version} + + + org.springblade + blade-common + + + + org.springblade + blade-core-boot + + + org.springblade + blade-starter-swagger + + + org.springblade + blade-core-test + test + + + org.springblade + blade-core-auto + provided + + + + + + com.baomidou + mybatis-plus-generator + + + + + org.apache.velocity + velocity-engine-core + 2.2 + + + + \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/BaseInfoApplication.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/BaseInfoApplication.java new file mode 100644 index 0000000..eb1d8f3 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/BaseInfoApplication.java @@ -0,0 +1,40 @@ +package com.hnac.hzims.baseinfo; + +import org.mybatis.spring.annotation.MapperScan; +import org.springblade.core.cloud.feign.EnableBladeFeign; +import org.springblade.core.launch.BladeApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.cloud.client.SpringCloudApplication; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.scheduling.annotation.EnableScheduling; + +//基础信息模块 电站 水库 大坝信息管理 +@EnableBladeFeign(basePackages = {"org.springblade", "com.hnac"}) +@SpringCloudApplication +@MapperScan("com.hnac.hzims.**.mapper.**") +@EnableScheduling +@ComponentScan(basePackages = {"com.hnac.hzims.*"}) +public class BaseInfoApplication extends SpringBootServletInitializer { + + + static { + System.setProperty("spring.cloud.nacos.discovery.server-addr", "http://hadoop:8848"); + System.setProperty("spring.cloud.nacos.config.server-addr", "http://hadoop:8848"); + System.setProperty("spring.cloud.nacos.username", "nacos"); + System.setProperty("spring.cloud.nacos.password", "nacos"); + } + + + public final static String APP_NAME = "base-info"; + + public static void main(String[] args) { +// System.setProperty("nacos.standalone", "true"); + BladeApplication.run(APP_NAME, BaseInfoApplication.class, args); + } + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { + return BladeApplication.createSpringApplicationBuilder(builder, APP_NAME, BaseInfoApplication.class); + } +} \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/IrrBIReachController.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/IrrBIReachController.java new file mode 100644 index 0000000..e39a843 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/IrrBIReachController.java @@ -0,0 +1,94 @@ +package com.hnac.hzims.baseinfo.controller; + + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.IrrBIReach; +import com.hnac.hzims.baseinfo.service.IrrBIReachService; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; + + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; + +@RestController +@Api(description = "河流控制器") +@RequestMapping(value = "/area/irrBIReach/info") +public class IrrBIReachController { + @Autowired + private IrrBIReachService irs; + +// @ApiOperation(notes = "加载所有河流记录,不区分站点", value = "河流列表接口") +// @RequestMapping(value = "bindIrrBIReachs", method = RequestMethod.GET) +// @ResponseBody +// public R bindIrrBIReachs(@ApiParam(value = "名称") @RequestParam(required = false) String riverName, +// @ApiParam(value = "分页参数") @ModelAttribute PageParam pageParam) { +// R res = new R(); +// if(riverName!=null && "".equals(riverName)){ +// if(riverName.length() > 50){ +// res.setFailure("名称长度不能大于50","500"); +// } +// } +// res.setSuccess(irs.bindIrrBIReachs(riverName, pageParam)); +// return res; +// } + + @ApiOperation(notes = "加载所有河流记录,不区分站点", value = "河流列表接口") + @RequestMapping(value = "bindIrrBIReachs", method = RequestMethod.GET) + @ResponseBody + public R bindIrrBIReachs(@ApiParam(value = "名称") @RequestParam(required = false) String riverName, + @ApiParam(value = "分页参数") @ModelAttribute Query query) { + Page page = new Page<>(query.getCurrent(), query.getSize()); + R res = new R(); + if(riverName!=null && "".equals(riverName)){ + if(riverName.length() > 50){ + res.setMsg("名称长度不能大于50"); + res.setCode(500); + } + } + res.setData(irs.bindIrrBIReachs(riverName, page)); + return res; + } + + @ApiOperation(notes = "获取单条河流的信息接口", value = "获取单条河流的信息接口") + @RequestMapping(value = "getIrrBIReach", method = RequestMethod.GET) + @ResponseBody + public R getIrrBIReach(@RequestParam(required = true) @ApiParam(value = "河流编号") String riverCode) { + R res = new R(); + res.setData(irs.getIrrBIReach(riverCode)); + return res; + } + + @ApiOperation(notes = "编辑时编号不能修改", value = "河流信息修改接口") + @RequestMapping(value = "editIrrBIReach", method = RequestMethod.POST) + @ResponseBody + public R editIrrBIReach(@ApiParam(value = "河流") @RequestBody IrrBIReach irrBIReach) { + return irs.addOrEditIrrBIReach(irrBIReach,"update"); + } + + @ApiOperation(notes = "删除河流接口", value = "删除河流接口") + @RequestMapping(value = "delIrrBIReach", method = { RequestMethod.GET, RequestMethod.POST }) + @ResponseBody + public R delIrrBIReach(@RequestParam(required = true) @ApiParam(value = "河流编号") String riverCode) { + R res = new R(); + irs.delIrrBIReach(riverCode); + res.setMsg("操作成功"); + return res; + } + + @ApiOperation(notes = " 新增时编号需要做唯一性验证 ", value = "新增河流接口") + @RequestMapping(value = "addIrrBIReach", method = RequestMethod.POST) + @ResponseBody + public R addIrrBIReach(@ApiParam(value = "河流") @RequestBody IrrBIReach vo) { + return irs.addOrEditIrrBIReach(vo,"add"); + } +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirInfoController.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirInfoController.java new file mode 100644 index 0000000..3555c2a --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirInfoController.java @@ -0,0 +1,88 @@ +package com.hnac.hzims.baseinfo.controller; + + +import com.hnac.hzims.baseinfo.service.ReservoirInfoService; +import com.hnac.hzims.baseinfo.vo.ReservoirInfoVo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import sun.reflect.generics.tree.VoidDescriptor; + +import javax.servlet.http.HttpServletRequest; +import java.util.ArrayList; +import java.util.List; + +@RestController +@Api(description = "水库档案控制器") +@RequestMapping(value = "/reservoir/info") +public class ReservoirInfoController { + + @Autowired + private ReservoirInfoService reservoirInfoService; + + + @ApiOperation(notes = "加载所有水库记录,区分站点", value = "水库列表接口") + @RequestMapping(value = "bindReservoirs", method = RequestMethod.GET) + @ResponseBody + public R bindReservoirs(HttpServletRequest request, + @ApiParam(value = "名称") @RequestParam(required = false) String name, + @ApiParam(value = "站点ID") @RequestParam String stationId, + @ApiParam(value = "区域编码") @RequestParam(required = false) String areaCode, + @ApiParam(value = "河流编码") @RequestParam(required = false) String riverCode, + @ApiParam(value = "分页参数") @ModelAttribute Query query) { + List stationIds = new ArrayList(); + //查询当前用户下所有站点的水库列表 + if(stationId.equals("ALL")){ + + }else{ + stationIds.add(stationId); + } + + String tmpAreaCode =""; + if(areaCode!=null) { + tmpAreaCode = areaCode.replaceAll("0+$", ""); + } + return R.data(reservoirInfoService.bindReservoirList(name,tmpAreaCode,riverCode, stationIds, query)); + } + + + @ApiOperation(notes = "获取单条水库的信息接口", value = "获取单条水库的信息接口") + @RequestMapping(value = "getReservoir", method = RequestMethod.GET) + @ResponseBody + public R getReservoir(@RequestParam(required = true) @ApiParam(value = "水库编号") String stcd) { + return R.data(reservoirInfoService.getReservoir(stcd)); + } + + @ApiOperation(notes = "水库信息修改接口", value = "水库信息修改接口") + @RequestMapping(value = "editReservoir", method = RequestMethod.POST) + @ResponseBody + public R editReservoir(@ApiParam(value = "水库信息") @RequestBody ReservoirInfoVo reservoirInfoVo) { + + return reservoirInfoService.addOrEditReservoir(reservoirInfoVo,"update"); + + } + + @ApiOperation(notes = "删除水库接口", value = "删除水库接口") + @RequestMapping(value = "delReservoir", method = { RequestMethod.GET, RequestMethod.POST }) + @ResponseBody + public R delReservoir(@RequestParam(required = true) @ApiParam(value = "水库编号") String stcd) { + + return reservoirInfoService.delReservoir(stcd); + + } + + @ApiOperation(notes = "新增水库接口", value = "新增水库接口") + @RequestMapping(value = "addReservoir", method = { RequestMethod.POST }) + @ResponseBody + public R addReservoir(@ApiParam(value = "水库") @RequestBody ReservoirInfoVo vo) { + return reservoirInfoService.addOrEditReservoir(vo,"add"); + } + + + + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirRefdataController.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirRefdataController.java new file mode 100644 index 0000000..8defce9 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirRefdataController.java @@ -0,0 +1,35 @@ +package com.hnac.hzims.baseinfo.controller; + + +import com.hnac.hzims.baseinfo.entity.ReservoirRefdata; +import com.hnac.hzims.baseinfo.service.ReservoirRefDataService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@Api(description = "水库数据扩展表控制器") +@RequestMapping(value = "/reservoir/refdata") +public class ReservoirRefdataController { + @Autowired + private ReservoirRefDataService reservoirRefDataService; + + @ApiOperation(notes = "stcd必须真实", value = "水库数据扩展配置接口") + @RequestMapping(value = "configReservoirRefData", method = RequestMethod.POST) + @ResponseBody + public R configReservoirRefData( + @ApiParam(value = "水库信息") @RequestBody ReservoirRefdata reservoirRefdata) { + reservoirRefDataService.configReservoirRefData(reservoirRefdata); + return R.success("操作成功"); + } + + @ApiOperation(notes = "stcd必须真实", value = "水库数据扩展获得接口") + @RequestMapping(value = "getReservoirRefData", method = {RequestMethod.POST, RequestMethod.GET}) + @ResponseBody + public R getReservoirRefData(@ApiParam(value = "水库编码") String stcd) { + return R.data(reservoirRefDataService.getReservoirRefData(stcd)); + } +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/StZvarlBController.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/StZvarlBController.java new file mode 100644 index 0000000..3f2bc62 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/StZvarlBController.java @@ -0,0 +1,72 @@ +package com.hnac.hzims.baseinfo.controller; + + +import com.hnac.hzims.baseinfo.entity.StZvarlB; +import com.hnac.hzims.baseinfo.service.StZvarlBService; +import com.hnac.hzims.common.utils.Condition; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.math.BigDecimal; + +@RestController +@Api(description = "库(湖)容曲线控制器") +@RequestMapping(value = "/reservoir/stZvarlB") +public class StZvarlBController { + + @Autowired + private StZvarlBService stZvarlBService; + + + @ApiOperation(notes = "获取库(湖)容曲线列表数据接口", value = "获取库(湖)容曲线列表数据接口") + @RequestMapping(value = "bindStZvarlBs", method = RequestMethod.GET) + @ResponseBody + public R bindStZvarlBs(@RequestParam(required = true) @ApiParam(value = "水库编号") String stcd, + @ApiParam(value = "分页参数") @ModelAttribute Query query) { + return R.data(stZvarlBService.bindStZvarlBs(stcd, Condition.getPage(query))); + } + + @ApiOperation(notes = "新增库(湖)容曲线记录接口", value = "新增库(湖)容曲线记录息接口") + @RequestMapping(value = "addStZvarlB", method = RequestMethod.POST) + @ResponseBody + public R addStZvarlB(@ApiParam(value = "库(湖)曲线对象") @RequestBody StZvarlB stZvarlB) { + + return stZvarlBService.addOrEditStZvarlB(stZvarlB); + + } + + @ApiOperation(notes = "更新库(湖)容曲线记录接口", value = "更新库(湖)容曲线记录接口") + @RequestMapping(value = "editStZvarlB", method = RequestMethod.POST) + @ResponseBody + public R editStZvarlB(@ApiParam(value = "库(湖)曲线对象") @RequestBody StZvarlB stZvarlB) { + + return stZvarlBService.addOrEditStZvarlB(stZvarlB); + + } + + @ApiOperation(notes = "删除库(湖)容曲线记录接口", value = "删除库(湖)容曲线记录接口") + @RequestMapping(value = "delStZvarlB", method = { RequestMethod.GET, RequestMethod.POST }) + @ResponseBody + public R delStZvarlB(@RequestParam(required = true) @ApiParam(value = "ID") Integer id) { + + return stZvarlBService.delStZvarlB(id); + + } + + @ApiOperation(notes = "根据库水位获取库容", value = "根据库水位获取库容") + @RequestMapping(value = "getWValue", method = { RequestMethod.GET, RequestMethod.POST }) + @ResponseBody + public R getWValue(String stcd,String rz) { + R res = new R(); + BigDecimal bd=new BigDecimal(rz); + BigDecimal data=stZvarlBService.getWValue(stcd,bd); + res.setMsg("操作成功"); + res.setData(data); + return res; + } +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/WqLrinfBController.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/WqLrinfBController.java new file mode 100644 index 0000000..ea1e462 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/WqLrinfBController.java @@ -0,0 +1,94 @@ +package com.hnac.hzims.baseinfo.controller; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.WqLrinfB; +import com.hnac.hzims.baseinfo.service.WqLrinfBService; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; + +@RestController +@Api(description = "湖库控制器") +@RequestMapping(value = "/area/wqLrinfB/info") +public class WqLrinfBController { + @Autowired + private WqLrinfBService wbs; + +// @ApiOperation(notes = "加载所有湖库记录,不区分站点", value = "湖库列表接口") +// @RequestMapping(value = "bindWqLrinfBs", method = RequestMethod.GET) +// @ResponseBody +// public R bindWqLrinfBs(@ApiParam(value = "名称") @RequestParam(required = false) String lrnm, +// @ApiParam(value = "分页参数") @ModelAttribute PageParam pageParam) { +// R res = new R(); +// if(lrnm!=null && "".equals(lrnm)){ +// if(lrnm.length() > 50){ +// res.setFailure("名称长度不能大于50","500"); +// } +// } +// res.setSuccess(wbs.bindWqLrinfBs(lrnm, pageParam)); +// return res; +// } + + @ApiOperation(notes = "加载所有湖库记录,不区分站点", value = "湖库列表接口") + @RequestMapping(value = "bindWqLrinfBs", method = RequestMethod.GET) + @ResponseBody + public R bindWqLrinfBs(@ApiParam(value = "名称") @RequestParam(required = false) String lrnm, + @ApiParam(value = "分页参数") @ModelAttribute Query query) { + Page page = new Page<>(query.getCurrent(), query.getSize()); + R res = new R(); + if(lrnm!=null && "".equals(lrnm)){ + if(lrnm.length() > 50){ + res.setMsg("名称长度不能大于50"); + res.setData(500); + } + } + res.setData(wbs.bindWqLrinfBs(lrnm, page)); + return res; + } + + @ApiOperation(notes = "获取单条湖库的信息接口", value = "获取单条湖库的信息接口") + @RequestMapping(value = "getWqLrinfB", method = RequestMethod.GET) + @ResponseBody + public R getWqLrinfB(@RequestParam(required = true) @ApiParam(value = "湖库编号") String lrcd) { + R res = new R(); + res.setData(wbs.getWqLrinfB(lrcd)); + return res; + } + + @ApiOperation(notes = "编辑时编号不能修改", value = "湖库信息修改接口") + @RequestMapping(value = "editWqLrinfB", method = RequestMethod.POST) + @ResponseBody + public R editWqLrinfB(@ApiParam(value = "湖库信息") @RequestBody WqLrinfB wqLrinfB) { + + return wbs.editWqLrinfB(wqLrinfB); + + } + + @ApiOperation(notes = "删除湖库接口", value = "删除湖库接口") + @RequestMapping(value = "delWqLrinfB", method = { RequestMethod.GET, RequestMethod.POST }) + @ResponseBody + public R delWqLrinfB(@RequestParam @ApiParam(value = "湖库编号") String lrcd) { + return wbs.delWqLrinfB(lrcd); + + } + + @ApiOperation(notes = "新增时编号需要做唯一性验证", value = "新增湖库接口") + @RequestMapping(value = "addWqLrinfB", method = RequestMethod.POST ) + @ResponseBody + public R addWqLrinfB(@ApiParam(value = "湖库") @RequestBody WqLrinfB wqLrinfB) { + + return wbs.addWqLrinfB(wqLrinfB); + + } +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/FileReservoirInfoMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/FileReservoirInfoMapper.java new file mode 100644 index 0000000..00da4b4 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/FileReservoirInfoMapper.java @@ -0,0 +1,14 @@ +package com.hnac.hzims.baseinfo.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.baseinfo.entity.FileReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ImageReservoirInfo; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/9 10:41 + */ +public interface FileReservoirInfoMapper extends BaseMapper { +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ImageReservoirInfoMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ImageReservoirInfoMapper.java new file mode 100644 index 0000000..f4ddffa --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ImageReservoirInfoMapper.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.baseinfo.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.baseinfo.entity.ImageReservoirInfo; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/9 10:40 + */ +public interface ImageReservoirInfoMapper extends BaseMapper { +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.java new file mode 100644 index 0000000..d10aeaa --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.java @@ -0,0 +1,26 @@ +package com.hnac.hzims.baseinfo.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.baseinfo.entity.IrrBIReach; +import com.hnac.hzims.baseinfo.entity.IrrBIReachExample; +import org.apache.ibatis.annotations.Param; + +public interface IrrBIReachMapper { + int deleteByPrimaryKey(String riverCode); + + int insert(IrrBIReach record); + + int insertSelective(IrrBIReach record); + + List selectByExample(IrrBIReachExample example); + + IrrBIReach selectByPrimaryKey(String riverCode); + + int updateByPrimaryKeySelective(IrrBIReach record); + + int updateByPrimaryKey(IrrBIReach record); + + IPage selectByRiverName(@Param("riverName")String riverName, IPage page); +} \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.xml b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.xml new file mode 100644 index 0000000..918892e --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.xml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + RIVER_CODE, RIVER_NAME, RIVER_WIDTH, RIVER_FLUX, COORDINATESET + + + + + delete from irrbireach + where RIVER_CODE = #{riverCode,jdbcType=CHAR} + + + insert into irrbireach (RIVER_CODE, RIVER_NAME, RIVER_WIDTH, + RIVER_FLUX, COORDINATESET) + values (#{riverCode,jdbcType=CHAR}, #{riverName,jdbcType=VARCHAR}, #{riverWidth,jdbcType=DECIMAL}, + #{riverFlux,jdbcType=DECIMAL}, #{coordinateset,jdbcType=VARCHAR}) + + + insert into irrbireach + + + RIVER_CODE, + + + RIVER_NAME, + + + RIVER_WIDTH, + + + RIVER_FLUX, + + + COORDINATESET, + + + + + #{riverCode,jdbcType=CHAR}, + + + #{riverName,jdbcType=VARCHAR}, + + + #{riverWidth,jdbcType=DECIMAL}, + + + #{riverFlux,jdbcType=DECIMAL}, + + + #{coordinateset,jdbcType=VARCHAR}, + + + + + update irrbireach + + + RIVER_NAME = #{riverName,jdbcType=VARCHAR}, + + + RIVER_WIDTH = #{riverWidth,jdbcType=DECIMAL}, + + + RIVER_FLUX = #{riverFlux,jdbcType=DECIMAL}, + + + COORDINATESET = #{coordinateset,jdbcType=VARCHAR}, + + + where RIVER_CODE = #{riverCode,jdbcType=CHAR} + + + update irrbireach + set RIVER_NAME = #{riverName,jdbcType=VARCHAR}, + RIVER_WIDTH = #{riverWidth,jdbcType=DECIMAL}, + RIVER_FLUX = #{riverFlux,jdbcType=DECIMAL}, + COORDINATESET = #{coordinateset,jdbcType=VARCHAR} + where RIVER_CODE = #{riverCode,jdbcType=CHAR} + + + + + \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.java new file mode 100644 index 0000000..5d1f6fe --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.java @@ -0,0 +1,35 @@ +package com.hnac.hzims.baseinfo.mapper; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.metadata.PageList; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.ReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ReservoirInfoExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface ReservoirInfoMapper { + int deleteByPrimaryKey(String stcd); + + int insert(ReservoirInfo record); + + int insertSelective(ReservoirInfo record); + + List selectByExample(ReservoirInfoExample example); + + ReservoirInfo selectByPrimaryKey(String stcd); + + int updateByPrimaryKeySelective(ReservoirInfo record); + + int updateByPrimaryKey(ReservoirInfo record); + + IPage selectByNameAndStationId(@Param("name") String name, + @Param("areaCode")String areaCode, @Param("riverCode")String riverCode, + @Param("stationIds") List stationId, + Page pageBounds); + + IPage selectByNameAndStationId(@Param("name") String name, + @Param("areaCode")String areaCode,@Param("riverCode")String riverCode, + @Param("stationIds") List stationId, IPage page); +} \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.xml b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.xml new file mode 100644 index 0000000..776420d --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.xml @@ -0,0 +1,520 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + STCD, STATIONID, DISCHARGE, NAME, LOCATION, VILLAGE, ROADLENGTH, ROADCONDITIION, + BUILDDATE, COMPLETEDDATE, RAINAREA, DESIGNEDFLOODFLOW, CHEDKEDFLOODFLOW, DESIGNEDFILLAREA, + DESIGNEDTOTALFLOW, CHECDEDTOTALFLOW, AVERAGERAINFALL, DESIGNEDMAXFLOW, CHECKEDMAXFLOW, + VOLUME, CHECKEDFLOODLEVEL, HISTORICALMAXLEVEL, FLOODCONTROLVOLUME, DESIGNEDFLOODLEVEL, + MAXLEVELTIME, UTILIZABLEVOLUME, NORRMALLEVEL, FLOODDETENTIONVOLUME, DEADLEVEL, AREA_CODE, + LRCD, SZHLDM, DONGJ, BEIW,MJFLSSCNWL + + + + + delete from reservoir_info + where STCD = #{stcd,jdbcType=VARCHAR} + + + insert into reservoir_info (STCD, STATIONID, DISCHARGE, + NAME, LOCATION, VILLAGE, + ROADLENGTH, ROADCONDITIION, BUILDDATE, + COMPLETEDDATE, RAINAREA, DESIGNEDFLOODFLOW, + CHEDKEDFLOODFLOW, DESIGNEDFILLAREA, DESIGNEDTOTALFLOW, + CHECDEDTOTALFLOW, AVERAGERAINFALL, DESIGNEDMAXFLOW, + CHECKEDMAXFLOW, VOLUME, CHECKEDFLOODLEVEL, + HISTORICALMAXLEVEL, FLOODCONTROLVOLUME, DESIGNEDFLOODLEVEL, + MAXLEVELTIME, UTILIZABLEVOLUME, NORRMALLEVEL, + FLOODDETENTIONVOLUME, DEADLEVEL, AREA_CODE, + LRCD, SZHLDM, DONGJ, BEIW,MJFLSSCNWL + ) + values (#{stcd,jdbcType=VARCHAR}, #{stationid,jdbcType=VARCHAR}, #{discharge,jdbcType=REAL}, + #{name,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{village,jdbcType=VARCHAR}, + #{roadlength,jdbcType=REAL}, #{roadconditiion,jdbcType=VARCHAR}, #{builddate,jdbcType=DATE}, + #{completeddate,jdbcType=DATE}, #{rainarea,jdbcType=REAL}, #{designedfloodflow,jdbcType=REAL}, + #{chedkedfloodflow,jdbcType=REAL}, #{designedfillarea,jdbcType=REAL}, #{designedtotalflow,jdbcType=REAL}, + #{checdedtotalflow,jdbcType=REAL}, #{averagerainfall,jdbcType=REAL}, #{designedmaxflow,jdbcType=REAL}, + #{checkedmaxflow,jdbcType=REAL}, #{volume,jdbcType=REAL}, #{checkedfloodlevel,jdbcType=REAL}, + #{historicalmaxlevel,jdbcType=REAL}, #{floodcontrolvolume,jdbcType=REAL}, #{designedfloodlevel,jdbcType=REAL}, + #{maxleveltime,jdbcType=TIMESTAMP}, #{utilizablevolume,jdbcType=REAL}, #{norrmallevel,jdbcType=REAL}, + #{flooddetentionvolume,jdbcType=REAL}, #{deadlevel,jdbcType=REAL}, #{areaCode,jdbcType=VARCHAR}, + #{lrcd,jdbcType=VARCHAR}, #{szhldm,jdbcType=VARCHAR}, #{dongj,jdbcType=REAL}, #{beiw,jdbcType=REAL} + , #{mjflsscnwl,jdbcType=REAL} + ) + + + insert into reservoir_info + + + STCD, + + + STATIONID, + + + DISCHARGE, + + + NAME, + + + LOCATION, + + + VILLAGE, + + + ROADLENGTH, + + + ROADCONDITIION, + + + BUILDDATE, + + + COMPLETEDDATE, + + + RAINAREA, + + + DESIGNEDFLOODFLOW, + + + CHEDKEDFLOODFLOW, + + + DESIGNEDFILLAREA, + + + DESIGNEDTOTALFLOW, + + + CHECDEDTOTALFLOW, + + + AVERAGERAINFALL, + + + DESIGNEDMAXFLOW, + + + CHECKEDMAXFLOW, + + + VOLUME, + + + CHECKEDFLOODLEVEL, + + + HISTORICALMAXLEVEL, + + + FLOODCONTROLVOLUME, + + + DESIGNEDFLOODLEVEL, + + + MAXLEVELTIME, + + + UTILIZABLEVOLUME, + + + NORRMALLEVEL, + + + FLOODDETENTIONVOLUME, + + + DEADLEVEL, + + + AREA_CODE, + + + LRCD, + + + SZHLDM, + + + DONGJ, + + + BEIW, + + + MJFLSSCNWL, + + + + + #{stcd,jdbcType=VARCHAR}, + + + #{stationid,jdbcType=VARCHAR}, + + + #{discharge,jdbcType=REAL}, + + + #{name,jdbcType=VARCHAR}, + + + #{location,jdbcType=VARCHAR}, + + + #{village,jdbcType=VARCHAR}, + + + #{roadlength,jdbcType=REAL}, + + + #{roadconditiion,jdbcType=VARCHAR}, + + + #{builddate,jdbcType=DATE}, + + + #{completeddate,jdbcType=DATE}, + + + #{rainarea,jdbcType=REAL}, + + + #{designedfloodflow,jdbcType=REAL}, + + + #{chedkedfloodflow,jdbcType=REAL}, + + + #{designedfillarea,jdbcType=REAL}, + + + #{designedtotalflow,jdbcType=REAL}, + + + #{checdedtotalflow,jdbcType=REAL}, + + + #{averagerainfall,jdbcType=REAL}, + + + #{designedmaxflow,jdbcType=REAL}, + + + #{checkedmaxflow,jdbcType=REAL}, + + + #{volume,jdbcType=REAL}, + + + #{checkedfloodlevel,jdbcType=REAL}, + + + #{historicalmaxlevel,jdbcType=REAL}, + + + #{floodcontrolvolume,jdbcType=REAL}, + + + #{designedfloodlevel,jdbcType=REAL}, + + + #{maxleveltime,jdbcType=TIMESTAMP}, + + + #{utilizablevolume,jdbcType=REAL}, + + + #{norrmallevel,jdbcType=REAL}, + + + #{flooddetentionvolume,jdbcType=REAL}, + + + #{deadlevel,jdbcType=REAL}, + + + #{areaCode,jdbcType=VARCHAR}, + + + #{lrcd,jdbcType=VARCHAR}, + + + #{szhldm,jdbcType=VARCHAR}, + + + #{dongj,jdbcType=REAL}, + + + #{beiw,jdbcType=REAL}, + + + #{mjflsscnwl,jdbcType=REAL}, + + + + + update reservoir_info + + + STATIONID = #{stationid,jdbcType=VARCHAR}, + + + DISCHARGE = #{discharge,jdbcType=REAL}, + + + NAME = #{name,jdbcType=VARCHAR}, + + + LOCATION = #{location,jdbcType=VARCHAR}, + + + VILLAGE = #{village,jdbcType=VARCHAR}, + + + ROADLENGTH = #{roadlength,jdbcType=REAL}, + + + ROADCONDITIION = #{roadconditiion,jdbcType=VARCHAR}, + + + BUILDDATE = #{builddate,jdbcType=DATE}, + + + COMPLETEDDATE = #{completeddate,jdbcType=DATE}, + + + RAINAREA = #{rainarea,jdbcType=REAL}, + + + DESIGNEDFLOODFLOW = #{designedfloodflow,jdbcType=REAL}, + + + CHEDKEDFLOODFLOW = #{chedkedfloodflow,jdbcType=REAL}, + + + DESIGNEDFILLAREA = #{designedfillarea,jdbcType=REAL}, + + + DESIGNEDTOTALFLOW = #{designedtotalflow,jdbcType=REAL}, + + + CHECDEDTOTALFLOW = #{checdedtotalflow,jdbcType=REAL}, + + + AVERAGERAINFALL = #{averagerainfall,jdbcType=REAL}, + + + DESIGNEDMAXFLOW = #{designedmaxflow,jdbcType=REAL}, + + + CHECKEDMAXFLOW = #{checkedmaxflow,jdbcType=REAL}, + + + VOLUME = #{volume,jdbcType=REAL}, + + + CHECKEDFLOODLEVEL = #{checkedfloodlevel,jdbcType=REAL}, + + + HISTORICALMAXLEVEL = #{historicalmaxlevel,jdbcType=REAL}, + + + FLOODCONTROLVOLUME = #{floodcontrolvolume,jdbcType=REAL}, + + + DESIGNEDFLOODLEVEL = #{designedfloodlevel,jdbcType=REAL}, + + + MAXLEVELTIME = #{maxleveltime,jdbcType=TIMESTAMP}, + + + UTILIZABLEVOLUME = #{utilizablevolume,jdbcType=REAL}, + + + NORRMALLEVEL = #{norrmallevel,jdbcType=REAL}, + + + FLOODDETENTIONVOLUME = #{flooddetentionvolume,jdbcType=REAL}, + + + DEADLEVEL = #{deadlevel,jdbcType=REAL}, + + + AREA_CODE = #{areaCode,jdbcType=VARCHAR}, + + + LRCD = #{lrcd,jdbcType=VARCHAR}, + + + SZHLDM = #{szhldm,jdbcType=VARCHAR}, + + + DONGJ = #{dongj,jdbcType=REAL}, + + + BEIW = #{beiw,jdbcType=REAL}, + + + MJFLSSCNWL = #{mjflsscnwl,jdbcType=REAL}, + + + where STCD = #{stcd,jdbcType=VARCHAR} + + + update reservoir_info + set STATIONID = #{stationid,jdbcType=VARCHAR}, + DISCHARGE = #{discharge,jdbcType=REAL}, + NAME = #{name,jdbcType=VARCHAR}, + LOCATION = #{location,jdbcType=VARCHAR}, + VILLAGE = #{village,jdbcType=VARCHAR}, + ROADLENGTH = #{roadlength,jdbcType=REAL}, + ROADCONDITIION = #{roadconditiion,jdbcType=VARCHAR}, + BUILDDATE = #{builddate,jdbcType=DATE}, + COMPLETEDDATE = #{completeddate,jdbcType=DATE}, + RAINAREA = #{rainarea,jdbcType=REAL}, + DESIGNEDFLOODFLOW = #{designedfloodflow,jdbcType=REAL}, + CHEDKEDFLOODFLOW = #{chedkedfloodflow,jdbcType=REAL}, + DESIGNEDFILLAREA = #{designedfillarea,jdbcType=REAL}, + DESIGNEDTOTALFLOW = #{designedtotalflow,jdbcType=REAL}, + CHECDEDTOTALFLOW = #{checdedtotalflow,jdbcType=REAL}, + AVERAGERAINFALL = #{averagerainfall,jdbcType=REAL}, + DESIGNEDMAXFLOW = #{designedmaxflow,jdbcType=REAL}, + CHECKEDMAXFLOW = #{checkedmaxflow,jdbcType=REAL}, + VOLUME = #{volume,jdbcType=REAL}, + CHECKEDFLOODLEVEL = #{checkedfloodlevel,jdbcType=REAL}, + HISTORICALMAXLEVEL = #{historicalmaxlevel,jdbcType=REAL}, + FLOODCONTROLVOLUME = #{floodcontrolvolume,jdbcType=REAL}, + DESIGNEDFLOODLEVEL = #{designedfloodlevel,jdbcType=REAL}, + MAXLEVELTIME = #{maxleveltime,jdbcType=TIMESTAMP}, + UTILIZABLEVOLUME = #{utilizablevolume,jdbcType=REAL}, + NORRMALLEVEL = #{norrmallevel,jdbcType=REAL}, + FLOODDETENTIONVOLUME = #{flooddetentionvolume,jdbcType=REAL}, + DEADLEVEL = #{deadlevel,jdbcType=REAL}, + AREA_CODE = #{areaCode,jdbcType=VARCHAR}, + LRCD = #{lrcd,jdbcType=VARCHAR}, + SZHLDM = #{szhldm,jdbcType=VARCHAR}, + DONGJ = #{dongj,jdbcType=REAL}, + BEIW = #{beiw,jdbcType=REAL}, + MJFLSSCNWL = #{mjflsscnwl,jdbcType=REAL} + where STCD = #{stcd,jdbcType=VARCHAR} + + + + + + \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.java new file mode 100644 index 0000000..01c9ea8 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.java @@ -0,0 +1,21 @@ +package com.hnac.hzims.baseinfo.mapper; + +import com.hnac.hzims.baseinfo.entity.ReservoirRefdata; +import com.hnac.hzims.baseinfo.entity.ReservoirRefdataExample; + +import java.util.List; +public interface ReservoirRefdataMapper { + int deleteByPrimaryKey(String stcd); + + int insert(ReservoirRefdata record); + + int insertSelective(ReservoirRefdata record); + + List selectByExample(ReservoirRefdataExample example); + + ReservoirRefdata selectByPrimaryKey(String stcd); + + int updateByPrimaryKeySelective(ReservoirRefdata record); + + int updateByPrimaryKey(ReservoirRefdata record); +} \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.xml b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.xml new file mode 100644 index 0000000..41e50a5 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + STCD, REFSTCD, REFQPOINT, REFZPOINT + + + + + delete from reservoir_refdata + where STCD = #{stcd,jdbcType=VARCHAR} + + + insert into reservoir_refdata (STCD, REFSTCD, REFQPOINT, + REFZPOINT) + values (#{stcd,jdbcType=VARCHAR}, #{refstcd,jdbcType=CHAR}, #{refqpoint,jdbcType=VARCHAR}, + #{refzpoint,jdbcType=CHAR}) + + + insert into reservoir_refdata + + + STCD, + + + REFSTCD, + + + REFQPOINT, + + + REFZPOINT, + + + + + #{stcd,jdbcType=VARCHAR}, + + + #{refstcd,jdbcType=CHAR}, + + + #{refqpoint,jdbcType=VARCHAR}, + + + #{refzpoint,jdbcType=CHAR}, + + + + + update reservoir_refdata + + + REFSTCD = #{refstcd,jdbcType=CHAR}, + + + REFQPOINT = #{refqpoint,jdbcType=VARCHAR}, + + + REFZPOINT = #{refzpoint,jdbcType=CHAR}, + + + where STCD = #{stcd,jdbcType=VARCHAR} + + + update reservoir_refdata + set REFSTCD = #{refstcd,jdbcType=CHAR}, + REFQPOINT = #{refqpoint,jdbcType=VARCHAR}, + REFZPOINT = #{refzpoint,jdbcType=CHAR} + where STCD = #{stcd,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.java new file mode 100644 index 0000000..7b41776 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.java @@ -0,0 +1,28 @@ +package com.hnac.hzims.baseinfo.mapper; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.baseinfo.entity.StZvarlB; +import com.hnac.hzims.baseinfo.entity.StZvarlBExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; +public interface StZvarlBMapper { + int deleteByPrimaryKey(Integer id); + + int insert(StZvarlB record); + + int insertSelective(StZvarlB record); + + List selectByExample(StZvarlBExample example); + + StZvarlB selectByPrimaryKey(Integer id); + + int updateByPrimaryKeySelective(StZvarlB record); + + int updateByPrimaryKey(StZvarlB record); + IPage selectByStcd(@Param("stcd") String stcd, IPage page); + + List selectMaxMin(StZvarlB stZvarlB); + + List selectStZvarlB(@Param("stcd") String stcd); +} \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.xml b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.xml new file mode 100644 index 0000000..84cd544 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.xml @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + ID, STCD, MSTM, PTNO, RZ, W, WSFA, MODITIME + + + + + delete from st_zvarl_b + where ID = #{id,jdbcType=INTEGER} + + + insert into st_zvarl_b (ID, STCD, MSTM, + PTNO, RZ, W, WSFA, + MODITIME) + values (#{id,jdbcType=INTEGER}, #{stcd,jdbcType=VARCHAR}, #{mstm,jdbcType=TIMESTAMP}, + #{ptno,jdbcType=INTEGER}, #{rz,jdbcType=DECIMAL}, #{w,jdbcType=DECIMAL}, #{wsfa,jdbcType=DECIMAL}, + #{moditime,jdbcType=TIMESTAMP}) + + + insert into st_zvarl_b + + + ID, + + + STCD, + + + MSTM, + + + PTNO, + + + RZ, + + + W, + + + WSFA, + + + MODITIME, + + + + + #{id,jdbcType=INTEGER}, + + + #{stcd,jdbcType=VARCHAR}, + + + #{mstm,jdbcType=TIMESTAMP}, + + + #{ptno,jdbcType=INTEGER}, + + + #{rz,jdbcType=DECIMAL}, + + + #{w,jdbcType=DECIMAL}, + + + #{wsfa,jdbcType=DECIMAL}, + + + #{moditime,jdbcType=TIMESTAMP}, + + + + + update st_zvarl_b + + + STCD = #{stcd,jdbcType=VARCHAR}, + + + MSTM = #{mstm,jdbcType=TIMESTAMP}, + + + PTNO = #{ptno,jdbcType=INTEGER}, + + + RZ = #{rz,jdbcType=DECIMAL}, + + + W = #{w,jdbcType=DECIMAL}, + + + WSFA = #{wsfa,jdbcType=DECIMAL}, + + + MODITIME = #{moditime,jdbcType=TIMESTAMP}, + + + where ID = #{id,jdbcType=INTEGER} + + + update st_zvarl_b + set STCD = #{stcd,jdbcType=VARCHAR}, + MSTM = #{mstm,jdbcType=TIMESTAMP}, + PTNO = #{ptno,jdbcType=INTEGER}, + RZ = #{rz,jdbcType=DECIMAL}, + W = #{w,jdbcType=DECIMAL}, + WSFA = #{wsfa,jdbcType=DECIMAL}, + MODITIME = #{moditime,jdbcType=TIMESTAMP} + where ID = #{id,jdbcType=INTEGER} + + + + + + + + + \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.java new file mode 100644 index 0000000..35336c3 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.java @@ -0,0 +1,27 @@ +package com.hnac.hzims.baseinfo.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.baseinfo.entity.WqLrinfB; +import com.hnac.hzims.baseinfo.entity.WqLrinfBExample; +import org.apache.ibatis.annotations.Param; + + +public interface WqLrinfBMapper { + int deleteByPrimaryKey(String lrcd); + + int insert(WqLrinfB record); + + int insertSelective(WqLrinfB record); + + List selectByExample(WqLrinfBExample example); + + WqLrinfB selectByPrimaryKey(String lrcd); + + int updateByPrimaryKeySelective(WqLrinfB record); + + int updateByPrimaryKey(WqLrinfB record); + + IPage selectByLrnm(@Param("lrnm")String lrnm, IPage page); +} \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.xml b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.xml new file mode 100644 index 0000000..0e4cd7a --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.xml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + LRCD, WATP, LRNM, LRAR, RSCP, COORDINATESET + + + + + delete from wq_lrinf_b + where LRCD = #{lrcd,jdbcType=CHAR} + + + insert into wq_lrinf_b (LRCD, WATP, LRNM, LRAR, + RSCP, COORDINATESET) + values (#{lrcd,jdbcType=CHAR}, #{watp,jdbcType=CHAR}, #{lrnm,jdbcType=VARCHAR}, #{lrar,jdbcType=DECIMAL}, + #{rscp,jdbcType=DECIMAL}, #{coordinateset,jdbcType=VARCHAR}) + + + insert into wq_lrinf_b + + + LRCD, + + + WATP, + + + LRNM, + + + LRAR, + + + RSCP, + + + COORDINATESET, + + + + + #{lrcd,jdbcType=CHAR}, + + + #{watp,jdbcType=CHAR}, + + + #{lrnm,jdbcType=VARCHAR}, + + + #{lrar,jdbcType=DECIMAL}, + + + #{rscp,jdbcType=DECIMAL}, + + + #{coordinateset,jdbcType=VARCHAR}, + + + + + update wq_lrinf_b + + + WATP = #{watp,jdbcType=CHAR}, + + + LRNM = #{lrnm,jdbcType=VARCHAR}, + + + LRAR = #{lrar,jdbcType=DECIMAL}, + + + RSCP = #{rscp,jdbcType=DECIMAL}, + + + COORDINATESET = #{coordinateset,jdbcType=VARCHAR}, + + + where LRCD = #{lrcd,jdbcType=CHAR} + + + update wq_lrinf_b + set WATP = #{watp,jdbcType=CHAR}, + LRNM = #{lrnm,jdbcType=VARCHAR}, + LRAR = #{lrar,jdbcType=DECIMAL}, + RSCP = #{rscp,jdbcType=DECIMAL}, + COORDINATESET = #{coordinateset,jdbcType=VARCHAR} + where LRCD = #{lrcd,jdbcType=CHAR} + + + + \ No newline at end of file diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/FileReservoirInfoService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/FileReservoirInfoService.java new file mode 100644 index 0000000..9dd9b09 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/FileReservoirInfoService.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.baseinfo.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.baseinfo.entity.FileReservoirInfo; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/9 10:42 + */ +public interface FileReservoirInfoService extends IService { +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ImageReservoirInfoService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ImageReservoirInfoService.java new file mode 100644 index 0000000..896f7d7 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ImageReservoirInfoService.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.baseinfo.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.baseinfo.entity.ImageReservoirInfo; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/9 10:42 + */ +public interface ImageReservoirInfoService extends IService { +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/IrrBIReachService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/IrrBIReachService.java new file mode 100644 index 0000000..e631b4f --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/IrrBIReachService.java @@ -0,0 +1,18 @@ +package com.hnac.hzims.baseinfo.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.IrrBIReach; +import org.springblade.core.tool.api.R; + +public interface IrrBIReachService { + + IPage bindIrrBIReachs(String riverName, Page page); + + R addOrEditIrrBIReach(IrrBIReach irrBIReach, String operate); + + R delIrrBIReach(String riverCode); + + IrrBIReach getIrrBIReach(String riverCode); + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirInfoService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirInfoService.java new file mode 100644 index 0000000..0607b7e --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirInfoService.java @@ -0,0 +1,25 @@ +package com.hnac.hzims.baseinfo.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.baseinfo.entity.ReservoirInfo; +import com.hnac.hzims.baseinfo.vo.ReservoirInfoVo; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; + +import java.util.List; + +public interface ReservoirInfoService { + + IPage bindReservoirList(String name, String areaCode, String riverCode, + List stationIds, Query query); + + IPage bindReservoirList(String name, String areaCode, String riverCode, + List stationIds, IPage page); + + ReservoirInfoVo getReservoir(String id); + + R addOrEditReservoir(ReservoirInfoVo reservoirInfoVo, String operate); + + R delReservoir(String id); + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirRefDataService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirRefDataService.java new file mode 100644 index 0000000..f442341 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirRefDataService.java @@ -0,0 +1,15 @@ +package com.hnac.hzims.baseinfo.service; + +import com.hnac.hzims.baseinfo.entity.ReservoirRefdata; +import com.hnac.hzims.baseinfo.vo.ReservoirRefdataVo; +import org.springblade.core.tool.api.R; + +public interface ReservoirRefDataService { + + R configReservoirRefData(ReservoirRefdata reservoirRefdata); + + R delReservoirRefData(String rstcd); + + ReservoirRefdataVo getReservoirRefData(String stcd); + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirWaterManageService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirWaterManageService.java new file mode 100644 index 0000000..dab1fb6 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirWaterManageService.java @@ -0,0 +1,11 @@ +package com.hnac.hzims.baseinfo.service; + + + +import com.hnac.hzims.baseinfo.entity.ReservoirWaterManage; + +import java.util.List; + +public interface ReservoirWaterManageService { + List getReservoirWaterManage(String stcd, List months); +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/StZvarlBService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/StZvarlBService.java new file mode 100644 index 0000000..90530b1 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/StZvarlBService.java @@ -0,0 +1,26 @@ +package com.hnac.hzims.baseinfo.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.baseinfo.entity.StZvarlB; +import org.springblade.core.tool.api.R; + + +import java.math.BigDecimal; +import java.util.List; + +public interface StZvarlBService { + + IPage bindStZvarlBs(String stcd, IPage page); + + R addOrEditStZvarlB(StZvarlB stZvarlB); + + R delStZvarlB(Integer id); + + BigDecimal getWValue(String stcd,BigDecimal rz); + //根据水库获取库容曲线 + List selectStZvarlB(String stcd); + //计算库容 + BigDecimal calcResp(List list,BigDecimal rz); + //计算小于等于rz最大 和 大于rz最小值的 水位与库容关系两个点 + List calcMaxMin(List list, BigDecimal rz); +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/WqLrinfBService.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/WqLrinfBService.java new file mode 100644 index 0000000..0930c3c --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/WqLrinfBService.java @@ -0,0 +1,20 @@ +package com.hnac.hzims.baseinfo.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.WqLrinfB; +import org.springblade.core.tool.api.R; + +public interface WqLrinfBService { + + IPage bindWqLrinfBs(String lrnm, Page page); + + WqLrinfB getWqLrinfB(String lrcd); + + R delWqLrinfB(String lrcd); + + R editWqLrinfB(WqLrinfB wqLrinfB); + + R addWqLrinfB(WqLrinfB wqLrinfB); + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/FileReservoirInfoServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/FileReservoirInfoServiceImpl.java new file mode 100644 index 0000000..112af3e --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/FileReservoirInfoServiceImpl.java @@ -0,0 +1,18 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.baseinfo.entity.FileReservoirInfo; +import com.hnac.hzims.baseinfo.mapper.FileReservoirInfoMapper; +import com.hnac.hzims.baseinfo.service.FileReservoirInfoService; +import org.springframework.stereotype.Service; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/9 10:43 + */ +@Service +public class FileReservoirInfoServiceImpl extends ServiceImpl + implements FileReservoirInfoService { +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ImageReservoirInfoServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ImageReservoirInfoServiceImpl.java new file mode 100644 index 0000000..21775cd --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ImageReservoirInfoServiceImpl.java @@ -0,0 +1,21 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.baseinfo.entity.FileReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ImageReservoirInfo; +import com.hnac.hzims.baseinfo.mapper.FileReservoirInfoMapper; +import com.hnac.hzims.baseinfo.mapper.ImageReservoirInfoMapper; +import com.hnac.hzims.baseinfo.service.FileReservoirInfoService; +import com.hnac.hzims.baseinfo.service.ImageReservoirInfoService; +import org.springframework.stereotype.Service; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/9 10:46 + */ +@Service +public class ImageReservoirInfoServiceImpl extends ServiceImpl + implements ImageReservoirInfoService { +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/IrrBIReachServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/IrrBIReachServiceImpl.java new file mode 100644 index 0000000..79c6ef8 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/IrrBIReachServiceImpl.java @@ -0,0 +1,65 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.IrrBIReach; +import com.hnac.hzims.baseinfo.mapper.IrrBIReachMapper; +import com.hnac.hzims.baseinfo.service.IrrBIReachService; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import com.alibaba.druid.util.StringUtils; +@Service +public class IrrBIReachServiceImpl implements IrrBIReachService { + @Autowired + private IrrBIReachMapper ibm; + + @Override + public IPage bindIrrBIReachs(String riverName, Page page) { + riverName = riverName == null ? "" : riverName; + IPage records = ibm.selectByRiverName(riverName, page); + return records; + } + + @Override + public R addOrEditIrrBIReach(IrrBIReach irrBIReach, String operate) { + + String riverCode = irrBIReach.getRiverCode(); + IrrBIReach model = ibm.selectByPrimaryKey(riverCode); + + if("add".equals(operate) && model!=null){ + return R.fail(500,"河流编码已存在"); + } + + int cnt = 0; + if (model != null && !StringUtils.isEmpty(model.getRiverCode())) { // edit + cnt = ibm.updateByPrimaryKey(irrBIReach); + } else { + cnt = ibm.insert(irrBIReach); + } + if (cnt < 1) { + if("add".equals(operate)) { + return R.fail(500,"新增失败"); + }else{ + return R.fail(500,"编辑失败"); + } + } + return R.success("操作成功"); + } + + @Override + public R delIrrBIReach(String riverCode) { + int cnt = 0; + cnt = ibm.deleteByPrimaryKey(riverCode); + if (cnt < 1) + return R.fail(500,"删除失败"); + return R.success("删除成功"); + } + + @Override + public IrrBIReach getIrrBIReach(String riverCode) { + return ibm.selectByPrimaryKey(riverCode); + } + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirInfoServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirInfoServiceImpl.java new file mode 100644 index 0000000..5c143fd --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirInfoServiceImpl.java @@ -0,0 +1,180 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.alibaba.druid.util.StringUtils; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.FileReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ImageReservoirInfo; +import com.hnac.hzims.baseinfo.entity.ReservoirInfo; +import com.hnac.hzims.baseinfo.mapper.ReservoirInfoMapper; +import com.hnac.hzims.baseinfo.mapper.ReservoirRefdataMapper; +import com.hnac.hzims.baseinfo.service.FileReservoirInfoService; +import com.hnac.hzims.baseinfo.service.ImageReservoirInfoService; +import com.hnac.hzims.baseinfo.service.ReservoirInfoService; +import com.hnac.hzims.baseinfo.vo.ReservoirInfoVo; +import org.apache.commons.collections4.CollectionUtils; +import org.springblade.core.mp.support.Query; +import org.springblade.core.tool.api.R; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.yaml.snakeyaml.events.Event; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +@Service +public class ReservoirInfoServiceImpl implements ReservoirInfoService { + + @Autowired + ReservoirInfoMapper reservoirInfoMapper; + @Autowired + private ReservoirRefdataMapper rrm; + + @Autowired + private ImageReservoirInfoService imageReservoirInfoService; + @Autowired + private FileReservoirInfoService fileReservoirInfoService; + + @Override + public ReservoirInfoVo getReservoir(String id) { + ReservoirInfo info = null; + ReservoirInfoVo infoVo = null; + info = reservoirInfoMapper.selectByPrimaryKey(id); + if (info != null) { + infoVo = new ReservoirInfoVo(info); + } + //查询图片 + List imageReservoirInfoList = imageReservoirInfoService.list(new LambdaQueryWrapper() + .eq(ImageReservoirInfo::getReservoirInfoId, id)); + if (CollectionUtils.isNotEmpty(imageReservoirInfoList)) { + infoVo.setImageReservoirInfoList(imageReservoirInfoList); + } + + //查询文件 + List fileReservoirInfoList = + fileReservoirInfoService.list(new LambdaQueryWrapper() + .eq(FileReservoirInfo::getReservoirInfoId, id)); + if (CollectionUtils.isNotEmpty(fileReservoirInfoList)) { + infoVo.setFileReservoirInfoList(fileReservoirInfoList); + } + + return infoVo; + } + + @Override + public R addOrEditReservoir(ReservoirInfoVo reservoirInfoVo, String operate) { + int cnt = 0; + ReservoirInfo ri = new ReservoirInfo(reservoirInfoVo); + String stcd = ri.getStcd(); + ReservoirInfo info = reservoirInfoMapper.selectByPrimaryKey(stcd); + + if ("add".equals(operate) && info != null) { + return R.fail(500, "水库编码已存在"); + } + + if (info != null && !StringUtils.isEmpty(info.getStcd())) { // edit + cnt = reservoirInfoMapper.updateByPrimaryKey(ri); + if (!info.getStationid().equals(reservoirInfoVo.getStationid())) { //编辑时站点更换清除之前数据配置 + rrm.deleteByPrimaryKey(info.getStcd()); + } + } else { // add + cnt = reservoirInfoMapper.insert(ri); + } + if (cnt < 1) { + return R.fail(500, "操作失败"); + } + + + if ("update".equals(operate)) { + //删除图片 + imageReservoirInfoService.remove(new LambdaQueryWrapper() + .eq(ImageReservoirInfo::getReservoirInfoId, stcd)); + //删除文件 + fileReservoirInfoService.remove(new LambdaQueryWrapper() + .eq(FileReservoirInfo::getReservoirInfoId, stcd)); + + } + + //图片 + List imageReservoirInfoList = reservoirInfoVo.getImageReservoirInfoList(); + if (CollectionUtils.isNotEmpty(imageReservoirInfoList)) { + imageReservoirInfoList.stream().map(item -> { + item.setReservoirInfoId(stcd); + return item; + }).collect(Collectors.toList()); + imageReservoirInfoService.saveOrUpdateBatch(imageReservoirInfoList); + } + + //文件 + List fileReservoirInfoList = reservoirInfoVo.getFileReservoirInfoList(); + if (CollectionUtils.isNotEmpty(fileReservoirInfoList)) { + fileReservoirInfoList.stream().map(item -> { + item.setReservoirInfoId(stcd); + return item; + }).collect(Collectors.toList()); + fileReservoirInfoService.saveOrUpdateBatch(fileReservoirInfoList); + } + return R.success("操作成功"); + } + + @Override + public R delReservoir(String stcd) { + int cnt = reservoirInfoMapper.deleteByPrimaryKey(stcd); + rrm.deleteByPrimaryKey(stcd); + + //删除图片 + imageReservoirInfoService.remove( + new LambdaQueryWrapper().eq(ImageReservoirInfo::getReservoirInfoId, stcd)); + + //删除文集 + fileReservoirInfoService.remove( + new LambdaQueryWrapper().eq(FileReservoirInfo::getReservoirInfoId, stcd)); + + if (cnt < 1) + return R.fail(500, "删除失败"); + return R.success("删除成功"); + } + + @Override + public IPage bindReservoirList(String name, String areaCode, String riverCode, + List stationIds, Query query) { + Page reservoirInfoPage = new Page<>(query.getCurrent(), query.getSize()); + IPage records = reservoirInfoMapper + .selectByNameAndStationId(name, areaCode, riverCode, stationIds, reservoirInfoPage); + + IPage resultPage = new Page<>(records.getCurrent(), records.getSize()); + List reservoirInfoVos = new ArrayList<>(); + for (ReservoirInfo record : records.getRecords()) { + ReservoirInfoVo reservoirInfoVo = new ReservoirInfoVo(); + BeanUtils.copyProperties(record, reservoirInfoVo); + //查询图片 + List imageReservoirInfoList = imageReservoirInfoService.list(new LambdaQueryWrapper() + .eq(ImageReservoirInfo::getReservoirInfoId, record.getStcd())); + if (CollectionUtils.isNotEmpty(imageReservoirInfoList)) { + reservoirInfoVo.setImageReservoirInfoList(imageReservoirInfoList); + } + + //查询文件 + List fileReservoirInfoList = + fileReservoirInfoService.list(new LambdaQueryWrapper() + .eq(FileReservoirInfo::getReservoirInfoId, record.getStcd())); + if (CollectionUtils.isNotEmpty(fileReservoirInfoList)) { + reservoirInfoVo.setFileReservoirInfoList(fileReservoirInfoList); + } + reservoirInfoVos.add(reservoirInfoVo); + } + resultPage.setRecords(reservoirInfoVos); + return resultPage; + } + + @Override + public IPage bindReservoirList(String name, String areaCode, String riverCode, List stationIds, IPage page) { + IPage records = reservoirInfoMapper + .selectByNameAndStationId(name, areaCode, riverCode, stationIds, page); + return records; + } + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirRefDataServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirRefDataServiceImpl.java new file mode 100644 index 0000000..34c3869 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirRefDataServiceImpl.java @@ -0,0 +1,66 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.alibaba.druid.util.StringUtils; +import com.hnac.hzims.baseinfo.entity.ReservoirRefdata; +import com.hnac.hzims.baseinfo.mapper.ReservoirRefdataMapper; +import com.hnac.hzims.baseinfo.service.ReservoirRefDataService; +import com.hnac.hzims.baseinfo.vo.ReservoirRefdataVo; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class ReservoirRefDataServiceImpl implements ReservoirRefDataService { + @Autowired + private ReservoirRefdataMapper rrm; + + @Override + public R configReservoirRefData(ReservoirRefdata reservoirRefdata) { + String stcd = reservoirRefdata.getStcd(); + int cnt = 0; + ReservoirRefdata model = rrm.selectByPrimaryKey(stcd); + if (model != null && !StringUtils.isEmpty(model.getStcd())) { + cnt = rrm.updateByPrimaryKey(reservoirRefdata); + } else { + cnt = rrm.insert(reservoirRefdata); + } + if (cnt < 1) return R.data("500", "操作失败"); + return R.success("操作成功"); + } + + @Override + public R delReservoirRefData(String rstcd) { + int cnt = rrm.deleteByPrimaryKey(rstcd); + if (cnt < 1) { + return R.fail(500, "删除失败"); + } + return R.success("删除成功"); + } + + @Override + public ReservoirRefdataVo getReservoirRefData(String stcd) { + ReservoirRefdata info = rrm.selectByPrimaryKey(stcd); + ReservoirRefdataVo infoVo = new ReservoirRefdataVo(info); + if (info != null) { + infoVo = new ReservoirRefdataVo(info); + // if (!StringUtils.isEmpty(info.getRefqpoint())) { + // + // BasePoint dataPointDef = FacInfoFactory.getInstance().getDataPointDef(info.getRefqpoint()); + // if (dataPointDef != null) { + // infoVo.setRefqFactory(dataPointDef.getFactoryId()); + // infoVo.setRefqGroupId(dataPointDef.getGroupId()); + // } + // } + // + // if (!StringUtils.isEmpty(info.getRefzpoint())) { + // BasePoint dataPointDef = FacInfoFactory.getInstance().getDataPointDef(info.getRefzpoint()); + // if (dataPointDef != null) { + // infoVo.setRefzFactory(dataPointDef.getFactoryId()); + // infoVo.setRefzGroupId(dataPointDef.getGroupId()); + // } + // } + } + return infoVo; + } + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/StZvarlBServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/StZvarlBServiceImpl.java new file mode 100644 index 0000000..abe6e05 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/StZvarlBServiceImpl.java @@ -0,0 +1,148 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.alibaba.druid.util.StringUtils; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.baseinfo.entity.StZvarlB; +import com.hnac.hzims.baseinfo.mapper.StZvarlBMapper; +import com.hnac.hzims.baseinfo.service.StZvarlBService; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +@Service +public class StZvarlBServiceImpl implements StZvarlBService { + @Autowired + private StZvarlBMapper stZvarlBMapper; + + + @Override + public IPage bindStZvarlBs(String stcd, IPage page) { + IPage records = stZvarlBMapper.selectByStcd(stcd, page); + return records; + } + + @Override + public R addOrEditStZvarlB(StZvarlB stZvarlB) { + int cnt = 0; + Integer id = stZvarlB.getId(); + if (id == null) { + cnt = stZvarlBMapper.insert(stZvarlB); + } else { + StZvarlB info = stZvarlBMapper.selectByPrimaryKey(id); + stZvarlB.setModitime(new Date()); + if (info != null && !StringUtils.isEmpty(info.getStcd())) { // edit + cnt = stZvarlBMapper.updateByPrimaryKey(stZvarlB); + } else { // add + cnt = stZvarlBMapper.insert(stZvarlB); + } + } + if (cnt < 1) { + return R.fail(500,"操作失败"); + } + return R.success("操作成功"); + } + + @Override + public R delStZvarlB(Integer id) { + int cnt = stZvarlBMapper.deleteByPrimaryKey(id); + if (cnt < 1) + return R.fail(500,"删除失败"); + return R.success("删除成功"); + + } + + @Override + public BigDecimal getWValue(String stcd,BigDecimal rz) { + List list=selectStZvarlB(stcd); + if(list!=null && !list.isEmpty()){ + return calcResp(list,rz); + }else{ + return BigDecimal.ZERO; + } + + } + + @Override + public List selectStZvarlB(String stcd) { + return stZvarlBMapper.selectStZvarlB(stcd); + } + + @Override + public BigDecimal calcResp(List list, BigDecimal rz) { + List data=calcMaxMin(list,rz); + if(data!=null && data.size()!=2){ + return BigDecimal.ZERO; + } + StZvarlB zvarlB0=data.get(0); + StZvarlB zvarlB1=data.get(1); + return calcRespTmp(zvarlB0, zvarlB1, rz); + } + + //获取小于等于rz最大值 和 大于rz最小值的两个点 + public List calcMaxMin(List list,BigDecimal rz){ + List data=new ArrayList<>(); + //求小于等于rz最大值 + StZvarlB max=calcMax(list,rz); + if(max!=null){ + data.add(max); + } + //求大于rz最小值 + StZvarlB min=calcMin(list,rz); + if(min!=null){ + data.add(min); + } + return data; + } + + StZvarlB calcMax(List list,BigDecimal rz){ + List maxList=new ArrayList<>(); + for (StZvarlB stZvarlB:list){ + BigDecimal tmpRz=stZvarlB.getRz(); + if(tmpRz.compareTo(rz)<=0){ + maxList.add(stZvarlB); + } + } + if(maxList!=null && !maxList.isEmpty()){ + return maxList.get(maxList.size()-1); + }else{ + return null; + } + + + } + + StZvarlB calcMin(List list,BigDecimal rz){ + List minList=new ArrayList<>(); + for (StZvarlB stZvarlB:list){ + BigDecimal tmpRz=stZvarlB.getRz(); + if(tmpRz.compareTo(rz)>0){ + minList.add(stZvarlB); + } + } + if(minList!=null && !minList.isEmpty()){ + return minList.get(0); + }else{ + return null; + } + } + + + + private BigDecimal calcRespTmp(StZvarlB zvarlB0,StZvarlB zvarlB1,BigDecimal rz){ + try{ + BigDecimal data1=rz.subtract(zvarlB0.getRz()); + BigDecimal data2=zvarlB1.getRz().subtract(zvarlB0.getRz()); + BigDecimal data3 = zvarlB1.getW().subtract(zvarlB0.getW());; + Double tmp=Math.abs(data3.doubleValue()); + BigDecimal data4=data1.divide(data2).multiply(new BigDecimal(tmp)); + return zvarlB0.getW().add(data4).setScale(2, BigDecimal.ROUND_HALF_UP); + }catch (Exception e){ + return new BigDecimal("0"); + } + } + +} diff --git a/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/WqLrinfBServiceImpl.java b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/WqLrinfBServiceImpl.java new file mode 100644 index 0000000..a728fb5 --- /dev/null +++ b/hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/WqLrinfBServiceImpl.java @@ -0,0 +1,71 @@ +package com.hnac.hzims.baseinfo.service.impl; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.baseinfo.entity.WqLrinfB; +import com.hnac.hzims.baseinfo.mapper.WqLrinfBMapper; +import com.hnac.hzims.baseinfo.service.WqLrinfBService; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import com.alibaba.druid.util.StringUtils; + +@Service +public class WqLrinfBServiceImpl implements WqLrinfBService { + @Autowired + private WqLrinfBMapper wbm; + + + @Override + public IPage bindWqLrinfBs(String lrnm, Page page) { + lrnm = lrnm == null ? "" : lrnm; +// PageBounds pageBounds = new PageBounds(pageParam.getPageNo(), pageParam.getPageSize()); + IPage records = wbm.selectByLrnm(lrnm, page); + return records; + } + + @Override + public WqLrinfB getWqLrinfB(String lrcd) { + return wbm.selectByPrimaryKey(lrcd); + } + + @Override + public R delWqLrinfB(String lrcd) { + int cnt = wbm.deleteByPrimaryKey(lrcd); + if (cnt < 1) + return R.fail(500,"删除失败"); + return R.fail("删除成功"); + } + + @Override + public R editWqLrinfB(WqLrinfB wqLrinfB) { + int cnt = 0; + String lrcd = wqLrinfB.getLrcd(); + WqLrinfB model = wbm.selectByPrimaryKey(lrcd); + if (model != null && !StringUtils.isEmpty(model.getLrcd())) { + cnt = wbm.updateByPrimaryKey(wqLrinfB); + } else { + return R.fail(500,"湖库对象不存在"); + } + if (cnt < 1) + return R.fail(500,"编辑操作失败"); + return R.success("操作成功"); + } + + @Override + public R addWqLrinfB(WqLrinfB wqLrinfB) { + int cnt = 0; + String lrcd = wqLrinfB.getLrcd(); + WqLrinfB model = wbm.selectByPrimaryKey(lrcd); + if (model == null || StringUtils.isEmpty(model.getLrcd())) { + cnt = wbm.insert(wqLrinfB); + } else { + return R.fail(500,"湖库编码已存在"); + } + if (cnt < 1) + return R.fail(500,"添加失败"); + return R.success("操作成功"); + } + +} diff --git a/hzims-service/base-info/src/main/resources/application-dev.yml b/hzims-service/base-info/src/main/resources/application-dev.yml new file mode 100644 index 0000000..50a4ea7 --- /dev/null +++ b/hzims-service/base-info/src/main/resources/application-dev.yml @@ -0,0 +1,30 @@ +#服务器端口 +server: + port: 8200 + +#数据源配置 +#spring: +# datasource: +# url: ${blade.datasource.dev.url} +# username: ${blade.datasource.dev.username} +# password: ${blade.datasource.dev.password} + +spring: + #排除DruidDataSourceAutoConfigure + autoconfigure: + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure + datasource: + dynamic: + #设置默认的数据源或者数据源组,默认值即为master + primary: master + datasource: + master: + url: jdbc:mysql://127.0.0.1:3306/equipment?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: root + password: 123456 + slave: + url: jdbc:mysql://127.0.0.1:3306/equipment?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: root + password: 123456 +demo: + name: aaa diff --git a/hzims-service/base-info/src/main/resources/application-prod.yml b/hzims-service/base-info/src/main/resources/application-prod.yml new file mode 100644 index 0000000..da89262 --- /dev/null +++ b/hzims-service/base-info/src/main/resources/application-prod.yml @@ -0,0 +1,28 @@ +#服务器端口 +server: + port: 8200 + +#数据源配置 +#spring: +# datasource: +# url: ${blade.datasource.prod.url} +# username: ${blade.datasource.prod.username} +# password: ${blade.datasource.prod.password} + +spring: + #排除DruidDataSourceAutoConfigure + autoconfigure: + exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure + datasource: + dynamic: + #设置默认的数据源或者数据源组,默认值即为master + primary: master + datasource: + master: + url: ${blade.datasource.demo.master.url} + username: ${blade.datasource.demo.master.username} + password: ${blade.datasource.demo.master.password} + slave: + url: ${blade.datasource.demo.slave.url} + username: ${blade.datasource.demo.slave.username} + password: ${blade.datasource.demo.slave.password} diff --git a/hzims-service/base-info/src/main/resources/application.yml b/hzims-service/base-info/src/main/resources/application.yml new file mode 100644 index 0000000..aa52542 --- /dev/null +++ b/hzims-service/base-info/src/main/resources/application.yml @@ -0,0 +1,21 @@ +spring: + profiles: + active: dfy + datasource: + url: jdbc:mysql://175.6.40.67:50311/blade_huoshan_business?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: root + password: 123 + driver-class-name: com.mysql.jdbc.Driver +#mybatis-plus配置 +mybatis-plus: + mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml + #实体扫描,多个package用逗号或者分号分隔 +# typeAliasesPackage: com.hnac.hzims.**.entity + +#swagger扫描路径配置 +swagger: + base-packages: + - org.springbalde + - com.hnac + + diff --git a/hzims-service/hzims-scheduled/.gitignore b/hzims-service/hzims-scheduled/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/hzims-service/hzims-scheduled/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EstimateController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EstimateController.java new file mode 100644 index 0000000..f06ddf9 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EstimateController.java @@ -0,0 +1,74 @@ +package com.hnac.hzims.operational.station.controller; + + +import com.hnac.hzims.operational.station.entity.Estimate; +import com.hnac.hzims.operational.station.service.EstimateService; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.Map; + +/** + *

+ * 总体评分附表 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-23 + */ +@RestController +@RequestMapping("/station/estimate") +public class EstimateController { + + @Autowired + private EstimateService estimateService; + + /** + * 列表 + */ + @GetMapping("/list") + public R list() { + Map result = estimateService.selectEstimateList(); + return R.data(result); + } + + + /** + * 保存 + * + * @return + */ + @PostMapping("/save") + public R save(@RequestBody Estimate estimate) { + estimateService.save(estimate); + return R.success("新增成功"); + } + + + + /** + * 保存 + * + * @return + */ + @PutMapping("/update") + public R update(@RequestBody Estimate estimate) { + estimateService.save(estimate); + return R.success("修改成功"); + } + + + /** + * 删除 + * + * @return + */ + @PutMapping("/remove/{id}") + public R remove(@PathVariable String id) { + estimateService.removeById(id); + return R.success("删除成功"); + } + +} + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsController.java new file mode 100644 index 0000000..0d0b252 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsController.java @@ -0,0 +1,56 @@ +package com.hnac.hzims.operational.station.controller; + + +import com.hnac.hzims.operational.station.service.EvaluationDetailsService; +import com.hnac.hzims.operational.station.vo.EvaluationDetailsVo; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +/** + *

+ * 得分事项简述 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@RestController +@RequestMapping("/station/evaluation-details") +public class EvaluationDetailsController { + + + @Autowired + private EvaluationDetailsService evaluationDetailsService; + + /** + * 新增 + */ + @PostMapping("/save") + public R save(@RequestBody EvaluationDetailsVo evaluationDetailsVo) { + evaluationDetailsService.saveEvaluationDetail(evaluationDetailsVo); + return R.success("新增成功"); + } + + + /** + * 修改 + */ + @PutMapping("/update") + public R update(@RequestBody EvaluationDetailsVo evaluationDetailsVo) { + evaluationDetailsService.updateEvaluationDetail(evaluationDetailsVo); + return R.success("修改成功"); + } + + + /** + * 删除 + */ + @DeleteMapping("/remove/{id}") + public R remove(@PathVariable Long id) { + evaluationDetailsService.removeEvaluationDetail(id); + return R.success("删除成功"); + } + +} + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsOptionController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsOptionController.java new file mode 100644 index 0000000..b98a26a --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsOptionController.java @@ -0,0 +1,37 @@ +package com.hnac.hzims.operational.station.controller; + + +import com.hnac.hzims.operational.station.service.EvaluationDetailsOptionService; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *

+ * 选择表 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@RestController +@RequestMapping("/station/evaluation-details-option") +public class EvaluationDetailsOptionController { + + @Autowired + private EvaluationDetailsOptionService evaluationDetailsOptionService; + + + /** + * 删除 + */ + @DeleteMapping("/remove/{id}") + public R remove(@PathVariable Long id) { + evaluationDetailsOptionService.removeById(id); + return R.success("删除成功"); + } +} + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HydropowerStationController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HydropowerStationController.java new file mode 100644 index 0000000..c0fd186 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HydropowerStationController.java @@ -0,0 +1,81 @@ +package com.hnac.hzims.operational.station.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.operational.station.entity.StationEntity; +import com.hnac.hzims.operational.station.service.IStationService; +import com.hnac.hzims.operational.station.vo.StationQueryVo; +import com.hnac.hzims.operational.station.vo.StationsQueryVo; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springblade.core.tool.api.R; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; +import java.util.Map; + +/** + * 绿色小水电 + * + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/15 15:58 + */ +@RequestMapping("/hydropower/station") +@Slf4j +@RestController +@RequiredArgsConstructor +public class HydropowerStationController { + + + private final IStationService stationService; + + /** + * 对全县绿色水电站在水电GIS一张图上进行展示,直观展现绿色小水电站的分布信息。 + */ + @GetMapping("pageList/{page}/{size}") + public R pageList(@PathVariable Long page, + @PathVariable Long size, + StationQueryVo stationQueryVo) { + Page stationEntityPage = new Page<>(page, size); + IPage stationEntityIPage = + stationService.selectPageList(stationEntityPage, stationQueryVo); + return R.data(stationEntityIPage); + } + + + /** + * 对全县绿色水电站在水电GIS一张图上进行展示,直观展现绿色小水电站的分布信息。 + */ + @GetMapping("/list") + public R list(StationsQueryVo stationsQueryVo) { + List list = stationService.selectStationsQueryList(stationsQueryVo); + return R.data(list); + } + + + /** + * 查看详情 + */ + @GetMapping("/get/{id}") + public R getById(@PathVariable Long id) { + StationEntity station = stationService.getById(id); + return R.data(station); + } + + + /** + * 获取绿色小水站电站数据 + */ + @GetMapping("/get/count") + public R getCount() { + Map stationVos = stationService.getCount(); + return R.data(stationVos); + } + + +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java index 096c768..ca0ecbb 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java @@ -74,7 +74,7 @@ public class StationController extends BladeController { // @ApiOperationSupport(order = 60) @ApiOperation(value = "查看详情", notes = "查看详情") public R detail(@PathVariable @ApiParam("主键ID") Long id) { - return R.data(stationService.getById(id)); + return R.data(stationService.getByStationId(id)); } /** @@ -84,7 +84,7 @@ public class StationController extends BladeController { @ApiOperationSupport(order = 20) @ApiOperation(value = "新增") public R save(@Valid @RequestBody StationEntity req) { - stationService.buildStation(req); + stationService.buildStation(req,"add"); return R.success("保存成功!"); // List list = stationService.list(new LambdaQueryWrapper(){{ // eq(StationEntity::getCode,req.getCode()).or().eq(StationEntity::getName,req.getName()); @@ -106,7 +106,7 @@ public class StationController extends BladeController { @ApiOperationSupport(order = 30) @ApiOperation(value = "修改", notes = "传入StationEntity") public R update(@Valid @RequestBody StationEntity req) { - stationService.buildStation(req); + stationService.buildStation(req,"update"); return R.success("修改成功!"); // LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper(); // queryWrapper.ne(StationEntity::getId,req.getId()); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationEvaluationController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationEvaluationController.java new file mode 100644 index 0000000..fe95541 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationEvaluationController.java @@ -0,0 +1,70 @@ +package com.hnac.hzims.operational.station.controller; + + +import com.hnac.hzims.operational.station.entity.StationEvaluation; +import com.hnac.hzims.operational.station.service.StationEvaluationService; +import com.hnac.hzims.operational.station.vo.OneStationEvaluationVo; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + *

+ * 电站评分表 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@RestController +@RequestMapping("/station/station-evaluation") +public class StationEvaluationController { + + + @Autowired + private StationEvaluationService stationEvaluationService; + + /** + * 列表展示 + */ + @GetMapping("/list") + public R list() { + List result = stationEvaluationService.selectList(); + return R.data(result); + } + + + /** + * 新增 + */ + @PostMapping("/save") + public R save(@RequestBody StationEvaluation stationEvaluation) { + stationEvaluationService.save(stationEvaluation); + return R.success("新增成功"); + } + + + /** + * 修改 + */ + @PutMapping("/update") + public R update(@RequestBody StationEvaluation stationEvaluation) { + stationEvaluationService.updateById(stationEvaluation); + return R.success("修改成功"); + } + + + /** + * 删除 + */ + @PostMapping("/remove/{id}") + public R remove(@PathVariable Long id) { + stationEvaluationService.removeStationEvaluation(id); + return R.success("删除成功"); + } + + +} + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.java new file mode 100644 index 0000000..0cf7326 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.Estimate; + +/** + *

+ * 总体评分附表 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-23 + */ +public interface EstimateMapper extends BaseMapper { + +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.xml new file mode 100644 index 0000000..a30bb0e --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.java new file mode 100644 index 0000000..c2195c7 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.EvaluationDetails; + +/** + *

+ * 得分事项简述 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +public interface EvaluationDetailsMapper extends BaseMapper { + +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.xml new file mode 100644 index 0000000..a6cd7d5 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.java new file mode 100644 index 0000000..8b57fc8 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.EvaluationDetailsOption; + +/** + *

+ * 选择表 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +public interface EvaluationDetailsOptionMapper extends BaseMapper { + +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.xml new file mode 100644 index 0000000..e7402ad --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/FileStationMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/FileStationMapper.java new file mode 100644 index 0000000..bf07a45 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/FileStationMapper.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.FileStation; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:12 + */ +public interface FileStationMapper extends BaseMapper { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/ImageStationMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/ImageStationMapper.java new file mode 100644 index 0000000..a4d0872 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/ImageStationMapper.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.ImageStation; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:12 + */ +public interface ImageStationMapper extends BaseMapper { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.java new file mode 100644 index 0000000..90f6eea --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.StationEvaluation; + +/** + *

+ * 电站评分表 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +public interface StationEvaluationMapper extends BaseMapper { + +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.xml new file mode 100644 index 0000000..beaffa0 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/VideoStationMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/VideoStationMapper.java new file mode 100644 index 0000000..7e8d6e7 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/VideoStationMapper.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.station.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.operational.station.entity.VideoStation; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:12 + */ +public interface VideoStationMapper extends BaseMapper { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EstimateService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EstimateService.java new file mode 100644 index 0000000..f11a28f --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EstimateService.java @@ -0,0 +1,25 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.Estimate; + +import java.util.Map; + +/** + *

+ * 总体评分附表 服务类 + *

+ * + * @author dfy + * @since 2023-08-23 + */ +public interface EstimateService extends IService { + + + /** + * 查询列表数据 + * @return + */ + Map selectEstimateList(); + +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsOptionService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsOptionService.java new file mode 100644 index 0000000..0a5e238 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsOptionService.java @@ -0,0 +1,25 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.EvaluationDetailsOption; + +import java.util.List; + +/** + *

+ * 选择表 服务类 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +public interface EvaluationDetailsOptionService extends IService { + + + /** + * 根据描述id获取选择信息 + * @param evaluationDetailsId + * @return + */ + List selectEvaluationDetailsOptionByStationEvaluationId(Long evaluationDetailsId); +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsService.java new file mode 100644 index 0000000..052d921 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsService.java @@ -0,0 +1,48 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.EvaluationDetails; +import com.hnac.hzims.operational.station.vo.EvaluationDetailsVo; + +import java.util.List; + +/** + *

+ * 得分事项简述 服务类 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +public interface EvaluationDetailsService extends IService { + + + + /** + * 根据电站评分表id 获取描述信息 + * @param stationEvaluationId + * @return + */ + List selectEvaluationDetailsOptionListByStationEvaluationId(Long stationEvaluationId); + + + /** + * 新增 + * @param evaluationDetailsVo + */ + void saveEvaluationDetail(EvaluationDetailsVo evaluationDetailsVo); + + + /** + * 修改 + * @param evaluationDetailsVo + */ + void updateEvaluationDetail(EvaluationDetailsVo evaluationDetailsVo); + + + /** + * 删除 + * @param id + */ + void removeEvaluationDetail(Long id); +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/FileStationService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/FileStationService.java new file mode 100644 index 0000000..11f0164 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/FileStationService.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.FileStation; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:14 + */ +public interface FileStationService extends IService { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationService.java index 3e6ef34..95fa28e 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationService.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationService.java @@ -25,9 +25,11 @@ public interface IStationService extends BaseService { /** * 新建站点 - * @param req 站点信息 + * + * @param req 站点信息 + * @param update */ - void buildStation(StationEntity req); + void buildStation(StationEntity req, String updateOrAdd); /** * 实例化实时画面项目 @@ -137,4 +139,12 @@ public interface IStationService extends BaseService { * @return */ String selectStationById(String station); + + + /** + * 查看详情 + * @param id + * @return + */ + StationEntity getByStationId(Long id); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/ImageStationService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/ImageStationService.java new file mode 100644 index 0000000..0b02e15 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/ImageStationService.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.ImageStation; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:14 + */ +public interface ImageStationService extends IService { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/StationEvaluationService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/StationEvaluationService.java new file mode 100644 index 0000000..281f545 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/StationEvaluationService.java @@ -0,0 +1,37 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.StationEvaluation; +import com.hnac.hzims.operational.station.vo.OneStationEvaluationVo; + +import java.util.List; + +/** + *

+ * 电站评分表 服务类 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +public interface StationEvaluationService extends IService { + + /** + * 列表展示 + * @return + */ + List selectList(); + + /** + * 根据父级Id 查询数据 + * @param parentId + * @return + */ + List selectStationEvaluationListByParentId(Long parentId); + + /** + * 删除 + * @param id + */ + void removeStationEvaluation(Long id); +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/VideoStationService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/VideoStationService.java new file mode 100644 index 0000000..6458766 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/VideoStationService.java @@ -0,0 +1,13 @@ +package com.hnac.hzims.operational.station.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.operational.station.entity.VideoStation; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:14 + */ +public interface VideoStationService extends IService { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EstimateServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EstimateServiceImpl.java new file mode 100644 index 0000000..cb9f0f0 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EstimateServiceImpl.java @@ -0,0 +1,213 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.Estimate; +import com.hnac.hzims.operational.station.entity.EvaluationDetails; +import com.hnac.hzims.operational.station.entity.EvaluationDetailsOption; +import com.hnac.hzims.operational.station.entity.StationEvaluation; +import com.hnac.hzims.operational.station.mapper.EstimateMapper; +import com.hnac.hzims.operational.station.service.EstimateService; +import com.hnac.hzims.operational.station.service.EvaluationDetailsOptionService; +import com.hnac.hzims.operational.station.service.EvaluationDetailsService; +import com.hnac.hzims.operational.station.service.StationEvaluationService; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + *

+ * 总体评分附表 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-23 + */ +@Service +public class EstimateServiceImpl extends ServiceImpl implements EstimateService { + + + @Autowired + private StationEvaluationService stationEvaluationService; + + + @Autowired + private EvaluationDetailsService evaluationDetailsService; + + + @Autowired + private EvaluationDetailsOptionService evaluationDetailsOptionService; + + private static Map cacheMap = new HashMap<>(); + + /** + * 查询列表数据 + * + * @return + */ + @Override + public Map selectEstimateList() { + Map result = new HashMap<>(); + //获取所有数据 + List estimates = baseMapper.selectList(null); + result.put("estimate", estimates); + int num = 0; + for (Estimate estimate : estimates) { + Boolean checked = estimate.getChecked(); + if (checked) { + num++; + } + } + //如果num==0 不会执行下面的代码 + if (num == 0) { + return result; + } + + + //生态环境 + int ecologicalNum = 0; + //社会 + int societyNum = 0; + //管理 + int administrationNum = 0; + //经济 + int economicsNum = 0; + //水文形式 + int hydrologicalNum = 0; + cacheMap.put("hydrologicalNum", 0); + + List stationEvaluations = stationEvaluationService.selectStationEvaluationListByParentId(0L); + for (StationEvaluation stationEvaluation : stationEvaluations) { + + String evaluationName = stationEvaluation.getEvaluationName(); + switch (evaluationName) { + case "生态环境": + ecologicalNum = getStationEvaluationCount(stationEvaluation, hydrologicalNum); + break; + case "社会": + societyNum = getStationEvaluationCount(stationEvaluation, null); + break; + case "管理": + administrationNum = getStationEvaluationCount(stationEvaluation, null); + break; + case "经济": + economicsNum = getStationEvaluationCount(stationEvaluation, null); + break; + default: + System.err.println("输入错误"); + break; + } + } + + result.put("ecologicalNum", ecologicalNum); + result.put("societyNum", societyNum); + result.put("administrationNum", administrationNum); + result.put("economicsNum", economicsNum); + + + //如果num == estimates.size() 就是绿色小水电 + hydrologicalNum = cacheMap.get("hydrologicalNum"); + //总数 + int count = ecologicalNum + societyNum + administrationNum + economicsNum; + result.put("count", count); + + if (count >= 85 && hydrologicalNum >= 12) { + result.put("smallHydropower", true); + } else { + result.put("smallHydropower", false); + } + return result; + } + + + /** + * 统计 + * + * @param stationEvaluation + * @param hydrologicalNum + * @return + */ + private int getStationEvaluationCount(StationEvaluation stationEvaluation, Integer hydrologicalNum) { + int count = 0; + List newStationEvaluations = new ArrayList<>(); + List stationEvaluations = stationEvaluationService.selectStationEvaluationListByParentId(stationEvaluation.getId()); + for (StationEvaluation evaluation : stationEvaluations) { + List selectedStationEvaluationListByParentId = stationEvaluationService.selectStationEvaluationListByParentId(evaluation.getId()); + newStationEvaluations.addAll(selectedStationEvaluationListByParentId); + } + + + List collect = newStationEvaluations.stream().map(StationEvaluation::getId).collect(Collectors.toList()); + + QueryWrapper detailsQueryWrapper = new QueryWrapper<>(); + detailsQueryWrapper.lambda().in(EvaluationDetails::getStationEvaluationId, collect); + List evaluationDetailsList = evaluationDetailsService.list(detailsQueryWrapper); + + for (EvaluationDetails evaluationDetails : evaluationDetailsList) { + if (evaluationDetails.getChecked() != null && evaluationDetails.getChecked()) { + count += evaluationDetails.getGrade(); + } + + QueryWrapper evaluationDetailsOptionQueryWrapper = new QueryWrapper<>(); + evaluationDetailsOptionQueryWrapper.lambda().eq(EvaluationDetailsOption::getEvaluationDetailsId + , evaluationDetails.getId()); + List evaluationDetailsOptions = + evaluationDetailsOptionService.list(evaluationDetailsOptionQueryWrapper); + if (CollectionUtils.isNotEmpty(evaluationDetailsOptions)) { + for (EvaluationDetailsOption evaluationDetailsOption : evaluationDetailsOptions) { + if (evaluationDetailsOption.getOptionChecked()) { + count += evaluationDetailsOption.getOptionGrade(); + } + } + } + } + + + if (hydrologicalNum != null) { + newStationEvaluations.clear(); + stationEvaluations = stationEvaluationService.selectStationEvaluationListByParentId(stationEvaluation.getId()); + List evaluations = stationEvaluations.stream().filter(item -> "水文形势".equals(item.getEvaluationName())).collect(Collectors.toList()); + for (StationEvaluation evaluation : evaluations) { + List selectedStationEvaluationListByParentId = stationEvaluationService.selectStationEvaluationListByParentId(evaluation.getId()); + newStationEvaluations.addAll(selectedStationEvaluationListByParentId); + } + + collect = newStationEvaluations.stream().map(StationEvaluation::getId).collect(Collectors.toList()); + + detailsQueryWrapper = new QueryWrapper<>(); + detailsQueryWrapper.lambda().in(EvaluationDetails::getStationEvaluationId, collect); + evaluationDetailsList = evaluationDetailsService.list(detailsQueryWrapper); + + + for (EvaluationDetails evaluationDetails : evaluationDetailsList) { + if (evaluationDetails.getChecked() != null && evaluationDetails.getChecked()) { + hydrologicalNum = evaluationDetails.getGrade(); + } + + QueryWrapper evaluationDetailsOptionQueryWrapper = new QueryWrapper<>(); + evaluationDetailsOptionQueryWrapper.lambda().eq(EvaluationDetailsOption::getEvaluationDetailsId + , evaluationDetails.getId()); + List evaluationDetailsOptions = + evaluationDetailsOptionService.list(evaluationDetailsOptionQueryWrapper); + if (CollectionUtils.isNotEmpty(evaluationDetailsOptions)) { + for (EvaluationDetailsOption evaluationDetailsOption : evaluationDetailsOptions) { + if (evaluationDetailsOption.getOptionChecked()) { + hydrologicalNum = evaluationDetailsOption.getOptionGrade(); + } + } + } + } + cacheMap.put("hydrologicalNum", hydrologicalNum); + + } + + + return count; + } +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EvaluationDetailsOptionServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EvaluationDetailsOptionServiceImpl.java new file mode 100644 index 0000000..63671cb --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EvaluationDetailsOptionServiceImpl.java @@ -0,0 +1,36 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.EvaluationDetailsOption; +import com.hnac.hzims.operational.station.mapper.EvaluationDetailsOptionMapper; +import com.hnac.hzims.operational.station.service.EvaluationDetailsOptionService; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

+ * 选择表 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@Service +public class EvaluationDetailsOptionServiceImpl extends ServiceImpl implements EvaluationDetailsOptionService { + + + /** + * 根据描述id获取选择信息 + * + * @param evaluationDetailsId + * @return + */ + @Override + public List selectEvaluationDetailsOptionByStationEvaluationId(Long evaluationDetailsId) { + + return new LambdaQueryChainWrapper<>(baseMapper).eq(EvaluationDetailsOption::getEvaluationDetailsId, + evaluationDetailsId).list(); + } +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EvaluationDetailsServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EvaluationDetailsServiceImpl.java new file mode 100644 index 0000000..ad6fb6b --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/EvaluationDetailsServiceImpl.java @@ -0,0 +1,125 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.EvaluationDetails; +import com.hnac.hzims.operational.station.entity.EvaluationDetailsOption; +import com.hnac.hzims.operational.station.mapper.EvaluationDetailsMapper; +import com.hnac.hzims.operational.station.service.EvaluationDetailsOptionService; +import com.hnac.hzims.operational.station.service.EvaluationDetailsService; +import com.hnac.hzims.operational.station.vo.EvaluationDetailsOptionVo; +import com.hnac.hzims.operational.station.vo.EvaluationDetailsVo; +import org.apache.commons.collections4.CollectionUtils; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.stream.Collectors; + +/** + *

+ * 得分事项简述 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@Service +public class EvaluationDetailsServiceImpl extends ServiceImpl implements EvaluationDetailsService { + + + @Autowired + private EvaluationDetailsOptionService evaluationDetailsOptionService; + + @Autowired + private EvaluationDetailsOptionService optionService; + + + /** + * 根据电站评分表id 获取描述信息 + * + * @param stationEvaluationId + * @return + */ + @Override + public List selectEvaluationDetailsOptionListByStationEvaluationId(Long stationEvaluationId) { + return new LambdaQueryChainWrapper<>(baseMapper).eq(EvaluationDetails::getStationEvaluationId, + stationEvaluationId).list(); + } + + /** + * 新增 + * + * @param evaluationDetailsVo + */ + @Override + public void saveEvaluationDetail(EvaluationDetailsVo evaluationDetailsVo) { + //新增描述 + EvaluationDetails evaluationDetails = new EvaluationDetails(); + BeanUtils.copyProperties(evaluationDetailsVo, evaluationDetails); + baseMapper.insert(evaluationDetails); + + List evaluationDetailsOptionVos = evaluationDetailsVo.getEvaluationDetailsOptionVos(); + if (CollectionUtils.isEmpty(evaluationDetailsOptionVos)) { + return; + } + //新增选项 + List detailsOptionList = evaluationDetailsOptionVos.stream().map(item -> { + EvaluationDetailsOption evaluationDetailsOption = new EvaluationDetailsOption(); + BeanUtils.copyProperties(item, evaluationDetailsOption); + return evaluationDetailsOption; + }).collect(Collectors.toList()); + + evaluationDetailsOptionService.saveBatch(detailsOptionList); + } + + /** + * 修改 + * + * @param evaluationDetailsVo + */ + @Override + public void updateEvaluationDetail(EvaluationDetailsVo evaluationDetailsVo) { + //修改描述 + EvaluationDetails evaluationDetails = new EvaluationDetails(); + BeanUtils.copyProperties(evaluationDetailsVo, evaluationDetails); + baseMapper.updateById(evaluationDetails); + + + //先删除选项 + Long id = evaluationDetailsVo.getId(); + evaluationDetailsOptionService.remove( + new LambdaQueryWrapper().eq(EvaluationDetailsOption::getEvaluationDetailsId, id)); + + + List evaluationDetailsOptionVos = evaluationDetailsVo.getEvaluationDetailsOptionVos(); + if (CollectionUtils.isEmpty(evaluationDetailsOptionVos)) { + return; + } + //新增选项 + List detailsOptionList = evaluationDetailsOptionVos.stream().map(item -> { + EvaluationDetailsOption evaluationDetailsOption = new EvaluationDetailsOption(); + BeanUtils.copyProperties(item, evaluationDetailsOption); + return evaluationDetailsOption; + }).collect(Collectors.toList()); + + evaluationDetailsOptionService.saveBatch(detailsOptionList); + } + + /** + * 删除 + * + * @param id + */ + @Override + public void removeEvaluationDetail(Long id) { + //删除描述 + baseMapper.deleteById(id); + //删除选项 + optionService.remove(new LambdaQueryWrapper() + .eq(EvaluationDetailsOption::getEvaluationDetailsId, id)); + + } +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/FIleStationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/FIleStationServiceImpl.java new file mode 100644 index 0000000..720e4a7 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/FIleStationServiceImpl.java @@ -0,0 +1,17 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.FileStation; +import com.hnac.hzims.operational.station.mapper.FileStationMapper; +import com.hnac.hzims.operational.station.service.FileStationService; +import org.springframework.stereotype.Service; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:17 + */ +@Service +public class FIleStationServiceImpl extends ServiceImpl implements FileStationService { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/ImageStationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/ImageStationServiceImpl.java new file mode 100644 index 0000000..35e7269 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/ImageStationServiceImpl.java @@ -0,0 +1,17 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.ImageStation; +import com.hnac.hzims.operational.station.mapper.ImageStationMapper; +import com.hnac.hzims.operational.station.service.ImageStationService; +import org.springframework.stereotype.Service; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:17 + */ +@Service +public class ImageStationServiceImpl extends ServiceImpl implements ImageStationService { +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationEvaluationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationEvaluationServiceImpl.java new file mode 100644 index 0000000..e779108 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationEvaluationServiceImpl.java @@ -0,0 +1,306 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.EvaluationDetails; +import com.hnac.hzims.operational.station.entity.EvaluationDetailsOption; +import com.hnac.hzims.operational.station.entity.StationEvaluation; +import com.hnac.hzims.operational.station.mapper.StationEvaluationMapper; +import com.hnac.hzims.operational.station.service.EvaluationDetailsOptionService; +import com.hnac.hzims.operational.station.service.EvaluationDetailsService; +import com.hnac.hzims.operational.station.service.StationEvaluationService; +import com.hnac.hzims.operational.station.vo.*; +import org.apache.commons.collections4.CollectionUtils; +import org.springblade.core.log.exception.ServiceException; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.stream.Collectors; + +/** + *

+ * 电站评分表 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-16 + */ +@Service +public class StationEvaluationServiceImpl extends ServiceImpl implements StationEvaluationService { + + @Autowired + private EvaluationDetailsService detailsService; + + + @Autowired + private EvaluationDetailsOptionService optionService; + + + /** + * 根据父级Id 查询数据 + * + * @param parentId + * @return + */ + @Override + public List selectStationEvaluationListByParentId(Long parentId) { + return new LambdaQueryChainWrapper<>(baseMapper) + .eq(StationEvaluation::getParentId, parentId).list(); + } + + /** + * 删除 + * + * @param id + */ + @Override + public void removeStationEvaluation(Long id) { + StationEvaluation stationEvaluation = baseMapper.selectById(id); + if (stationEvaluation == null) { + throw new ServiceException("删除的数据不存在"); + } + if (stationEvaluation.getLevel() == 1) { + deleteOneStationEvaluationLevel(stationEvaluation); + } + + + if (stationEvaluation.getLevel() == 2) { + deleteTwoStationEvaluationLevel(stationEvaluation); + } + + if (stationEvaluation.getLevel() == 3) { + deleteThreeStationEvaluationLevel(stationEvaluation); + } + } + /** + * 删除所有跟三级相关联的数据 + * @param stationEvaluation + */ + private void deleteThreeStationEvaluationLevel(StationEvaluation stationEvaluation) { + //先删除三级 + baseMapper.deleteById(stationEvaluation.getId()); + List stationEvaluations = this.selectStationEvaluationListByParentId(stationEvaluation.getId()); + + //删除描述信息 + deleteStationEvaluation(stationEvaluations); + + } + + + /** + * 删除所有跟二级相关联的数据 + * @param stationEvaluation + */ + private void deleteTwoStationEvaluationLevel(StationEvaluation stationEvaluation) { + //先删除一级 + baseMapper.deleteById(stationEvaluation.getId()); + + List stationEvaluations = this.selectStationEvaluationListByParentId(stationEvaluation.getId()); + if (CollectionUtils.isEmpty(stationEvaluations)) { + return; + } + //查询3及的数据删除 + for (StationEvaluation evaluation : stationEvaluations) { + stationEvaluations = this.selectStationEvaluationListByParentId(evaluation.getId()); + List collect = stationEvaluations.stream().map(StationEvaluation::getId).collect(Collectors.toList()); + this.removeByIds(collect); + } + + + if (CollectionUtils.isEmpty(stationEvaluations)) { + return; + } + + //删除描述信息 + deleteStationEvaluation(stationEvaluations); + } + + + /** + * 删除所有跟一级相关联的数据 + */ + private void deleteOneStationEvaluationLevel(StationEvaluation stationEvaluation) { + //先删除一级 + baseMapper.deleteById(stationEvaluation.getId()); + + List stationEvaluations = this.selectStationEvaluationListByParentId(stationEvaluation.getId()); + if (CollectionUtils.isEmpty(stationEvaluations)) { + return; + } + //查询2及的数据删除 + for (StationEvaluation evaluation : stationEvaluations) { + stationEvaluations = this.selectStationEvaluationListByParentId(evaluation.getId()); + List collect = stationEvaluations.stream().map(StationEvaluation::getId).collect(Collectors.toList()); + this.removeByIds(collect); + } + + + if (CollectionUtils.isEmpty(stationEvaluations)) { + return; + } + //查询3级的数据删除 + for (StationEvaluation evaluation : stationEvaluations) { + stationEvaluations = this.selectStationEvaluationListByParentId(evaluation.getId()); + List collect = stationEvaluations.stream().map(StationEvaluation::getId).collect(Collectors.toList()); + this.removeByIds(collect); + } + + if (CollectionUtils.isEmpty(stationEvaluations)) { + return; + } + //删除描述信息 + deleteStationEvaluation(stationEvaluations); + + } + + private void deleteStationEvaluation(List stationEvaluations) { + List evaluationDetailsList = null; + //查看描述信息删除 + for (StationEvaluation evaluation : stationEvaluations) { + evaluationDetailsList = detailsService.list( + new LambdaQueryWrapper().eq(EvaluationDetails::getStationEvaluationId, + evaluation.getId())); + List collect = evaluationDetailsList.stream().map(EvaluationDetails::getId).collect(Collectors.toList()); + detailsService.removeByIds(collect); + } + + //查看描述选项信息删除 + if (CollectionUtils.isEmpty(evaluationDetailsList)) { + return; + } + + for (EvaluationDetails evaluationDetails : evaluationDetailsList) { + List list = optionService.list(new LambdaQueryWrapper().eq(EvaluationDetailsOption::getEvaluationDetailsId, + evaluationDetails.getId())); + List collect = list.stream().map(EvaluationDetailsOption::getId).collect(Collectors.toList()); + optionService.removeByIds(collect); + } + } + + + /** + * 列表展示 + * + * @return + */ + @Override + public List selectList() { + List stationEvaluations = this.selectStationEvaluationListByParentId(0L); + //获取以一级的数据 + List collect = stationEvaluations.stream().map(item -> { + OneStationEvaluationVo oneStationEvaluationVo = getOneStationEvaluationVo(item); + return oneStationEvaluationVo; + }).collect(Collectors.toList()); + return collect; + } + + + /** + * 获取一级数据 + * + * @param item + * @return + */ + private OneStationEvaluationVo getOneStationEvaluationVo(StationEvaluation item) { + OneStationEvaluationVo oneStationEvaluationVo = new OneStationEvaluationVo(); + BeanUtils.copyProperties(item, oneStationEvaluationVo); + //获取二级的数据 + List twoStationEvaluations = + this.selectStationEvaluationListByParentId(item.getId()); + if (CollectionUtils.isNotEmpty(twoStationEvaluations)) { + List twoStationEvaluationVos = getTwoStationEvaluationVos(twoStationEvaluations); + oneStationEvaluationVo.setChildren(twoStationEvaluationVos); + } + return oneStationEvaluationVo; + } + + + /** + * 获取二级数据 + * + * @param twoStationEvaluations + * @return + */ + private List getTwoStationEvaluationVos(List twoStationEvaluations) { + List twoStationEvaluationVos = + twoStationEvaluations.stream().map(item1 -> { + TwoStationEvaluationVo twoStationEvaluationVo = new TwoStationEvaluationVo(); + BeanUtils.copyProperties(item1, twoStationEvaluationVo); + //获取3级数据 + List threeStationEvaluationVoList = getThreeStationEvaluationVos(item1); + if (CollectionUtils.isNotEmpty(threeStationEvaluationVoList)) { + twoStationEvaluationVo.setChildren(threeStationEvaluationVoList); + } + return twoStationEvaluationVo; + }).collect(Collectors.toList()); + return twoStationEvaluationVos; + } + + + /** + * 获取三级数据 + * + * @param item1 + * @return + */ + private List getThreeStationEvaluationVos(StationEvaluation item1) { + List threeStationEvaluations = + this.selectStationEvaluationListByParentId(item1.getId()); + if (CollectionUtils.isEmpty(threeStationEvaluations)) { + return null; + } + List threeStationEvaluationVoList = + threeStationEvaluations.stream().map(item2 -> { + ThreeStationEvaluationVo threeStationEvaluationVo = + new ThreeStationEvaluationVo(); + BeanUtils.copyProperties(item2, threeStationEvaluationVo); + + Long stationEvaluationId = item2.getId(); + //获取描述信息 + List evaluationDetailsVoList = getEvaluationDetailsVos(stationEvaluationId); + if (CollectionUtils.isNotEmpty(evaluationDetailsVoList)) { + threeStationEvaluationVo.setEvaluationDetailsVos(evaluationDetailsVoList); + } + return threeStationEvaluationVo; + }).collect(Collectors.toList()); + return threeStationEvaluationVoList; + } + + + /** + * 获取描述信息及选择信息 + * + * @param stationEvaluationId + * @return + */ + private List getEvaluationDetailsVos(Long stationEvaluationId) { + List details = + detailsService.selectEvaluationDetailsOptionListByStationEvaluationId(stationEvaluationId); + if (CollectionUtils.isEmpty(details)) { + return null; + } + List evaluationDetailsVoList = details.stream().map(item3 -> { + EvaluationDetailsVo evaluationDetailsVo = new EvaluationDetailsVo(); + BeanUtils.copyProperties(item3, evaluationDetailsVo); + //获取选择信息 + Long evaluationDetailsId = item3.getId(); + List detailsOptions = + optionService.selectEvaluationDetailsOptionByStationEvaluationId(evaluationDetailsId); + if (CollectionUtils.isNotEmpty(detailsOptions)) { + List evaluationDetailsOptionVoList = detailsOptions.stream().map(item4 -> { + EvaluationDetailsOptionVo evaluationDetailsOptionVo = new EvaluationDetailsOptionVo(); + BeanUtils.copyProperties(item4, evaluationDetailsOptionVo); + + return evaluationDetailsOptionVo; + }).collect(Collectors.toList()); + + evaluationDetailsVo.setEvaluationDetailsOptionVos(evaluationDetailsOptionVoList); + } + return evaluationDetailsVo; + }).collect(Collectors.toList()); + return evaluationDetailsVoList; + } +} diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java index df67928..f741ce5 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java @@ -8,20 +8,15 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.google.common.collect.Lists; import com.hnac.hzims.common.service.UserAuthDataService; import com.hnac.hzims.fdp.feign.IQuestionClient; -import com.hnac.hzims.hzimsweather.response.air.Station; import com.hnac.hzims.operational.OperationalConstants; import com.hnac.hzims.operational.main.vo.StationCountVo; import com.hnac.hzims.operational.station.StationConstants; import com.hnac.hzims.operational.main.constant.HomePageConstant; import com.hnac.hzims.operational.station.dto.StationPushConfigDTO; -import com.hnac.hzims.operational.station.entity.ControlUsersEntity; -import com.hnac.hzims.operational.station.entity.StationEntity; -import com.hnac.hzims.operational.station.entity.StationPushConfigEntity; +import com.hnac.hzims.operational.station.entity.*; import com.hnac.hzims.operational.station.mapper.ControlUsersMapper; import com.hnac.hzims.operational.station.mapper.StationMapper; -import com.hnac.hzims.operational.station.service.IStationAttributeService; -import com.hnac.hzims.operational.station.service.IStationPushConfigService; -import com.hnac.hzims.operational.station.service.IStationService; +import com.hnac.hzims.operational.station.service.*; import com.hnac.hzims.operational.station.vo.HzimsStationCountVo; import com.hnac.hzims.operational.station.vo.StationAndDeptVo; import com.hnac.hzims.operational.station.vo.StationPushConfigVO; @@ -36,6 +31,7 @@ import com.hnac.hzinfo.sdk.v5.project.ProjectClient; import com.hnac.hzinfo.sdk.v5.project.dto.ProjectDTO; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang.StringUtils; import org.springblade.core.log.exception.ServiceException; import org.springblade.core.log.logger.BladeLogger; @@ -59,8 +55,6 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.util.Assert; import java.util.*; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; import java.util.stream.Collectors; /** @@ -80,8 +74,13 @@ public class StationServiceImpl extends BaseServiceImpllambdaQuery() @@ -105,6 +104,49 @@ public class StationServiceImpl extends BaseServiceImpl().eq(VideoStation::getStationId, + req.getId())); + //图片 + imageStationService.remove(new LambdaQueryWrapper().eq(ImageStation::getStationId, + req.getId())); + //文件 + fileStationService.remove(new LambdaQueryWrapper().eq(FileStation::getStationId, + req.getId())); + } + + + //视频 + List videoStationList = req.getVideoStationList(); + if (CollectionUtils.isNotEmpty(videoStationList)) { + List collect = videoStationList.stream().map(item -> { + item.setStationId(req.getId()); + return item; + }).collect(Collectors.toList()); + videoStationService.saveOrUpdateBatch(collect); + } + //图片 + List imageStationList = req.getImageStationList(); + if (CollectionUtils.isNotEmpty(imageStationList)) { + List collect = imageStationList.stream().map(item -> { + item.setStationId(req.getId()); + return item; + }).collect(Collectors.toList()); + imageStationService.saveOrUpdateBatch(collect); + } + //文件 + List fileStationList = req.getFileStationList(); + if (CollectionUtils.isNotEmpty(fileStationList)) { + List collect = fileStationList.stream().map(item -> { + item.setStationId(req.getId()); + return item; + }).collect(Collectors.toList()); + fileStationService.saveOrUpdateBatch(collect); + } } /** @@ -174,6 +216,34 @@ public class StationServiceImpl extends BaseServiceImpl videoStationList = + videoStationService.list(new LambdaQueryWrapper().eq(VideoStation::getStationId, id)); + if (CollectionUtil.isNotEmpty(videoStationList)) { + List collect = videoStationList.stream().map(VideoStation::getId).collect(Collectors.toList()); + videoStationService.removeByIds(collect); + } + + + //删除文件 + List fileStationList = + fileStationService.list(new LambdaQueryWrapper().eq(FileStation::getStationId, id)); + if (CollectionUtil.isNotEmpty(fileStationList)) { + List collect = fileStationList.stream().map(FileStation::getId).collect(Collectors.toList()); + fileStationService.removeByIds(collect); + } + + //删除图片 + List imageStationList = + imageStationService.list(new LambdaQueryWrapper().eq(ImageStation::getStationId, id)); + if (CollectionUtil.isNotEmpty(imageStationList)) { + List collect = imageStationList.stream().map(ImageStation::getId).collect(Collectors.toList()); + imageStationService.removeByIds(collect); + } + return saveFlag; } @@ -727,4 +797,38 @@ public class StationServiceImpl extends BaseServiceImpl videoStationList = + videoStationService.list(new LambdaQueryWrapper().eq(VideoStation::getStationId, id)); + if (CollectionUtil.isNotEmpty(videoStationList)) { + stationEntity.setVideoStationList(videoStationList); + } + + //获取文件 + List fileStationList = + fileStationService.list(new LambdaQueryWrapper().eq(FileStation::getStationId, id)); + if (CollectionUtil.isNotEmpty(fileStationList)) { + stationEntity.setFileStationList(fileStationList); + } + + //获取图片 + List imageStationList = + imageStationService.list(new LambdaQueryWrapper().eq(ImageStation::getStationId, id)); + if (CollectionUtil.isNotEmpty(imageStationList)) { + stationEntity.setImageStationList(imageStationList); + } + return stationEntity; + } + } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/VideoStationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/VideoStationServiceImpl.java new file mode 100644 index 0000000..8681c90 --- /dev/null +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/VideoStationServiceImpl.java @@ -0,0 +1,17 @@ +package com.hnac.hzims.operational.station.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.operational.station.entity.VideoStation; +import com.hnac.hzims.operational.station.mapper.VideoStationMapper; +import com.hnac.hzims.operational.station.service.VideoStationService; +import org.springframework.stereotype.Service; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/8 16:17 + */ +@Service +public class VideoStationServiceImpl extends ServiceImpl implements VideoStationService { +} diff --git a/hzims-service/operational/src/main/resources/db/2.0.0.sql b/hzims-service/operational/src/main/resources/db/2.0.0.sql new file mode 100644 index 0000000..ed6994c --- /dev/null +++ b/hzims-service/operational/src/main/resources/db/2.0.0.sql @@ -0,0 +1,32 @@ +alter table hzims_station add discharge_facilities varchar(100) null comment '生态流量泄放设施'; +alter table hzims_station add monitoring_mode varchar(100) null comment '监测方式'; +alter table hzims_station add is_power_station tinyint(0) comment '是否绿色小水电示范电站 0 否 1 是'; + +create table video_station( + id bigint primary key auto_increment comment '图片id', + video varchar(300) not null comment '视频地址', + station_id bigint not null comment '站点ID', + create_time datetime default CURRENT_TIMESTAMP, + update_time datetime default current_timestamp on update current_timestamp, + is_deleted tinyint default 0 comment '0 正常 1 删除' +) comment '电站视频'; + + +create table image_station( + id bigint primary key auto_increment comment '图片id', + image varchar(300) not null comment '图片地址', + station_id bigint not null comment '站点ID', + create_time datetime default CURRENT_TIMESTAMP, + update_time datetime default current_timestamp on update current_timestamp, + is_deleted tinyint default 0 comment '0 正常 1 删除' +) comment '电站图片'; + + +create table file_station( + id bigint primary key auto_increment comment '图片id', + file varchar(300) not null comment '文件地址', + station_id bigint not null comment '站点ID', + create_time datetime default CURRENT_TIMESTAMP, + update_time datetime default current_timestamp on update current_timestamp, + is_deleted tinyint default 0 comment '0 正常 1 删除' +) comment '电站文件'; diff --git a/hzims-service/operational/src/main/resources/db/2.0.1.sql b/hzims-service/operational/src/main/resources/db/2.0.1.sql new file mode 100644 index 0000000..cdda729 --- /dev/null +++ b/hzims-service/operational/src/main/resources/db/2.0.1.sql @@ -0,0 +1 @@ +alter table hzims_station add discharge_value varchar(60) comment '核定值'; \ No newline at end of file diff --git a/hzims-service/operational/src/main/resources/db/2.0.2.sql b/hzims-service/operational/src/main/resources/db/2.0.2.sql new file mode 100644 index 0000000..c77de2b --- /dev/null +++ b/hzims-service/operational/src/main/resources/db/2.0.2.sql @@ -0,0 +1,39 @@ +create table station_evaluation +( + id bigint primary key auto_increment comment '编号', + evaluation_name varchar(50) comment '类别', + station_id bigint comment '站点id', + parent_id bigint comment '父级', + level int comment '等级', + minute int comment '分数', + score int comment '得分', + description text comment '描述', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' +) comment '电站评分表'; + + +create table evaluation_details +( + id bigint primary key auto_increment comment '编号', + station_evaluation_id bigint comment '电站评分id', + title varchar(100) comment '选择题目', + checked tinyint(1) comment '是否选中 1 选中 0 不选中', + grade int comment '分数', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' +) comment '得分事项简述'; + +create table evaluation_details_option +( + id bigint primary key auto_increment comment '编号', + option_title varchar(100) comment '题目', + option_checked tinyint(1) comment '是否选中 1 选中 0 不选中', + option_grade int comment '分数', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' +) comment '选择表'; + diff --git a/hzims-service/operational/src/main/resources/db/2.0.3.sql b/hzims-service/operational/src/main/resources/db/2.0.3.sql new file mode 100644 index 0000000..81f45b1 --- /dev/null +++ b/hzims-service/operational/src/main/resources/db/2.0.3.sql @@ -0,0 +1,2 @@ + +alter table evaluation_details_option add evaluation_details_id bigint comment '得分事项简述id'; \ No newline at end of file diff --git a/hzims-service/operational/src/main/resources/db/2.0.4.sql b/hzims-service/operational/src/main/resources/db/2.0.4.sql new file mode 100644 index 0000000..b9d2517 --- /dev/null +++ b/hzims-service/operational/src/main/resources/db/2.0.4.sql @@ -0,0 +1,9 @@ +create table estimate( + id bigint primary key auto_increment, + name varchar(200) comment '基本条件', + checked tinyint(1) comment '0 为选择 1 为选中', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' + +) comment '总体评分附表'; \ No newline at end of file diff --git a/hzims-service/pom.xml b/hzims-service/pom.xml index e61f072..f20d297 100644 --- a/hzims-service/pom.xml +++ b/hzims-service/pom.xml @@ -27,6 +27,7 @@ weather hzims-middle hzims-scheduled + base-info diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/DocumentManagementController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/DocumentManagementController.java new file mode 100644 index 0000000..a7ad8a2 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/DocumentManagementController.java @@ -0,0 +1,77 @@ +package com.hnac.hzims.safeproduct.management.controller; + + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.safeproduct.management.entity.DocumentManagement; +import com.hnac.hzims.safeproduct.management.service.DocumentManagementService; +import com.hnac.hzims.safeproduct.management.service.impl.DocumentManagementServiceImpl; +import com.hnac.hzims.safeproduct.management.vo.DocumentManagementQueryVo; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementResponseVo; +import lombok.RequiredArgsConstructor; +import org.springblade.core.tool.api.R; +import org.springframework.web.bind.annotation.*; + +/** + *

+ * 文档管理 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-11 + */ +@RequiredArgsConstructor +@RestController +@RequestMapping("/management/document-management") +public class DocumentManagementController { + + private final DocumentManagementService documentManagementService; + + + /** + * 分页查询文档管理 + */ + @GetMapping("/listPage/{page}/{size}") + public R listPage(@PathVariable Long page, + @PathVariable Long size, + DocumentManagementQueryVo documentManagementQueryVo) { + Page pageParam = new Page<>(page, size); + IPage resultParams = + documentManagementService.selectPage(pageParam, + documentManagementQueryVo); + return R.data(resultParams); + } + + + + /** + * 新增指标项管理 + */ + @PostMapping("/save") + public R save(@RequestBody DocumentManagement documentManagement) { + documentManagementService.save(documentManagement); + return R.success("新增文件管理成功"); + } + + + /** + * 更新指标项管理 + */ + @PutMapping("/update") + public R update(@RequestBody DocumentManagement documentManagement) { + documentManagementService.updateById(documentManagement); + return R.success("修改文件管理成功"); + } + + + /** + * 删除指标项管理 + */ + @DeleteMapping("/remove/{id}") + public R remove(@PathVariable Long id) { + documentManagementService.removeById(id); + return R.success("删除文件管理成功"); + } + +} + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/IndicatorManagementController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/IndicatorManagementController.java new file mode 100644 index 0000000..6a7dc03 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/IndicatorManagementController.java @@ -0,0 +1,91 @@ +package com.hnac.hzims.safeproduct.management.controller; + + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.safeproduct.management.entity.IndicatorManagement; +import com.hnac.hzims.safeproduct.management.entity.TargetManagement; +import com.hnac.hzims.safeproduct.management.service.IndicatorManagementService; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementQueryVo; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementResponseVo; +import groovy.util.logging.Slf4j; +import lombok.RequiredArgsConstructor; +import org.springblade.core.tool.api.R; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; + +/** + *

+ * 指标项管理 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Slf4j +@RequiredArgsConstructor +@RestController +@RequestMapping("/management/indicator-management") +public class IndicatorManagementController { + + + private final IndicatorManagementService indicatorManagementService; + + + /** + * 分页查询列表 + */ + @GetMapping("/listPage/{page}/{size}") + public R listPage(@PathVariable Long page, + @PathVariable Long size, + IndicatorManagementQueryVo indicatorManagementQueryVo) { + Page pageSize = new Page<>(page, size); + IPage responseVoIPage = indicatorManagementService.selectPage(pageSize, indicatorManagementQueryVo); + return R.data(responseVoIPage); + } + + + /** + * 新增指标管理 + */ + @PostMapping("/save") + public R save(@RequestBody IndicatorManagementResponseVo indicatorManagementResponseVo) { + indicatorManagementService.saveIndicatorManagement(indicatorManagementResponseVo); + return R.success("新增指标项管理成功"); + } + + + /** + * 修改指标管理 + */ + @PutMapping("/update") + public R update(@RequestBody IndicatorManagementResponseVo indicatorManagementResponseVo) { + indicatorManagementService.saveIndicatorManagement(indicatorManagementResponseVo); + return R.success("修改增指标项管理成功"); + } + + + /** + * 删除指标管理 + */ + @DeleteMapping("/remove/{id}") + public R remove(@PathVariable Long id) { + indicatorManagementService.removeIndicatorManagementById(id); + return R.success("删除指标项管理成功"); + } + + + /** + * 导出 + * + * @param response + */ + @GetMapping("/export") + public void export(HttpServletResponse response) { + indicatorManagementService.export(response); + } + + +} + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/RatingScaleController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/RatingScaleController.java new file mode 100644 index 0000000..c6ffaa3 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/RatingScaleController.java @@ -0,0 +1,49 @@ +package com.hnac.hzims.safeproduct.management.controller; + + +import com.hnac.hzims.safeproduct.management.entity.RatingScale; +import com.hnac.hzims.safeproduct.management.service.RatingScaleService; +import com.hnac.hzims.safeproduct.management.vo.RatingScaleVo; +import org.springblade.core.tool.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +/** + *

+ * 平分表 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@RestController +@RequestMapping("/management/rating-scale") +public class RatingScaleController { + + + @Autowired + private RatingScaleService ratingScaleService; + + + /** + * 评分 + */ + @PostMapping("/saveScore") + public R saveScore(@RequestBody RatingScaleVo ratingScaleVo) { + ratingScaleService.saveScore(ratingScaleVo); + return R.success("评价成功"); + } + + + /** + * 查看评价 + */ + @GetMapping("/getReviews/{indicatorManagementId}") + public R getReviews(@PathVariable Long indicatorManagementId){ + RatingScale ratingScale = ratingScaleService.selectReviews(indicatorManagementId); + return R.data(ratingScale); + } + + +} + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/TargetManagementController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/TargetManagementController.java new file mode 100644 index 0000000..3671785 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/controller/TargetManagementController.java @@ -0,0 +1,78 @@ +package com.hnac.hzims.safeproduct.management.controller; + + +import com.hnac.hzims.safeproduct.management.entity.TargetManagement; +import com.hnac.hzims.safeproduct.management.service.TargetManagementService; +import groovy.util.logging.Slf4j; +import lombok.RequiredArgsConstructor; +import org.springblade.core.tool.api.R; +import org.springframework.web.bind.annotation.*; + +import javax.ws.rs.GET; +import javax.xml.bind.util.JAXBSource; +import java.util.List; + +/** + *

+ * 指标管理 前端控制器 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Slf4j +@RequiredArgsConstructor +@RestController +@RequestMapping("/management/target-management") +public class TargetManagementController { + + + private final TargetManagementService targetManagementService; + + /** + * 查询列表 + */ + @GetMapping("/listTree") + public R listPage() { + List TargetManagement = targetManagementService.listPage(); + return R.data(TargetManagement); + } + + + /** + * 新增指标管理 + */ + @PostMapping("/save") + public R save(@RequestBody TargetManagement targetManagement){ + boolean save = targetManagementService.save(targetManagement); + if (!save) { + return R.fail("新增指标管理失败"); + } + return R.data(targetManagement,"新增指标管理成功"); + } + + + /** + * 修改指标管理 + */ + @PutMapping("/update") + public R update(@RequestBody TargetManagement targetManagement){ + boolean update = targetManagementService.updateById(targetManagement); + if (!update) { + return R.fail("修改指标管理失败"); + } + return R.data(targetManagement,"修改指标管理成功"); + } + + + /** + * 删除指标管理 + */ + @DeleteMapping("/remove/{id}") + public R remove(@PathVariable Long id){ + TargetManagement targetManagement = targetManagementService.getById(id); + targetManagementService.removeTargetManagementById(id); + return R.data(targetManagement,"删除指标管理成功"); + } +} + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/CustomMerge.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/CustomMerge.java new file mode 100644 index 0000000..bc9d88a --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/CustomMerge.java @@ -0,0 +1,22 @@ +package com.hnac.hzims.safeproduct.management.excel; + +import java.lang.annotation.*; + +/** + * 自定义注解,用于判断是否需要合并以及合并的主键 + */ +@Target({ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +@Inherited +public @interface CustomMerge { + + /** + * 是否需要合并单元格 + */ + boolean needMerge() default false; + + /** + * 是否是主键,即该字段相同的行合并 + */ + boolean isPk() default false; +} \ No newline at end of file diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/CustomMergeStrategy.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/CustomMergeStrategy.java new file mode 100644 index 0000000..d47a30d --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/CustomMergeStrategy.java @@ -0,0 +1,167 @@ +package com.hnac.hzims.safeproduct.management.excel; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/14 14:55 + */ + +import com.alibaba.excel.annotation.ExcelProperty; +import com.alibaba.excel.write.handler.RowWriteHandler; +import com.alibaba.excel.write.metadata.holder.WriteSheetHolder; +import com.alibaba.excel.write.metadata.holder.WriteTableHolder; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.Row; +import org.apache.poi.ss.usermodel.Sheet; +import org.apache.poi.ss.util.CellRangeAddress; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.stereotype.Component; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; + +/** + * 自定义单元格合并策略 + */ +public class CustomMergeStrategy implements RowWriteHandler { + /** + * 主键下标 + */ + private Integer pkIndex; + + /** + * 需要合并的列的下标集合 + */ + private List needMergeColumnIndex = new ArrayList<>(); + + /** + * DTO数据类型 + */ + private Class elementType; + + public CustomMergeStrategy(Class elementType) { + this.elementType = elementType; + } + + /** + * Called before create the row + * + * @param writeSheetHolder + * @param writeTableHolder Nullable.It is null without using table writes. + * @param rowIndex + * @param relativeRowIndex Nullable.It is null in the case of fill data. + * @param isHead Nullable.It is null in the case of fill data. + */ + @Override + public void beforeRowCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, Integer rowIndex, Integer relativeRowIndex, Boolean isHead) { + + } + + /** + * Called after the row is created + * + * @param writeSheetHolder + * @param writeTableHolder Nullable.It is null without using table writes. + * @param row + * @param relativeRowIndex Nullable.It is null in the case of fill data. + * @param isHead Nullable.It is null in the case of fill data. + */ + @Override + public void afterRowCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, Row row, Integer relativeRowIndex, Boolean isHead) { + + } + + @Override + public void afterRowDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, Row row, Integer relativeRowIndex, Boolean isHead) { + // 如果是标题,则直接返回 + if (isHead) { + return; + } + + // 获取当前sheet + Sheet sheet = writeSheetHolder.getSheet(); + + // 获取标题行 + Row titleRow = sheet.getRow(0); + + if (null == pkIndex) { + this.lazyInit(writeSheetHolder); + } + + // 判断是否需要和上一行进行合并 + // 不能和标题合并,只能数据行之间合并 + if (row.getRowNum() <= 1) { + return; + } + // 获取上一行数据 + Row lastRow = sheet.getRow(row.getRowNum() - 1); + // 将本行和上一行是同一类型的数据(通过主键字段进行判断),则需要合并 + if (lastRow.getCell(pkIndex).getStringCellValue().equalsIgnoreCase(row.getCell(pkIndex).getStringCellValue())) { + for (Integer needMerIndex : needMergeColumnIndex) { + CellRangeAddress cellRangeAddress = new CellRangeAddress(row.getRowNum() - 1, row.getRowNum(), + needMerIndex, needMerIndex); + sheet.addMergedRegionUnsafe(cellRangeAddress); + } + } + } + + /** + * 初始化主键下标和需要合并字段的下标 + */ + private void lazyInit(WriteSheetHolder writeSheetHolder) { + + // 获取当前sheet + Sheet sheet = writeSheetHolder.getSheet(); + + // 获取标题行 + Row titleRow = sheet.getRow(0); + // 获取DTO的类型 + Class eleType = this.elementType; + + // 获取DTO所有的属性 + Field[] fields = eleType.getDeclaredFields(); + + // 遍历所有的字段,因为是基于DTO的字段来构建excel,所以字段数 >= excel的列数 + for (Field theField : fields) { + // 获取@ExcelProperty注解,用于获取该字段对应在excel中的列的下标 + ExcelProperty easyExcelAnno = theField.getAnnotation(ExcelProperty.class); + // 为空,则表示该字段不需要导入到excel,直接处理下一个字段 + if (null == easyExcelAnno) { + continue; + } + // 获取自定义的注解,用于合并单元格 + CustomMerge customMerge = theField.getAnnotation(CustomMerge.class); + + // 没有@CustomMerge注解的默认不合并 + if (null == customMerge) { + continue; + } + + for (int index = 0; index < fields.length; index++) { + Cell theCell = titleRow.getCell(index); + // 当配置为不需要导出时,返回的为null,这里作一下判断,防止NPE + if (null == theCell) { + continue; + } + // 将字段和excel的表头匹配上 + if (easyExcelAnno.value()[0].equalsIgnoreCase(((Cell) theCell).getStringCellValue())) { + if (customMerge.isPk()) { + pkIndex = index; + } + + if (customMerge.needMerge()) { + needMergeColumnIndex.add(index); + } + } + } + } + + // 没有指定主键,则异常 + if (null == this.pkIndex) { + throw new IllegalStateException("使用@CustomMerge注解必须指定主键"); + } + + } +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/ManagementVo.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/ManagementVo.java new file mode 100644 index 0000000..b33f65d --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/excel/ManagementVo.java @@ -0,0 +1,67 @@ +package com.hnac.hzims.safeproduct.management.excel; + +import com.alibaba.excel.annotation.ExcelProperty; +import com.alibaba.excel.annotation.write.style.ColumnWidth; +import com.alibaba.excel.annotation.write.style.ContentRowHeight; +import com.alibaba.excel.annotation.write.style.HeadRowHeight; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/14 10:34 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +// @ContentRowHeight(90) +@HeadRowHeight(40) +public class ManagementVo { + + /** + * 名称 + */ + @ColumnWidth(20) + @ExcelProperty(value = "二级项目", index = 0) + private String name; + + /** + * 项目名称 + */ + @ColumnWidth(80) + @ExcelProperty(value = "三级项目", index = 1) + private String productName; + + /** + * 标准分值 + */ + @ColumnWidth(14) + @ExcelProperty(value = "标准分值", index = 2) + private String standardScore; + + /** + * 评审方法及评分标准 + */ + @ColumnWidth(80) + @ExcelProperty(value = "评审方法及评分标准", index = 3) + private String evaluationMethod; + + + /** + * 评审描述 + */ + @ColumnWidth(80) + @ExcelProperty(value = "评审描述", index = 4) + private String reviewDescription; + + + /** + * 得分 + */ + @ColumnWidth(14) + @ExcelProperty(value = "得分", index = 5) + private String goal; +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/handler/CustomMergeStrategyHandler.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/handler/CustomMergeStrategyHandler.java new file mode 100644 index 0000000..0b75661 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/handler/CustomMergeStrategyHandler.java @@ -0,0 +1,107 @@ +package com.hnac.hzims.safeproduct.management.handler; + +import cn.hutool.core.collection.CollUtil; +import com.alibaba.excel.metadata.Head; +import com.alibaba.excel.write.merge.AbstractMergeStrategy; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.Sheet; +import org.apache.poi.ss.util.CellRangeAddress; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.atomic.AtomicInteger; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/15 8:49 + */ +public class CustomMergeStrategyHandler extends AbstractMergeStrategy { + + /** + * 分组,每几行合并一次 + */ + private List> mergeColDataGroupCountList; + + /** + * 目标合并列index + */ + private List targetColumnIndex; + /** + * 需要开始合并单元格的首行index + */ + private Integer rowIndex; + + /** + * mergeColDataList为待合并目标列的值 + */ + public CustomMergeStrategyHandler(List> mergeColDataList, List targetColumnIndex) { + this.mergeColDataGroupCountList = getGroupCountList(mergeColDataList); + this.targetColumnIndex = targetColumnIndex; + } + + + @Override + protected void merge(Sheet sheet, Cell cell, Head head, Integer relativeRowIndex) { + + if (null == rowIndex) { + rowIndex = cell.getRowIndex(); + } + + // 仅从首行以及目标列的单元格开始合并,忽略其他 + if (cell.getRowIndex() == rowIndex && targetColumnIndex.contains(cell.getColumnIndex())) { + //找到对应的需要合并的列 + AtomicInteger i = new AtomicInteger(0); + Optional first = targetColumnIndex.stream().filter(col -> { + i.getAndIncrement(); + return col == cell.getColumnIndex(); + }).findFirst(); + mergeGroupColumn(sheet, first.get()); + } + } + + private void mergeGroupColumn(Sheet sheet, Integer index) { + int rowCount = rowIndex; + for (Integer count : mergeColDataGroupCountList.get(index)) { + if (count == 1) { + rowCount += count; + continue; + } + // 合并单元格 + CellRangeAddress cellRangeAddress = new CellRangeAddress(rowCount, rowCount + count - 1, + targetColumnIndex.get(index), targetColumnIndex.get(index)); + sheet.addMergedRegionUnsafe(cellRangeAddress); + rowCount += count; + } + } + + /** + * 该方法将目标列根据值是否相同连续可合并,存储可合并的行数 + */ + private List> getGroupCountList(List> exportDataList) { + if (CollUtil.isEmpty(exportDataList)) { + return new ArrayList<>(); + } + List> groupCountListList = new ArrayList<>(); + exportDataList.forEach(dataList -> { + List groupCountList = new ArrayList<>(); + int count = 1; + for (int i = 1; i < dataList.size(); i++) { + if (dataList.get(i).equals(dataList.get(i - 1))) { + count++; + } else { + groupCountList.add(count); + count = 1; + } + } + // 处理完最后一条后 + groupCountList.add(count); + groupCountListList.add(groupCountList); + }); + return groupCountListList; + } +} + + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/handler/ManagementSheetWriteHandler.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/handler/ManagementSheetWriteHandler.java new file mode 100644 index 0000000..224d999 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/handler/ManagementSheetWriteHandler.java @@ -0,0 +1,147 @@ +package com.hnac.hzims.safeproduct.management.handler; + +import com.alibaba.excel.write.handler.SheetWriteHandler; +import com.alibaba.excel.write.metadata.holder.WriteSheetHolder; +import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder; +import com.hnac.hzims.safeproduct.management.excel.ManagementVo; +import lombok.AllArgsConstructor; +import lombok.Data; +import org.apache.poi.ss.usermodel.*; +import org.apache.poi.ss.util.CellRangeAddress; + +import java.util.List; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/8/14 11:05 + */ +@Data +@AllArgsConstructor +public class ManagementSheetWriteHandler implements SheetWriteHandler { + + private String name; + + + private Integer count; + + + private List data; + + + /** + * Called before create the sheet + * + * @param writeWorkbookHolder + * @param writeSheetHolder + */ + @Override + public void beforeSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) { + + } + + /** + * Called after the sheet is created + * + * @param writeWorkbookHolder + * @param writeSheetHolder + */ + @Override + public void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) { + Workbook workbook = writeWorkbookHolder.getWorkbook(); + CellStyle headerStyle = createHeadCellStyle(workbook); + + Sheet sheet = workbook.getSheetAt(count); + sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 5)); + + sheet.addMergedRegion(new CellRangeAddress(data.size() + 1 , data.size() +1, 0, 1)); + sheet.addMergedRegion(new CellRangeAddress(data.size() + 1 , data.size() +1, 3, 4)); + //sheet.addMergedRegion(new CellRangeAddress(0, data.size() - 1, 1, 2)); + + + Row row1 = sheet.createRow(0); + row1.setHeightInPoints((short) 35); + Cell row1Cell = row1.createCell(0); + row1Cell.setCellValue(name); + row1Cell.setCellStyle(headerStyle); + + } + + + /** + * 创建表头样式 + * + * @param wb + * @return + */ + private static CellStyle createHeadCellStyle(Workbook wb) { + CellStyle cellStyle = wb.createCellStyle(); + cellStyle.setWrapText(true);// 设置自动换行 + cellStyle.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());//背景颜色 + cellStyle.setAlignment(HorizontalAlignment.CENTER); //水平居中 + cellStyle.setVerticalAlignment(VerticalAlignment.CENTER); //垂直对齐 + cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); + cellStyle.setBottomBorderColor(IndexedColors.BLACK.index); + cellStyle.setBorderBottom(BorderStyle.THIN); //下边框 + cellStyle.setBorderLeft(BorderStyle.THIN); //左边框 + cellStyle.setBorderRight(BorderStyle.THIN); //右边框 + cellStyle.setBorderTop(BorderStyle.THIN); //上边框 + + Font headerFont = wb.createFont(); // 创建字体样式 + headerFont.setBold(true); //字体加粗 + headerFont.setFontName("黑体"); // 设置字体类型 + headerFont.setFontHeightInPoints((short) 12); // 设置字体大小 + cellStyle.setFont(headerFont); // 为标题样式设置字体样式 + + return cellStyle; + } + + + /** + * 创建内容样式 + * + * @param wb + * @return + */ + private static CellStyle createContentCellStyle(Workbook wb) { + CellStyle cellStyle = wb.createCellStyle(); + cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);// 垂直居中 + cellStyle.setAlignment(HorizontalAlignment.CENTER);// 水平居中 + cellStyle.setWrapText(true);// 设置自动换行 + cellStyle.setBorderBottom(BorderStyle.THIN); //下边框 + cellStyle.setBorderLeft(BorderStyle.THIN); //左边框 + cellStyle.setBorderRight(BorderStyle.THIN); //右边框 + cellStyle.setBorderTop(BorderStyle.THIN); //上边框 + + // 生成12号字体 + Font font = wb.createFont(); + font.setColor((short) 8); + font.setFontHeightInPoints((short) 12); + cellStyle.setFont(font); + return cellStyle; + } + + + /** + * 创建标题样式 + * + * @param wb + * @return + */ + private static CellStyle createTitleCellStyle(Workbook wb) { + CellStyle cellStyle = wb.createCellStyle(); + cellStyle.setAlignment(HorizontalAlignment.CENTER);//水平居中 + cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);//垂直对齐 + cellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); + cellStyle.setFillForegroundColor(IndexedColors.GREY_40_PERCENT.getIndex());//背景颜色 + + Font headerFont1 = wb.createFont(); // 创建字体样式 + headerFont1.setBold(true); //字体加粗 + headerFont1.setFontName("黑体"); // 设置字体类型 + headerFont1.setFontHeightInPoints((short) 15); // 设置字体大小 + cellStyle.setFont(headerFont1); // 为标题样式设置字体样式 + + return cellStyle; + } +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/DocumentManagementMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/DocumentManagementMapper.java new file mode 100644 index 0000000..6d93dba --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/DocumentManagementMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.safeproduct.management.mapper; + +import com.hnac.hzims.safeproduct.management.entity.DocumentManagement; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 文档管理 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-11 + */ +public interface DocumentManagementMapper extends BaseMapper { + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/DocumentManagementMapper.xml b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/DocumentManagementMapper.xml new file mode 100644 index 0000000..90f69ab --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/DocumentManagementMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/IndicatorManagementMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/IndicatorManagementMapper.java new file mode 100644 index 0000000..0c5d043 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/IndicatorManagementMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.safeproduct.management.mapper; + +import com.hnac.hzims.safeproduct.management.entity.IndicatorManagement; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 指标项管理 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +public interface IndicatorManagementMapper extends BaseMapper { + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/IndicatorManagementMapper.xml b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/IndicatorManagementMapper.xml new file mode 100644 index 0000000..dad0674 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/IndicatorManagementMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/RatingScaleMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/RatingScaleMapper.java new file mode 100644 index 0000000..c394e63 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/RatingScaleMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.safeproduct.management.mapper; + +import com.hnac.hzims.safeproduct.management.entity.RatingScale; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 平分表 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +public interface RatingScaleMapper extends BaseMapper { + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/RatingScaleMapper.xml b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/RatingScaleMapper.xml new file mode 100644 index 0000000..81f9aaf --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/RatingScaleMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/TargetManagementMapper.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/TargetManagementMapper.java new file mode 100644 index 0000000..bff972d --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/TargetManagementMapper.java @@ -0,0 +1,16 @@ +package com.hnac.hzims.safeproduct.management.mapper; + +import com.hnac.hzims.safeproduct.management.entity.TargetManagement; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *

+ * 指标管理 Mapper 接口 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +public interface TargetManagementMapper extends BaseMapper { + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/TargetManagementMapper.xml b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/TargetManagementMapper.xml new file mode 100644 index 0000000..51dbbec --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/mapper/TargetManagementMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/DocumentManagementService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/DocumentManagementService.java new file mode 100644 index 0000000..5fe4ac5 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/DocumentManagementService.java @@ -0,0 +1,28 @@ +package com.hnac.hzims.safeproduct.management.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.safeproduct.management.entity.DocumentManagement; +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.safeproduct.management.vo.DocumentManagementQueryVo; + +/** + *

+ * 文档管理 服务类 + *

+ * + * @author dfy + * @since 2023-08-11 + */ +public interface DocumentManagementService extends IService { + + + /** + * 分页查询文档管理 + * @param pageParam + * @param documentManagementQueryVo + * @return + */ + IPage selectPage(Page pageParam, DocumentManagementQueryVo documentManagementQueryVo); + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/IndicatorManagementService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/IndicatorManagementService.java new file mode 100644 index 0000000..8cb7b95 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/IndicatorManagementService.java @@ -0,0 +1,55 @@ +package com.hnac.hzims.safeproduct.management.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.safeproduct.management.entity.IndicatorManagement; +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementQueryVo; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementResponseVo; + +import javax.servlet.http.HttpServletResponse; + +/** + *

+ * 指标项管理 服务类 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +public interface IndicatorManagementService extends IService { + + /** + * 分页查询列表 + * @param pageSize + * @param indicatorManagementQueryVo + * @return + */ + IPage selectPage(Page pageSize, IndicatorManagementQueryVo indicatorManagementQueryVo); + + /** + * 新增指标项管理 + * @param indicatorManagementResponseVo + */ + void saveIndicatorManagement(IndicatorManagementResponseVo indicatorManagementResponseVo); + + /** + * 修改指标项管理 + * @param indicatorManagementResponseVo + */ + void upadteIndicatorManagement(IndicatorManagementResponseVo indicatorManagementResponseVo); + + + /** + * 删除指标项管理 + */ + void removeIndicatorManagementById(Long id); + + + /** + * 导出 + * @param response + */ + void export(HttpServletResponse response); + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/RatingScaleService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/RatingScaleService.java new file mode 100644 index 0000000..dbef1ea --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/RatingScaleService.java @@ -0,0 +1,29 @@ +package com.hnac.hzims.safeproduct.management.service; + +import com.hnac.hzims.safeproduct.management.entity.RatingScale; +import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.safeproduct.management.vo.RatingScaleVo; + +/** + *

+ * 平分表 服务类 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +public interface RatingScaleService extends IService { + + /** + * 评分 + * @param ratingScaleVo + */ + void saveScore(RatingScaleVo ratingScaleVo); + + /** + * 查看评价 + * @param indicatorManagementId + * @return + */ + RatingScale selectReviews(Long indicatorManagementId); +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/TargetManagementService.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/TargetManagementService.java new file mode 100644 index 0000000..e7166e8 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/TargetManagementService.java @@ -0,0 +1,39 @@ +package com.hnac.hzims.safeproduct.management.service; + +import com.hnac.hzims.safeproduct.management.entity.TargetManagement; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.List; + +/** + *

+ * 指标管理 服务类 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +public interface TargetManagementService extends IService { + + + /** + * 指标管理树形结构 + * @return + */ + List listPage(); + + + /** + * 删除指标管理 + * @param id + * @return + */ + void removeTargetManagementById(Long id); + + /** + * 查询一级的数据 + * @return + */ + List listByParentId(Long parentId); + +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/DocumentManagementServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/DocumentManagementServiceImpl.java new file mode 100644 index 0000000..f6ddb28 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/DocumentManagementServiceImpl.java @@ -0,0 +1,44 @@ +package com.hnac.hzims.safeproduct.management.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.StringUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.safeproduct.management.entity.DocumentManagement; +import com.hnac.hzims.safeproduct.management.mapper.DocumentManagementMapper; +import com.hnac.hzims.safeproduct.management.service.DocumentManagementService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.safeproduct.management.vo.DocumentManagementQueryVo; +import org.springframework.stereotype.Service; + +/** + *

+ * 文档管理 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-11 + */ +@Service +public class DocumentManagementServiceImpl extends ServiceImpl implements DocumentManagementService { + + /** + * 分页查询文档管理 + * + * @param pageParam + * @param documentManagementQueryVo + * @return + */ + @Override + public IPage selectPage(Page pageParam, DocumentManagementQueryVo documentManagementQueryVo) { + String documentName = documentManagementQueryVo.getDocumentName(); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + if (StringUtils.isNotBlank(documentName)) { + queryWrapper.eq(DocumentManagement::getDocumentName,documentName); + } + queryWrapper.orderByDesc(DocumentManagement::getCreateTime); + IPage documentManagementPage = baseMapper.selectPage(pageParam, queryWrapper); + + return documentManagementPage; + } +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/IndicatorManagementServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/IndicatorManagementServiceImpl.java new file mode 100644 index 0000000..82b97c3 --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/IndicatorManagementServiceImpl.java @@ -0,0 +1,301 @@ +package com.hnac.hzims.safeproduct.management.service.impl; + +import com.alibaba.excel.EasyExcel; +import com.alibaba.excel.ExcelWriter; +import com.alibaba.excel.support.ExcelTypeEnum; +import com.alibaba.excel.write.builder.ExcelWriterBuilder; +import com.alibaba.excel.write.builder.ExcelWriterSheetBuilder; +import com.alibaba.excel.write.merge.LoopMergeStrategy; +import com.alibaba.excel.write.metadata.WriteSheet; +import com.alibaba.excel.write.metadata.style.WriteCellStyle; +import com.alibaba.excel.write.style.HorizontalCellStyleStrategy; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.hnac.hzims.common.logs.utils.StringUtils; +import com.hnac.hzims.safeproduct.management.entity.IndicatorManagement; +import com.hnac.hzims.safeproduct.management.entity.RatingScale; +import com.hnac.hzims.safeproduct.management.entity.TargetManagement; +import com.hnac.hzims.safeproduct.management.handler.CustomMergeStrategyHandler; +import com.hnac.hzims.safeproduct.management.handler.ManagementSheetWriteHandler; +import com.hnac.hzims.safeproduct.management.mapper.IndicatorManagementMapper; +import com.hnac.hzims.safeproduct.management.service.IndicatorManagementService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.safeproduct.management.service.RatingScaleService; +import com.hnac.hzims.safeproduct.management.service.TargetManagementService; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementQueryVo; +import com.hnac.hzims.safeproduct.management.vo.IndicatorManagementResponseVo; +import com.hnac.hzims.safeproduct.management.excel.ManagementVo; +import lombok.SneakyThrows; +import org.apache.commons.lang3.math.NumberUtils; +import org.apache.poi.ss.usermodel.BorderStyle; +import org.apache.poi.ss.usermodel.HorizontalAlignment; +import org.apache.poi.ss.usermodel.VerticalAlignment; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import javax.servlet.http.HttpServletResponse; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + *

+ * 指标项管理 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-10 + */ + +@Service +public class IndicatorManagementServiceImpl extends ServiceImpl implements IndicatorManagementService { + + @Autowired + private TargetManagementService targetManagementService; + + @Autowired + private RatingScaleService ratingScaleService; + + /** + * 分页查询列表 + * + * @param pageSize + * @param indicatorManagementQueryVo + * @return + */ + @Override + public IPage selectPage(Page pageSize, IndicatorManagementQueryVo indicatorManagementQueryVo) { + Long targetManagementId = indicatorManagementQueryVo.getTargetManagementId(); + String productName = indicatorManagementQueryVo.getProductName(); + String startTime = indicatorManagementQueryVo.getStartTime(); + String endTime = indicatorManagementQueryVo.getEndTime(); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + //指标管理id + if (ObjectUtils.isNotEmpty(targetManagementId)) { + queryWrapper.eq(IndicatorManagement::getTargetManagementId, targetManagementId); + } + //项目名称 + if (ObjectUtils.isNotEmpty(productName)) { + queryWrapper.like(IndicatorManagement::getProductName, productName); + } + + //开始时间 + if (StringUtils.isNotEmpty(startTime)) { + queryWrapper.ge(IndicatorManagement::getCreateTime, startTime); + } + + //结束时间 + if (StringUtils.isNotEmpty(endTime)) { + queryWrapper.le(IndicatorManagement::getCreateTime, startTime); + } + + queryWrapper.orderByDesc(IndicatorManagement::getCreateTime); + + IPage managementPage = baseMapper.selectPage(pageSize, queryWrapper); + //封装分页对象 + Page resultPage = new Page<>(managementPage.getCurrent(), + managementPage.getPages()); + List records = managementPage.getRecords(); + + //封装对象属性 + List responseVoList = records.stream().map(item -> { + IndicatorManagementResponseVo indicatorManagementResponseVo = new IndicatorManagementResponseVo(); + BeanUtils.copyProperties(item, indicatorManagementResponseVo); + //查询指标项名称 + TargetManagement targetManagement = targetManagementService.getById(item.getTargetManagementId()); + if (targetManagement != null) { + indicatorManagementResponseVo.setName(targetManagement.getName()); + } + //查询平方表查询 + RatingScale ratingScale = ratingScaleService.getOne(new LambdaQueryWrapper().eq(RatingScale::getIndicatorManagementId, + item.getId())); + if (ratingScale != null) { + indicatorManagementResponseVo.setGoal(ratingScale.getGoal()); + indicatorManagementResponseVo.setReviewDescription(ratingScale.getReviewDescription()); + } + return indicatorManagementResponseVo; + }).collect(Collectors.toList()); + resultPage.setRecords(responseVoList); + return resultPage; + } + + /** + * 新增指标项管理 + * + * @param indicatorManagementResponseVo + */ + @Override + public void saveIndicatorManagement(IndicatorManagementResponseVo indicatorManagementResponseVo) { + //保存指标项管理 + IndicatorManagement indicatorManagement = new IndicatorManagement(); + BeanUtils.copyProperties(indicatorManagementResponseVo, indicatorManagement); + baseMapper.insert(indicatorManagement); + //保存评分表 + // RatingScale ratingScale = new RatingScale(); + // ratingScale.setIndicatorManagementId(indicatorManagement.getId()); + // ratingScale.setGoal(indicatorManagementResponseVo.getGoal()); + // ratingScale.setReviewDescription(indicatorManagementResponseVo.getReviewDescription()); + // ratingScaleService.save(ratingScale); + } + + /** + * 修改指标项管理 + * + * @param indicatorManagementResponseVo + */ + @Override + public void upadteIndicatorManagement(IndicatorManagementResponseVo indicatorManagementResponseVo) { + //更新指标项管理 + IndicatorManagement indicatorManagement = new IndicatorManagement(); + BeanUtils.copyProperties(indicatorManagementResponseVo, indicatorManagement); + baseMapper.updateById(indicatorManagement); + // //更新评分表 + // LambdaQueryWrapper ratingScaleLambdaQueryWrapper = new LambdaQueryWrapper<>(); + // ratingScaleLambdaQueryWrapper.eq(RatingScale::getIndicatorManagementId, indicatorManagementResponseVo.getId()); + // RatingScale ratingScale = ratingScaleService.getOne(ratingScaleLambdaQueryWrapper); + // if (ratingScale != null) { + // ratingScale.setGoal(indicatorManagementResponseVo.getGoal()); + // ratingScale.setReviewDescription(indicatorManagementResponseVo.getReviewDescription()); + // ratingScaleService.updateById(ratingScale); + // } + + } + + /** + * 删除指标项管理 + */ + @Override + public void removeIndicatorManagementById(Long id) { + //删除评分表 + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.eq(RatingScale::getIndicatorManagementId, id); + ratingScaleService.remove(lambdaQueryWrapper); + //删除指标项管理 + baseMapper.deleteById(id); + } + + + /** + * 导出 + * + * @param response + */ + @SneakyThrows + @Override + public void export(HttpServletResponse response) { + String fileName = URLEncoder.encode("安全标准化.xlsx"); + response.setHeader("Content-Disposition", "attachment; filename=" + fileName); + response.setContentType("application/vnd.ms-excel;charset=utf-8"); + response.setCharacterEncoding("utf-8"); + //内容样式策略 + WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); + // //垂直居中,水平居中 + contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER); + contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); + contentWriteCellStyle.setBorderLeft(BorderStyle.THIN); + contentWriteCellStyle.setBorderTop(BorderStyle.THIN); + contentWriteCellStyle.setBorderRight(BorderStyle.THIN); + contentWriteCellStyle.setBorderBottom(BorderStyle.THIN); + // //设置 自动换行 + contentWriteCellStyle.setWrapped(true); + // // 字体策略 + // WriteFont contentWriteFont = new WriteFont(); + // // 字体大小 + // contentWriteFont.setFontHeightInPoints((short) 12); + // contentWriteCellStyle.setWriteFont(contentWriteFont); + // //头策略使用默认 + WriteCellStyle headWriteCellStyle = new WriteCellStyle(); + + //查询一级的数据 + List targetManagements = targetManagementService.listByParentId(0L); + + ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream(), ManagementVo.class) + .excelType(ExcelTypeEnum.XLSX).head(ManagementVo.class).build(); + int count = 0; + for (TargetManagement targetManagement : targetManagements) { + Long id = targetManagement.getId(); + List data = new ArrayList<>(); + List twoTargetManagements = targetManagementService.listByParentId(id); + Map map = new HashMap<>(); + List indicatorManagements = new ArrayList<>(); + for (TargetManagement twoTargetManagement : twoTargetManagements) { + Long twoTargetManagementId = twoTargetManagement.getId(); + List newIndicatorManagements = baseMapper.selectList( + new QueryWrapper().eq("target_management_id", twoTargetManagementId)); + indicatorManagements.addAll(newIndicatorManagements); + map.put(twoTargetManagement.getId(),twoTargetManagement.getName()); + } + + int standardScoreCount = 0; + int goalCount= 0; + //封装对象 + for (IndicatorManagement indicatorManagement : indicatorManagements) { + ManagementVo managementVo = new ManagementVo(); + RatingScale ratingScale = ratingScaleService.getOne(new QueryWrapper().eq("indicator_management_id", + indicatorManagement.getId())); + managementVo.setProductName(indicatorManagement.getProductName()); + managementVo.setEvaluationMethod(indicatorManagement.getEvaluationMethod()); + if (map.containsKey(indicatorManagement.getTargetManagementId())) { + managementVo.setName(map.get(indicatorManagement.getTargetManagementId())); + } + if (ratingScale != null) { + managementVo.setGoal(ratingScale.getGoal()); + managementVo.setReviewDescription(ratingScale.getReviewDescription()); + goalCount += NumberUtils.toInt(ratingScale.getGoal()); + } + managementVo.setStandardScore(indicatorManagement.getStandardScore()); + data.add(managementVo); + standardScoreCount += NumberUtils.toInt(indicatorManagement.getStandardScore()); + + } + + + + ManagementVo managementVo = new ManagementVo(); + managementVo.setName("合计"); + managementVo.setProductName("合计"); + managementVo.setStandardScore(standardScoreCount + ""); + managementVo.setGoal(goalCount + ""); + managementVo.setReviewDescription(""); + managementVo.setEvaluationMethod("得分小计"); + data.add(managementVo); + + // 序号列和运营公司列需要合并单元格 + List> mergeColDataList = + Stream.of(data.stream().map(ManagementVo::getName).collect(Collectors.toList()), + data.stream().map(ManagementVo::getProductName).collect(Collectors.toList())).collect(Collectors.toList()); + + + List mergeColIndexList = Stream.of(0, 1).collect(Collectors.toList()); + + String name = targetManagement.getName(); + WriteSheet writeSheet = EasyExcel.writerSheet(name) + //设置输出excel版本,不设置默认为xlsx + // .head(ManagementVo.class) + //设置拦截器或自定义样式 + .registerWriteHandler(new ManagementSheetWriteHandler(name + "(" + targetManagement.getScore() + + ")", count,data)) + .registerWriteHandler(new CustomMergeStrategyHandler(mergeColDataList, mergeColIndexList)) + .registerWriteHandler(new HorizontalCellStyleStrategy(headWriteCellStyle, contentWriteCellStyle)) + //设置默认样式及写入头信息开始的行数 + .useDefaultStyle(true).relativeHeadRowIndex(1).build(); + + excelWriter.write(data, writeSheet); + + count++; + + } + excelWriter.finish(); + + + } +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/RatingScaleServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/RatingScaleServiceImpl.java new file mode 100644 index 0000000..e872f2c --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/RatingScaleServiceImpl.java @@ -0,0 +1,48 @@ +package com.hnac.hzims.safeproduct.management.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.hnac.hzims.safeproduct.management.entity.RatingScale; +import com.hnac.hzims.safeproduct.management.mapper.RatingScaleMapper; +import com.hnac.hzims.safeproduct.management.service.RatingScaleService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.safeproduct.management.vo.RatingScaleVo; +import org.springframework.stereotype.Service; + +/** + *

+ * 平分表 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Service +public class RatingScaleServiceImpl extends ServiceImpl implements RatingScaleService { + + /** + * 评分 + * + * @param ratingScaleVo + */ + @Override + public void saveScore(RatingScaleVo ratingScaleVo) { + RatingScale ratingScale = new RatingScale(); + ratingScale.setIndicatorManagementId(ratingScaleVo.getIndicatorManagementId()); + ratingScale.setGoal(ratingScaleVo.getGoal()); + ratingScale.setReviewDescription(ratingScaleVo.getReviewDescription()); + baseMapper.insert(ratingScale); + } + + /** + * 查看评价 + * + * @param indicatorManagementId + * @return + */ + @Override + public RatingScale selectReviews(Long indicatorManagementId) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("indicator_management_id", indicatorManagementId); + return baseMapper.selectOne(queryWrapper); + } +} diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/TargetManagementServiceImpl.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/TargetManagementServiceImpl.java new file mode 100644 index 0000000..25537fb --- /dev/null +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/management/service/impl/TargetManagementServiceImpl.java @@ -0,0 +1,135 @@ +package com.hnac.hzims.safeproduct.management.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; +import com.hnac.hzims.safeproduct.management.entity.IndicatorManagement; +import com.hnac.hzims.safeproduct.management.entity.RatingScale; +import com.hnac.hzims.safeproduct.management.entity.TargetManagement; +import com.hnac.hzims.safeproduct.management.mapper.TargetManagementMapper; +import com.hnac.hzims.safeproduct.management.service.IndicatorManagementService; +import com.hnac.hzims.safeproduct.management.service.RatingScaleService; +import com.hnac.hzims.safeproduct.management.service.TargetManagementService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.sun.org.apache.bcel.internal.generic.NEW; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.stream.Collectors; + +/** + *

+ * 指标管理 服务实现类 + *

+ * + * @author dfy + * @since 2023-08-10 + */ +@Service +public class TargetManagementServiceImpl extends ServiceImpl implements TargetManagementService { + + @Lazy + @Autowired + private IndicatorManagementService indicatorManagementService; + + @Autowired + private RatingScaleService ratingScaleService; + + + /** + * 指标管理树形结构 + * + * @return + */ + @Override + public List listPage() { + List targetManagements = this.list(); + //获取第一级的数据 + List rootTargetManagements = targetManagements.stream() + .filter(item -> item.getParentId().intValue() == 0).collect(Collectors.toList()); + //获取2级的数据 + for (TargetManagement rootTargetManagement : rootTargetManagements) { + Long id = rootTargetManagement.getId(); + List menuTargetManagement = + targetManagements.stream().filter(item -> item.getParentId().intValue() == id).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(menuTargetManagement)) { + rootTargetManagement.setChildren(menuTargetManagement); + } + } + return rootTargetManagements; + } + + /** + * 删除指标管理 + * + * @param id + * @return + */ + @Override + public void removeTargetManagementById(Long id) { + TargetManagement targetManagement = baseMapper.selectById(id); + //删除指标项管理 + if (targetManagement.getParentId().intValue() == 0) { + Long targetManagementId = targetManagement.getId(); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(TargetManagement::getParentId, targetManagementId); + List targetManagements = baseMapper.selectList(queryWrapper); + List targetManagementIds = + targetManagements.stream().map(TargetManagement::getId).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(targetManagementIds)) { + //删除平方表 + LambdaQueryWrapper indicatorManagementLambdaQueryWrapper = new LambdaQueryWrapper<>(); + indicatorManagementLambdaQueryWrapper.in(IndicatorManagement::getTargetManagementId, targetManagementIds); + deleteIndicatorById(indicatorManagementLambdaQueryWrapper); + } + //1.删除2级的数据 + Long managementId = targetManagement.getId(); + LambdaQueryWrapper targetManagementLambdaQueryWrapper = new LambdaQueryWrapper<>(); + targetManagementLambdaQueryWrapper.eq(TargetManagement::getParentId, managementId); + baseMapper.delete(targetManagementLambdaQueryWrapper); + //删除一级的数据 + baseMapper.deleteById(id); + } else { + //删除平方表 + LambdaQueryWrapper indicatorManagementLambdaQueryWrapper = new LambdaQueryWrapper<>(); + indicatorManagementLambdaQueryWrapper.eq(IndicatorManagement::getTargetManagementId, id); + deleteIndicatorById(indicatorManagementLambdaQueryWrapper); + baseMapper.deleteById(id); + } + } + + + /** + * 删除指标项管理 + * + * @param indicatorManagementLambdaQueryWrapper + */ + private void deleteIndicatorById(LambdaQueryWrapper indicatorManagementLambdaQueryWrapper) { + List indicatorManagements = indicatorManagementService + .list(indicatorManagementLambdaQueryWrapper); + List indicatorManagementId = indicatorManagements.stream().map(IndicatorManagement::getId).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(indicatorManagementId)) { + LambdaQueryWrapper ratingScaleLambdaQueryWrapper = new LambdaQueryWrapper<>(); + ratingScaleLambdaQueryWrapper.in(RatingScale::getIndicatorManagementId, indicatorManagementId); + ratingScaleService.remove(ratingScaleLambdaQueryWrapper); + } + //删除指标项管理 + indicatorManagementService.remove(indicatorManagementLambdaQueryWrapper); + } + + + /** + * 查询一级的数据 + * + * @return + */ + @Override + public List listByParentId(Long parentId) { + QueryWrapper queryWrapper = new QueryWrapper(); + queryWrapper.eq("parent_id", parentId); + return this.list(queryWrapper); + } +} diff --git a/hzims-service/safeproduct/src/main/resources/db/1.0.0.sql b/hzims-service/safeproduct/src/main/resources/db/1.0.0.sql new file mode 100644 index 0000000..4c6c082 --- /dev/null +++ b/hzims-service/safeproduct/src/main/resources/db/1.0.0.sql @@ -0,0 +1,37 @@ +create table target_management +( + id bigint primary key auto_increment comment '编号', + name varchar(50) not null comment '名称', + score varchar(50) comment '分值', + parent_id bigint comment '父级Id', + level int comment '等级', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' +) comment '指标管理'; + + +create table indicator_management +( + id bigint primary key auto_increment comment '编号', + product_name varchar(5000) not null comment '项目名称', + standard_score varchar(50) comment '标准分值', + evaluation_method varchar(50) comment '评审方法及评分标准', + target_management_id bigint comment '指标管理id', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' +) comment '指标项管理'; + + + +create table rating_scale +( + id bigint primary key auto_increment comment '编号', + indicator_management_id bigint comment '指标项管理id', + goal varchar(50) comment '得分', + review_description varchar(5000) comment '评审描述', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint(1) default 0 comment '逻辑删除' +) comment '平分表'; diff --git a/hzims-service/safeproduct/src/main/resources/db/1.0.1.sql b/hzims-service/safeproduct/src/main/resources/db/1.0.1.sql new file mode 100644 index 0000000..f63ae4c --- /dev/null +++ b/hzims-service/safeproduct/src/main/resources/db/1.0.1.sql @@ -0,0 +1,12 @@ +create table document_management +( + id bigint primary key auto_increment, + document_name varchar(100) comment '文档名称', + document_url varchar(300) comment '文档路径', + creator_id bigint comment '创建人Id', + creator_name varchar(50) comment '创建人名称', + create_time datetime default current_timestamp comment '创建时间', + update_time datetime default current_timestamp on update current_timestamp comment '更新时间', + is_deleted tinyint default 0 comment '逻辑删除' + +) comment '文档管理'; \ No newline at end of file