Browse Source

初始化项目

zhongwei
段飞宇 1 year ago
parent
commit
efd38b9d64
  1. 0
      hzims-service-api/assets-api/src/main/java/com/hnac/hzims/spare/h.java
  2. 23
      hzims-service-api/base-info-api/pom.xml
  3. 65
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/FileReservoirInfo.java
  4. 62
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ImageReservoirInfo.java
  5. 62
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReach.java
  6. 531
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/IrrBIReachExample.java
  7. 408
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfo.java
  8. 2358
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfoExample.java
  9. 50
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdata.java
  10. 480
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirRefdataExample.java
  11. 95
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManage.java
  12. 751
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirWaterManageExample.java
  13. 92
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlB.java
  14. 692
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/StZvarlBExample.java
  15. 72
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfB.java
  16. 601
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/WqLrinfBExample.java
  17. 64
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirInfoVo.java
  18. 57
      hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/vo/ReservoirRefdataVo.java
  19. 4
      hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/entity/EmInfoEntity.java
  20. 62
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/Estimate.java
  21. 80
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetails.java
  22. 78
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/EvaluationDetailsOption.java
  23. 62
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/FileStation.java
  24. 62
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/ImageStation.java
  25. 46
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/StationEntity.java
  26. 62
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/entity/VideoStation.java
  27. 45
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsOptionVo.java
  28. 53
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/EvaluationDetailsVo.java
  29. 63
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/OneStationEvaluationVo.java
  30. 20
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsQueryVo.java
  31. 22
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/StationsVo.java
  32. 64
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/ThreeStationEvaluationVo.java
  33. 64
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/station/vo/TwoStationEvaluationVo.java
  34. 38
      hzims-service-api/middle-api/.gitignore
  35. 1
      hzims-service-api/pom.xml
  36. 74
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/DocumentManagement.java
  37. 77
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/IndicatorManagement.java
  38. 71
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/RatingScale.java
  39. 81
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/entity/TargetManagement.java
  40. 20
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/DocumentManagementQueryVo.java
  41. 36
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementQueryVo.java
  42. 32
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/IndicatorManagementResponseVo.java
  43. 29
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/management/vo/RatingScaleVo.java
  44. 66
      hzims-service/base-info/pom.xml
  45. 40
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/BaseInfoApplication.java
  46. 94
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/IrrBIReachController.java
  47. 88
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirInfoController.java
  48. 35
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/ReservoirRefdataController.java
  49. 72
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/StZvarlBController.java
  50. 94
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/controller/WqLrinfBController.java
  51. 14
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/FileReservoirInfoMapper.java
  52. 13
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ImageReservoirInfoMapper.java
  53. 26
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.java
  54. 149
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.xml
  55. 35
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.java
  56. 520
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.xml
  57. 21
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.java
  58. 125
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.xml
  59. 28
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.java
  60. 192
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.xml
  61. 27
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.java
  62. 154
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.xml
  63. 13
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/FileReservoirInfoService.java
  64. 13
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ImageReservoirInfoService.java
  65. 18
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/IrrBIReachService.java
  66. 25
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirInfoService.java
  67. 15
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirRefDataService.java
  68. 11
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/ReservoirWaterManageService.java
  69. 26
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/StZvarlBService.java
  70. 20
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/WqLrinfBService.java
  71. 18
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/FileReservoirInfoServiceImpl.java
  72. 21
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ImageReservoirInfoServiceImpl.java
  73. 65
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/IrrBIReachServiceImpl.java
  74. 180
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirInfoServiceImpl.java
  75. 66
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/ReservoirRefDataServiceImpl.java
  76. 148
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/StZvarlBServiceImpl.java
  77. 71
      hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/service/impl/WqLrinfBServiceImpl.java
  78. 30
      hzims-service/base-info/src/main/resources/application-dev.yml
  79. 28
      hzims-service/base-info/src/main/resources/application-prod.yml
  80. 21
      hzims-service/base-info/src/main/resources/application.yml
  81. 38
      hzims-service/hzims-scheduled/.gitignore
  82. 74
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EstimateController.java
  83. 56
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsController.java
  84. 37
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/EvaluationDetailsOptionController.java
  85. 81
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HydropowerStationController.java
  86. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java
  87. 70
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationEvaluationController.java
  88. 16
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.java
  89. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.xml
  90. 16
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.java
  91. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.xml
  92. 16
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.java
  93. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.xml
  94. 13
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/FileStationMapper.java
  95. 13
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/ImageStationMapper.java
  96. 16
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.java
  97. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.xml
  98. 13
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/VideoStationMapper.java
  99. 25
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EstimateService.java
  100. 25
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/EvaluationDetailsOptionService.java
  101. Some files were not shown because too many files have changed in this diff Show More

0
hzims-service-api/assets-api/src/main/java/com/hnac/hzims/spare/h.java

23
hzims-service-api/base-info-api/pom.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hnac.hzims</groupId>
<artifactId>hzims-service-api</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>base-info-api</artifactId>
<version>${hzims.project.version}</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

65
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;
}

62
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;
}

62
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;
}
}

531
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<Criteria> oredCriteria;
public IrrBIReachExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria 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<String> values) {
addCriterion("RIVER_CODE in", values, "riverCode");
return (Criteria) this;
}
public Criteria andRiverCodeNotIn(List<String> 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<String> values) {
addCriterion("RIVER_NAME in", values, "riverName");
return (Criteria) this;
}
public Criteria andRiverNameNotIn(List<String> 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<BigDecimal> values) {
addCriterion("RIVER_WIDTH in", values, "riverWidth");
return (Criteria) this;
}
public Criteria andRiverWidthNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("RIVER_FLUX in", values, "riverFlux");
return (Criteria) this;
}
public Criteria andRiverFluxNotIn(List<BigDecimal> 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<String> values) {
addCriterion("COORDINATESET in", values, "coordinateset");
return (Criteria) this;
}
public Criteria andCoordinatesetNotIn(List<String> 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);
}
}
}

408
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;
}
}

2358
hzims-service-api/base-info-api/src/main/java/com/hnac/hzims/baseinfo/entity/ReservoirInfoExample.java

File diff suppressed because it is too large Load Diff

50
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;
}
}

480
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<Criteria> oredCriteria;
public ReservoirRefdataExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria 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<String> values) {
addCriterion("STCD in", values, "stcd");
return (Criteria) this;
}
public Criteria andStcdNotIn(List<String> 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<String> values) {
addCriterion("REFSTCD in", values, "refstcd");
return (Criteria) this;
}
public Criteria andRefstcdNotIn(List<String> 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<String> values) {
addCriterion("REFQPOINT in", values, "refqpoint");
return (Criteria) this;
}
public Criteria andRefqpointNotIn(List<String> 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<String> values) {
addCriterion("REFZPOINT in", values, "refzpoint");
return (Criteria) this;
}
public Criteria andRefzpointNotIn(List<String> 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);
}
}
}

95
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;
}
}

751
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<Criteria> oredCriteria;
public ReservoirWaterManageExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("ID <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("ID >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("ID >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("ID <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("ID <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("ID in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("ID not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("ID between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("ID not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria 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<Integer> values) {
addCriterion("MONTH in", values, "month");
return (Criteria) this;
}
public Criteria andMonthNotIn(List<Integer> 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<BigDecimal> values) {
addCriterion("FIRST_AREA in", values, "firstArea");
return (Criteria) this;
}
public Criteria andFirstAreaNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("SECOND_AREA in", values, "secondArea");
return (Criteria) this;
}
public Criteria andSecondAreaNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("THIRD_AREA in", values, "thirdArea");
return (Criteria) this;
}
public Criteria andThirdAreaNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("FOURTH_AREA in", values, "fourthArea");
return (Criteria) this;
}
public Criteria andFourthAreaNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("FIVTH_AREA in", values, "fivthArea");
return (Criteria) this;
}
public Criteria andFivthAreaNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("SIXTH_AREA in", values, "sixthArea");
return (Criteria) this;
}
public Criteria andSixthAreaNotIn(List<BigDecimal> 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<String> values) {
addCriterion("STCD in", values, "stcd");
return (Criteria) this;
}
public Criteria andStcdNotIn(List<String> 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);
}
}
}

92
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;
}
}

692
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<Criteria> oredCriteria;
public StZvarlBExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("ID <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("ID >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("ID >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("ID <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("ID <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("ID in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("ID not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("ID between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("ID not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria 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<String> values) {
addCriterion("STCD in", values, "stcd");
return (Criteria) this;
}
public Criteria andStcdNotIn(List<String> 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<Date> values) {
addCriterion("MSTM in", values, "mstm");
return (Criteria) this;
}
public Criteria andMstmNotIn(List<Date> 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<Integer> values) {
addCriterion("PTNO in", values, "ptno");
return (Criteria) this;
}
public Criteria andPtnoNotIn(List<Integer> 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<BigDecimal> values) {
addCriterion("RZ in", values, "rz");
return (Criteria) this;
}
public Criteria andRzNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("W in", values, "w");
return (Criteria) this;
}
public Criteria andWNotIn(List<BigDecimal> 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<Integer> values) {
addCriterion("WSFA in", values, "wsfa");
return (Criteria) this;
}
public Criteria andWsfaNotIn(List<Integer> 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<Date> values) {
addCriterion("MODITIME in", values, "moditime");
return (Criteria) this;
}
public Criteria andModitimeNotIn(List<Date> 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);
}
}
}

72
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;
}
}

601
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<Criteria> oredCriteria;
public WqLrinfBExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria 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<String> values) {
addCriterion("LRCD in", values, "lrcd");
return (Criteria) this;
}
public Criteria andLrcdNotIn(List<String> 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<String> values) {
addCriterion("WATP in", values, "watp");
return (Criteria) this;
}
public Criteria andWatpNotIn(List<String> 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<String> values) {
addCriterion("LRNM in", values, "lrnm");
return (Criteria) this;
}
public Criteria andLrnmNotIn(List<String> 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<BigDecimal> values) {
addCriterion("LRAR in", values, "lrar");
return (Criteria) this;
}
public Criteria andLrarNotIn(List<BigDecimal> 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<BigDecimal> values) {
addCriterion("RSCP in", values, "rscp");
return (Criteria) this;
}
public Criteria andRscpNotIn(List<BigDecimal> 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<String> values) {
addCriterion("COORDINATESET in", values, "coordinateset");
return (Criteria) this;
}
public Criteria andCoordinatesetNotIn(List<String> 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);
}
}
}

64
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<ImageReservoirInfo> imageReservoirInfoList;
private List<FileReservoirInfo> 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());
}
}

57
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;
}
}

4
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<EmInfoEntity> infoChildren;
@ApiModelProperty("固定资产编码")
private String assetCode;
}

62
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;
/**
* <p>
* 总体评分附表
* </p>
*
* @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;
}

80
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;
/**
* <p>
* 得分事项简述
* </p>
*
* @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;
}

78
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;
/**
* <p>
* 选择表
* </p>
*
* @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;
}

62
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;
}

62
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;
}

46
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<ImageStation> imageStationList;
/**
* 视频 list
*/
@TableField(exist = false)
private List<VideoStation> videoStationList;
/**
* 文件 list
*/
@TableField(exist = false)
private List<FileStation> fileStationList;
}

62
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;
}

45
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;
}

53
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<EvaluationDetailsOptionVo> evaluationDetailsOptionVos;
}

63
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<TwoStationEvaluationVo> children;
}

20
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;
}

22
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;
}

64
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<EvaluationDetailsVo> evaluationDetailsVos;
}

64
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<ThreeStationEvaluationVo> children;
}

38
hzims-service-api/middle-api/.gitignore vendored

@ -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

1
hzims-service-api/pom.xml

@ -27,6 +27,7 @@
<module>weather-api</module>
<module>common-api</module>
<module>middle-api</module>
<module>base-info-api</module>
</modules>
<dependencies>

74
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;
/**
* <p>
* 文档管理
* </p>
*
* @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;
}

77
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;
/**
* <p>
* 指标项管理
* </p>
*
* @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;
}

71
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;
/**
* <p>
* 平分表
* </p>
*
* @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;
}

81
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;
/**
* <p>
* 指标管理
* </p>
*
* @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<TargetManagement> children;
}

20
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;
}

36
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;
}

32
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;
}

29
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;
}

66
hzims-service/base-info/pom.xml

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hnac.hzims</groupId>
<artifactId>hzims-service</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>base-info</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.hnac.hzims</groupId>
<artifactId>base-info-api</artifactId>
<version>${hzims.project.version}</version>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-common</artifactId>
<!-- <version>${bladex.projet.common.version}</version>-->
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-core-boot</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-starter-swagger</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-core-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-core-auto</artifactId>
<scope>provided</scope>
</dependency>
<!--生成代码-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
</dependency>
<!-- velocity 模板引擎, Mybatis Plus 代码生成器需要-->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</project>

40
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);
}
}

94
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<IrrBIReach> 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");
}
}

88
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<String> stationIds = new ArrayList<String>();
//查询当前用户下所有站点的水库列表
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");
}
}

35
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));
}
}

72
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;
}
}

94
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<WqLrinfB> 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);
}
}

14
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<FileReservoirInfo> {
}

13
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<ImageReservoirInfo> {
}

26
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<IrrBIReach> selectByExample(IrrBIReachExample example);
IrrBIReach selectByPrimaryKey(String riverCode);
int updateByPrimaryKeySelective(IrrBIReach record);
int updateByPrimaryKey(IrrBIReach record);
IPage<IrrBIReach> selectByRiverName(@Param("riverName")String riverName, IPage<IrrBIReach> page);
}

149
hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/IrrBIReachMapper.xml

@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.hnac.hzims.baseinfo.mapper.IrrBIReachMapper" >
<resultMap id="BaseResultMap" type="com.hnac.hzims.baseinfo.entity.IrrBIReach" >
<id column="RIVER_CODE" property="riverCode" jdbcType="CHAR" />
<result column="RIVER_NAME" property="riverName" jdbcType="VARCHAR" />
<result column="RIVER_WIDTH" property="riverWidth" jdbcType="DECIMAL" />
<result column="RIVER_FLUX" property="riverFlux" jdbcType="DECIMAL" />
<result column="COORDINATESET" property="coordinateset" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
RIVER_CODE, RIVER_NAME, RIVER_WIDTH, RIVER_FLUX, COORDINATESET
</sql>
<select id="selectByExample" resultMap="BaseResultMap"
parameterType="com.hnac.hzims.baseinfo.entity.IrrBIReachExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from irrbireach
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from irrbireach
where RIVER_CODE = #{riverCode,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from irrbireach
where RIVER_CODE = #{riverCode,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.hnac.hzims.baseinfo.entity.IrrBIReach" >
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>
<insert id="insertSelective" parameterType="com.hnac.hzims.baseinfo.entity.IrrBIReach" >
insert into irrbireach
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="riverCode != null" >
RIVER_CODE,
</if>
<if test="riverName != null" >
RIVER_NAME,
</if>
<if test="riverWidth != null" >
RIVER_WIDTH,
</if>
<if test="riverFlux != null" >
RIVER_FLUX,
</if>
<if test="coordinateset != null" >
COORDINATESET,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="riverCode != null" >
#{riverCode,jdbcType=CHAR},
</if>
<if test="riverName != null" >
#{riverName,jdbcType=VARCHAR},
</if>
<if test="riverWidth != null" >
#{riverWidth,jdbcType=DECIMAL},
</if>
<if test="riverFlux != null" >
#{riverFlux,jdbcType=DECIMAL},
</if>
<if test="coordinateset != null" >
#{coordinateset,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.hnac.hzims.baseinfo.entity.IrrBIReach" >
update irrbireach
<set >
<if test="riverName != null" >
RIVER_NAME = #{riverName,jdbcType=VARCHAR},
</if>
<if test="riverWidth != null" >
RIVER_WIDTH = #{riverWidth,jdbcType=DECIMAL},
</if>
<if test="riverFlux != null" >
RIVER_FLUX = #{riverFlux,jdbcType=DECIMAL},
</if>
<if test="coordinateset != null" >
COORDINATESET = #{coordinateset,jdbcType=VARCHAR},
</if>
</set>
where RIVER_CODE = #{riverCode,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.hnac.hzims.baseinfo.entity.IrrBIReach" >
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}
</update>
<select id="selectByRiverName" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from irrbireach
where 1=1
<if test=" riverName!=null and riverName!='' ">
and RIVER_NAME like CONCAT('%',#{riverName},'%')
</if>
</select>
</mapper>

35
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<ReservoirInfo> selectByExample(ReservoirInfoExample example);
ReservoirInfo selectByPrimaryKey(String stcd);
int updateByPrimaryKeySelective(ReservoirInfo record);
int updateByPrimaryKey(ReservoirInfo record);
IPage<ReservoirInfo> selectByNameAndStationId(@Param("name") String name,
@Param("areaCode")String areaCode, @Param("riverCode")String riverCode,
@Param("stationIds") List<String> stationId,
Page<ReservoirInfo> pageBounds);
IPage<ReservoirInfo> selectByNameAndStationId(@Param("name") String name,
@Param("areaCode")String areaCode,@Param("riverCode")String riverCode,
@Param("stationIds") List<String> stationId, IPage<ReservoirInfo> page);
}

520
hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirInfoMapper.xml

@ -0,0 +1,520 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.hnac.hzims.baseinfo.mapper.ReservoirInfoMapper" >
<resultMap id="BaseResultMap" type="com.hnac.hzims.baseinfo.entity.ReservoirInfo" >
<id column="STCD" property="stcd" jdbcType="VARCHAR" />
<result column="STATIONID" property="stationid" jdbcType="VARCHAR" />
<result column="DISCHARGE" property="discharge" jdbcType="REAL" />
<result column="NAME" property="name" jdbcType="VARCHAR" />
<result column="LOCATION" property="location" jdbcType="VARCHAR" />
<result column="VILLAGE" property="village" jdbcType="VARCHAR" />
<result column="ROADLENGTH" property="roadlength" jdbcType="REAL" />
<result column="ROADCONDITIION" property="roadconditiion" jdbcType="VARCHAR" />
<result column="BUILDDATE" property="builddate" jdbcType="DATE" />
<result column="COMPLETEDDATE" property="completeddate" jdbcType="DATE" />
<result column="RAINAREA" property="rainarea" jdbcType="REAL" />
<result column="DESIGNEDFLOODFLOW" property="designedfloodflow" jdbcType="REAL" />
<result column="CHEDKEDFLOODFLOW" property="chedkedfloodflow" jdbcType="REAL" />
<result column="DESIGNEDFILLAREA" property="designedfillarea" jdbcType="REAL" />
<result column="DESIGNEDTOTALFLOW" property="designedtotalflow" jdbcType="REAL" />
<result column="CHECDEDTOTALFLOW" property="checdedtotalflow" jdbcType="REAL" />
<result column="AVERAGERAINFALL" property="averagerainfall" jdbcType="REAL" />
<result column="DESIGNEDMAXFLOW" property="designedmaxflow" jdbcType="REAL" />
<result column="CHECKEDMAXFLOW" property="checkedmaxflow" jdbcType="REAL" />
<result column="VOLUME" property="volume" jdbcType="REAL" />
<result column="CHECKEDFLOODLEVEL" property="checkedfloodlevel" jdbcType="REAL" />
<result column="HISTORICALMAXLEVEL" property="historicalmaxlevel" jdbcType="REAL" />
<result column="FLOODCONTROLVOLUME" property="floodcontrolvolume" jdbcType="REAL" />
<result column="DESIGNEDFLOODLEVEL" property="designedfloodlevel" jdbcType="REAL" />
<result column="MAXLEVELTIME" property="maxleveltime" jdbcType="TIMESTAMP" />
<result column="UTILIZABLEVOLUME" property="utilizablevolume" jdbcType="REAL" />
<result column="NORRMALLEVEL" property="norrmallevel" jdbcType="REAL" />
<result column="FLOODDETENTIONVOLUME" property="flooddetentionvolume" jdbcType="REAL" />
<result column="DEADLEVEL" property="deadlevel" jdbcType="REAL" />
<result column="AREA_CODE" property="areaCode" jdbcType="VARCHAR" />
<result column="LRCD" property="lrcd" jdbcType="VARCHAR" />
<result column="SZHLDM" property="szhldm" jdbcType="VARCHAR" />
<result column="DONGJ" property="dongj" jdbcType="REAL" />
<result column="BEIW" property="beiw" jdbcType="REAL" />
<result column="MJFLSSCNWL" property="mjflsscnwl" jdbcType="REAL" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
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
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirInfoExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from reservoir_info
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from reservoir_info
where STCD = #{stcd,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from reservoir_info
where STCD = #{stcd,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirInfo" >
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>
<insert id="insertSelective" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirInfo" >
insert into reservoir_info
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="stcd != null" >
STCD,
</if>
<if test="stationid != null" >
STATIONID,
</if>
<if test="discharge != null" >
DISCHARGE,
</if>
<if test="name != null" >
NAME,
</if>
<if test="location != null" >
LOCATION,
</if>
<if test="village != null" >
VILLAGE,
</if>
<if test="roadlength != null" >
ROADLENGTH,
</if>
<if test="roadconditiion != null" >
ROADCONDITIION,
</if>
<if test="builddate != null" >
BUILDDATE,
</if>
<if test="completeddate != null" >
COMPLETEDDATE,
</if>
<if test="rainarea != null" >
RAINAREA,
</if>
<if test="designedfloodflow != null" >
DESIGNEDFLOODFLOW,
</if>
<if test="chedkedfloodflow != null" >
CHEDKEDFLOODFLOW,
</if>
<if test="designedfillarea != null" >
DESIGNEDFILLAREA,
</if>
<if test="designedtotalflow != null" >
DESIGNEDTOTALFLOW,
</if>
<if test="checdedtotalflow != null" >
CHECDEDTOTALFLOW,
</if>
<if test="averagerainfall != null" >
AVERAGERAINFALL,
</if>
<if test="designedmaxflow != null" >
DESIGNEDMAXFLOW,
</if>
<if test="checkedmaxflow != null" >
CHECKEDMAXFLOW,
</if>
<if test="volume != null" >
VOLUME,
</if>
<if test="checkedfloodlevel != null" >
CHECKEDFLOODLEVEL,
</if>
<if test="historicalmaxlevel != null" >
HISTORICALMAXLEVEL,
</if>
<if test="floodcontrolvolume != null" >
FLOODCONTROLVOLUME,
</if>
<if test="designedfloodlevel != null" >
DESIGNEDFLOODLEVEL,
</if>
<if test="maxleveltime != null" >
MAXLEVELTIME,
</if>
<if test="utilizablevolume != null" >
UTILIZABLEVOLUME,
</if>
<if test="norrmallevel != null" >
NORRMALLEVEL,
</if>
<if test="flooddetentionvolume != null" >
FLOODDETENTIONVOLUME,
</if>
<if test="deadlevel != null" >
DEADLEVEL,
</if>
<if test="areaCode != null" >
AREA_CODE,
</if>
<if test="lrcd != null" >
LRCD,
</if>
<if test="szhldm != null" >
SZHLDM,
</if>
<if test="dongj != null" >
DONGJ,
</if>
<if test="beiw != null" >
BEIW,
</if>
<if test="mjflsscnwl != null" >
MJFLSSCNWL,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="stcd != null" >
#{stcd,jdbcType=VARCHAR},
</if>
<if test="stationid != null" >
#{stationid,jdbcType=VARCHAR},
</if>
<if test="discharge != null" >
#{discharge,jdbcType=REAL},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="location != null" >
#{location,jdbcType=VARCHAR},
</if>
<if test="village != null" >
#{village,jdbcType=VARCHAR},
</if>
<if test="roadlength != null" >
#{roadlength,jdbcType=REAL},
</if>
<if test="roadconditiion != null" >
#{roadconditiion,jdbcType=VARCHAR},
</if>
<if test="builddate != null" >
#{builddate,jdbcType=DATE},
</if>
<if test="completeddate != null" >
#{completeddate,jdbcType=DATE},
</if>
<if test="rainarea != null" >
#{rainarea,jdbcType=REAL},
</if>
<if test="designedfloodflow != null" >
#{designedfloodflow,jdbcType=REAL},
</if>
<if test="chedkedfloodflow != null" >
#{chedkedfloodflow,jdbcType=REAL},
</if>
<if test="designedfillarea != null" >
#{designedfillarea,jdbcType=REAL},
</if>
<if test="designedtotalflow != null" >
#{designedtotalflow,jdbcType=REAL},
</if>
<if test="checdedtotalflow != null" >
#{checdedtotalflow,jdbcType=REAL},
</if>
<if test="averagerainfall != null" >
#{averagerainfall,jdbcType=REAL},
</if>
<if test="designedmaxflow != null" >
#{designedmaxflow,jdbcType=REAL},
</if>
<if test="checkedmaxflow != null" >
#{checkedmaxflow,jdbcType=REAL},
</if>
<if test="volume != null" >
#{volume,jdbcType=REAL},
</if>
<if test="checkedfloodlevel != null" >
#{checkedfloodlevel,jdbcType=REAL},
</if>
<if test="historicalmaxlevel != null" >
#{historicalmaxlevel,jdbcType=REAL},
</if>
<if test="floodcontrolvolume != null" >
#{floodcontrolvolume,jdbcType=REAL},
</if>
<if test="designedfloodlevel != null" >
#{designedfloodlevel,jdbcType=REAL},
</if>
<if test="maxleveltime != null" >
#{maxleveltime,jdbcType=TIMESTAMP},
</if>
<if test="utilizablevolume != null" >
#{utilizablevolume,jdbcType=REAL},
</if>
<if test="norrmallevel != null" >
#{norrmallevel,jdbcType=REAL},
</if>
<if test="flooddetentionvolume != null" >
#{flooddetentionvolume,jdbcType=REAL},
</if>
<if test="deadlevel != null" >
#{deadlevel,jdbcType=REAL},
</if>
<if test="areaCode != null" >
#{areaCode,jdbcType=VARCHAR},
</if>
<if test="lrcd != null" >
#{lrcd,jdbcType=VARCHAR},
</if>
<if test="szhldm != null" >
#{szhldm,jdbcType=VARCHAR},
</if>
<if test="dongj != null" >
#{dongj,jdbcType=REAL},
</if>
<if test="beiw != null" >
#{beiw,jdbcType=REAL},
</if>
<if test="mjflsscnwl != null" >
#{mjflsscnwl,jdbcType=REAL},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirInfo" >
update reservoir_info
<set >
<if test="stationid != null" >
STATIONID = #{stationid,jdbcType=VARCHAR},
</if>
<if test="discharge != null" >
DISCHARGE = #{discharge,jdbcType=REAL},
</if>
<if test="name != null" >
NAME = #{name,jdbcType=VARCHAR},
</if>
<if test="location != null" >
LOCATION = #{location,jdbcType=VARCHAR},
</if>
<if test="village != null" >
VILLAGE = #{village,jdbcType=VARCHAR},
</if>
<if test="roadlength != null" >
ROADLENGTH = #{roadlength,jdbcType=REAL},
</if>
<if test="roadconditiion != null" >
ROADCONDITIION = #{roadconditiion,jdbcType=VARCHAR},
</if>
<if test="builddate != null" >
BUILDDATE = #{builddate,jdbcType=DATE},
</if>
<if test="completeddate != null" >
COMPLETEDDATE = #{completeddate,jdbcType=DATE},
</if>
<if test="rainarea != null" >
RAINAREA = #{rainarea,jdbcType=REAL},
</if>
<if test="designedfloodflow != null" >
DESIGNEDFLOODFLOW = #{designedfloodflow,jdbcType=REAL},
</if>
<if test="chedkedfloodflow != null" >
CHEDKEDFLOODFLOW = #{chedkedfloodflow,jdbcType=REAL},
</if>
<if test="designedfillarea != null" >
DESIGNEDFILLAREA = #{designedfillarea,jdbcType=REAL},
</if>
<if test="designedtotalflow != null" >
DESIGNEDTOTALFLOW = #{designedtotalflow,jdbcType=REAL},
</if>
<if test="checdedtotalflow != null" >
CHECDEDTOTALFLOW = #{checdedtotalflow,jdbcType=REAL},
</if>
<if test="averagerainfall != null" >
AVERAGERAINFALL = #{averagerainfall,jdbcType=REAL},
</if>
<if test="designedmaxflow != null" >
DESIGNEDMAXFLOW = #{designedmaxflow,jdbcType=REAL},
</if>
<if test="checkedmaxflow != null" >
CHECKEDMAXFLOW = #{checkedmaxflow,jdbcType=REAL},
</if>
<if test="volume != null" >
VOLUME = #{volume,jdbcType=REAL},
</if>
<if test="checkedfloodlevel != null" >
CHECKEDFLOODLEVEL = #{checkedfloodlevel,jdbcType=REAL},
</if>
<if test="historicalmaxlevel != null" >
HISTORICALMAXLEVEL = #{historicalmaxlevel,jdbcType=REAL},
</if>
<if test="floodcontrolvolume != null" >
FLOODCONTROLVOLUME = #{floodcontrolvolume,jdbcType=REAL},
</if>
<if test="designedfloodlevel != null" >
DESIGNEDFLOODLEVEL = #{designedfloodlevel,jdbcType=REAL},
</if>
<if test="maxleveltime != null" >
MAXLEVELTIME = #{maxleveltime,jdbcType=TIMESTAMP},
</if>
<if test="utilizablevolume != null" >
UTILIZABLEVOLUME = #{utilizablevolume,jdbcType=REAL},
</if>
<if test="norrmallevel != null" >
NORRMALLEVEL = #{norrmallevel,jdbcType=REAL},
</if>
<if test="flooddetentionvolume != null" >
FLOODDETENTIONVOLUME = #{flooddetentionvolume,jdbcType=REAL},
</if>
<if test="deadlevel != null" >
DEADLEVEL = #{deadlevel,jdbcType=REAL},
</if>
<if test="areaCode != null" >
AREA_CODE = #{areaCode,jdbcType=VARCHAR},
</if>
<if test="lrcd != null" >
LRCD = #{lrcd,jdbcType=VARCHAR},
</if>
<if test="szhldm != null" >
SZHLDM = #{szhldm,jdbcType=VARCHAR},
</if>
<if test="dongj != null" >
DONGJ = #{dongj,jdbcType=REAL},
</if>
<if test="beiw != null" >
BEIW = #{beiw,jdbcType=REAL},
</if>
<if test="mjflsscnwl != null" >
MJFLSSCNWL = #{mjflsscnwl,jdbcType=REAL},
</if>
</set>
where STCD = #{stcd,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirInfo" >
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}
</update>
<select id="selectByNameAndStationId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from reservoir_info
where
1=1
<if test="stationIds != null and stationIds.size()>0">
and stationId in
<foreach collection="stationIds" index="index" item="item"
open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="name != null and name != ''">
and name like CONCAT('%',#{name},'%')
</if>
<if test="areaCode != null and areaCode != ''">
and AREA_CODE like CONCAT('%',#{areaCode},'%')
</if>
<if test="riverCode != null and riverCode != ''">
and SZHLDM = #{riverCode}
</if>
</select>
</mapper>

21
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<ReservoirRefdata> selectByExample(ReservoirRefdataExample example);
ReservoirRefdata selectByPrimaryKey(String stcd);
int updateByPrimaryKeySelective(ReservoirRefdata record);
int updateByPrimaryKey(ReservoirRefdata record);
}

125
hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/ReservoirRefdataMapper.xml

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.hnac.hzims.baseinfo.mapper.ReservoirRefdataMapper" >
<resultMap id="BaseResultMap" type="com.hnac.hzims.baseinfo.entity.ReservoirRefdata" >
<id column="STCD" property="stcd" jdbcType="VARCHAR" />
<result column="REFSTCD" property="refstcd" jdbcType="CHAR" />
<result column="REFQPOINT" property="refqpoint" jdbcType="VARCHAR" />
<result column="REFZPOINT" property="refzpoint" jdbcType="CHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
STCD, REFSTCD, REFQPOINT, REFZPOINT
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirRefdataExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from reservoir_refdata
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from reservoir_refdata
where STCD = #{stcd,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from reservoir_refdata
where STCD = #{stcd,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirRefdata" >
insert into reservoir_refdata (STCD, REFSTCD, REFQPOINT,
REFZPOINT)
values (#{stcd,jdbcType=VARCHAR}, #{refstcd,jdbcType=CHAR}, #{refqpoint,jdbcType=VARCHAR},
#{refzpoint,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirRefdata" >
insert into reservoir_refdata
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="stcd != null" >
STCD,
</if>
<if test="refstcd != null" >
REFSTCD,
</if>
<if test="refqpoint != null" >
REFQPOINT,
</if>
<if test="refzpoint != null" >
REFZPOINT,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="stcd != null" >
#{stcd,jdbcType=VARCHAR},
</if>
<if test="refstcd != null" >
#{refstcd,jdbcType=CHAR},
</if>
<if test="refqpoint != null" >
#{refqpoint,jdbcType=VARCHAR},
</if>
<if test="refzpoint != null" >
#{refzpoint,jdbcType=CHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirRefdata" >
update reservoir_refdata
<set >
<if test="refstcd != null" >
REFSTCD = #{refstcd,jdbcType=CHAR},
</if>
<if test="refqpoint != null" >
REFQPOINT = #{refqpoint,jdbcType=VARCHAR},
</if>
<if test="refzpoint != null" >
REFZPOINT = #{refzpoint,jdbcType=CHAR},
</if>
</set>
where STCD = #{stcd,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.hnac.hzims.baseinfo.entity.ReservoirRefdata" >
update reservoir_refdata
set REFSTCD = #{refstcd,jdbcType=CHAR},
REFQPOINT = #{refqpoint,jdbcType=VARCHAR},
REFZPOINT = #{refzpoint,jdbcType=CHAR}
where STCD = #{stcd,jdbcType=VARCHAR}
</update>
</mapper>

28
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<StZvarlB> selectByExample(StZvarlBExample example);
StZvarlB selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(StZvarlB record);
int updateByPrimaryKey(StZvarlB record);
IPage<StZvarlB> selectByStcd(@Param("stcd") String stcd, IPage<StZvarlB> page);
List<StZvarlB> selectMaxMin(StZvarlB stZvarlB);
List<StZvarlB> selectStZvarlB(@Param("stcd") String stcd);
}

192
hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/StZvarlBMapper.xml

@ -0,0 +1,192 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.hnac.hzims.baseinfo.mapper.StZvarlBMapper" >
<resultMap id="BaseResultMap" type="com.hnac.hzims.baseinfo.entity.StZvarlB" >
<id column="ID" property="id" jdbcType="INTEGER" />
<result column="STCD" property="stcd" jdbcType="VARCHAR" />
<result column="MSTM" property="mstm" jdbcType="TIMESTAMP" />
<result column="PTNO" property="ptno" jdbcType="INTEGER" />
<result column="RZ" property="rz" jdbcType="DECIMAL" />
<result column="W" property="w" jdbcType="DECIMAL" />
<result column="WSFA" property="wsfa" jdbcType="DECIMAL" />
<result column="MODITIME" property="moditime" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
ID, STCD, MSTM, PTNO, RZ, W, WSFA, MODITIME
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hnac.hzims.baseinfo.entity.StZvarlBExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from st_zvarl_b
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from st_zvarl_b
where ID = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from st_zvarl_b
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.hnac.hzims.baseinfo.entity.StZvarlB" >
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>
<insert id="insertSelective" parameterType="com.hnac.hzims.baseinfo.entity.StZvarlB" >
insert into st_zvarl_b
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
ID,
</if>
<if test="stcd != null" >
STCD,
</if>
<if test="mstm != null" >
MSTM,
</if>
<if test="ptno != null" >
PTNO,
</if>
<if test="rz != null" >
RZ,
</if>
<if test="w != null" >
W,
</if>
<if test="wsfa != null" >
WSFA,
</if>
<if test="moditime != null" >
MODITIME,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="stcd != null" >
#{stcd,jdbcType=VARCHAR},
</if>
<if test="mstm != null" >
#{mstm,jdbcType=TIMESTAMP},
</if>
<if test="ptno != null" >
#{ptno,jdbcType=INTEGER},
</if>
<if test="rz != null" >
#{rz,jdbcType=DECIMAL},
</if>
<if test="w != null" >
#{w,jdbcType=DECIMAL},
</if>
<if test="wsfa != null" >
#{wsfa,jdbcType=DECIMAL},
</if>
<if test="moditime != null" >
#{moditime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.hnac.hzims.baseinfo.entity.StZvarlB" >
update st_zvarl_b
<set >
<if test="stcd != null" >
STCD = #{stcd,jdbcType=VARCHAR},
</if>
<if test="mstm != null" >
MSTM = #{mstm,jdbcType=TIMESTAMP},
</if>
<if test="ptno != null" >
PTNO = #{ptno,jdbcType=INTEGER},
</if>
<if test="rz != null" >
RZ = #{rz,jdbcType=DECIMAL},
</if>
<if test="w != null" >
W = #{w,jdbcType=DECIMAL},
</if>
<if test="wsfa != null" >
WSFA = #{wsfa,jdbcType=DECIMAL},
</if>
<if test="moditime != null" >
MODITIME = #{moditime,jdbcType=TIMESTAMP},
</if>
</set>
where ID = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.hnac.hzims.baseinfo.entity.StZvarlB" >
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}
</update>
<select id="selectMaxMin" resultMap="BaseResultMap" parameterType="com.hnac.hzims.baseinfo.entity.StZvarlB">
SELECT * FROM ST_ZVARL_B WHERE W=(
SELECT MAX(W) FROM ST_ZVARL_B WHERE RZ &lt;= #{rz} AND STCD=#{stcd} ) AND RZ &lt;= #{rz} AND STCD=#{stcd}
UNION
SELECT * FROM ST_ZVARL_B WHERE W=(
SELECT MIN(W) FROM ST_ZVARL_B WHERE RZ &gt; #{rz} AND STCD=#{stcd} ) AND RZ &gt; #{rz} AND STCD=#{stcd};
</select>
<select id="selectStZvarlB" resultMap="BaseResultMap">
SELECT * FROM ST_ZVARL_B WHERE STCD=#{stcd} order by rz
</select>
<select id="selectByStcd" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from st_zvarl_b
where STCD = #{stcd,jdbcType=VARCHAR}
order by stcd,ptno
</select>
</mapper>

27
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<WqLrinfB> selectByExample(WqLrinfBExample example);
WqLrinfB selectByPrimaryKey(String lrcd);
int updateByPrimaryKeySelective(WqLrinfB record);
int updateByPrimaryKey(WqLrinfB record);
IPage<WqLrinfB> selectByLrnm(@Param("lrnm")String lrnm, IPage<WqLrinfB> page);
}

154
hzims-service/base-info/src/main/java/com/hnac/hzims/baseinfo/mapper/WqLrinfBMapper.xml

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.hnac.hzims.baseinfo.mapper.WqLrinfBMapper" >
<resultMap id="BaseResultMap" type="com.hnac.hzims.baseinfo.entity.WqLrinfB" >
<id column="LRCD" property="lrcd" jdbcType="CHAR" />
<result column="WATP" property="watp" jdbcType="CHAR" />
<result column="LRNM" property="lrnm" jdbcType="VARCHAR" />
<result column="LRAR" property="lrar" jdbcType="DECIMAL" />
<result column="RSCP" property="rscp" jdbcType="DECIMAL" />
<result column="COORDINATESET" property="coordinateset" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
LRCD, WATP, LRNM, LRAR, RSCP, COORDINATESET
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.hnac.hzims.baseinfo.entity.WqLrinfBExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from wq_lrinf_b
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from wq_lrinf_b
where LRCD = #{lrcd,jdbcType=CHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from wq_lrinf_b
where LRCD = #{lrcd,jdbcType=CHAR}
</delete>
<insert id="insert" parameterType="com.hnac.hzims.baseinfo.entity.WqLrinfB" >
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>
<insert id="insertSelective" parameterType="com.hnac.hzims.baseinfo.entity.WqLrinfB" >
insert into wq_lrinf_b
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="lrcd != null" >
LRCD,
</if>
<if test="watp != null" >
WATP,
</if>
<if test="lrnm != null" >
LRNM,
</if>
<if test="lrar != null" >
LRAR,
</if>
<if test="rscp != null" >
RSCP,
</if>
<if test="coordinateset != null" >
COORDINATESET,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="lrcd != null" >
#{lrcd,jdbcType=CHAR},
</if>
<if test="watp != null" >
#{watp,jdbcType=CHAR},
</if>
<if test="lrnm != null" >
#{lrnm,jdbcType=VARCHAR},
</if>
<if test="lrar != null" >
#{lrar,jdbcType=DECIMAL},
</if>
<if test="rscp != null" >
#{rscp,jdbcType=DECIMAL},
</if>
<if test="coordinateset != null" >
#{coordinateset,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.hnac.hzims.baseinfo.entity.WqLrinfB" >
update wq_lrinf_b
<set >
<if test="watp != null" >
WATP = #{watp,jdbcType=CHAR},
</if>
<if test="lrnm != null" >
LRNM = #{lrnm,jdbcType=VARCHAR},
</if>
<if test="lrar != null" >
LRAR = #{lrar,jdbcType=DECIMAL},
</if>
<if test="rscp != null" >
RSCP = #{rscp,jdbcType=DECIMAL},
</if>
<if test="coordinateset != null" >
COORDINATESET = #{coordinateset,jdbcType=VARCHAR},
</if>
</set>
where LRCD = #{lrcd,jdbcType=CHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.hnac.hzims.baseinfo.entity.WqLrinfB" >
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}
</update>
<select id="selectByLrnm" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from wq_lrinf_b
where lrnm like CONCAT('%',#{lrnm},'%')
</select>
</mapper>

13
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<FileReservoirInfo> {
}

13
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<ImageReservoirInfo> {
}

18
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<IrrBIReach> bindIrrBIReachs(String riverName, Page<IrrBIReach> page);
R addOrEditIrrBIReach(IrrBIReach irrBIReach, String operate);
R delIrrBIReach(String riverCode);
IrrBIReach getIrrBIReach(String riverCode);
}

25
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<ReservoirInfoVo> bindReservoirList(String name, String areaCode, String riverCode,
List<String> stationIds, Query query);
IPage<ReservoirInfo> bindReservoirList(String name, String areaCode, String riverCode,
List<String> stationIds, IPage<ReservoirInfo> page);
ReservoirInfoVo getReservoir(String id);
R addOrEditReservoir(ReservoirInfoVo reservoirInfoVo, String operate);
R delReservoir(String id);
}

15
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);
}

11
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<ReservoirWaterManage> getReservoirWaterManage(String stcd, List<Integer> months);
}

26
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<StZvarlB> bindStZvarlBs(String stcd, IPage<StZvarlB> page);
R addOrEditStZvarlB(StZvarlB stZvarlB);
R delStZvarlB(Integer id);
BigDecimal getWValue(String stcd,BigDecimal rz);
//根据水库获取库容曲线
List<StZvarlB> selectStZvarlB(String stcd);
//计算库容
BigDecimal calcResp(List<StZvarlB> list,BigDecimal rz);
//计算小于等于rz最大 和 大于rz最小值的 水位与库容关系两个点
List<StZvarlB> calcMaxMin(List<StZvarlB> list, BigDecimal rz);
}

20
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<WqLrinfB> bindWqLrinfBs(String lrnm, Page<WqLrinfB> page);
WqLrinfB getWqLrinfB(String lrcd);
R delWqLrinfB(String lrcd);
R editWqLrinfB(WqLrinfB wqLrinfB);
R addWqLrinfB(WqLrinfB wqLrinfB);
}

18
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<FileReservoirInfoMapper, FileReservoirInfo>
implements FileReservoirInfoService {
}

21
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<ImageReservoirInfoMapper, ImageReservoirInfo>
implements ImageReservoirInfoService {
}

65
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<IrrBIReach> bindIrrBIReachs(String riverName, Page<IrrBIReach> page) {
riverName = riverName == null ? "" : riverName;
IPage<IrrBIReach> 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);
}
}

180
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<ImageReservoirInfo> imageReservoirInfoList = imageReservoirInfoService.list(new LambdaQueryWrapper<ImageReservoirInfo>()
.eq(ImageReservoirInfo::getReservoirInfoId, id));
if (CollectionUtils.isNotEmpty(imageReservoirInfoList)) {
infoVo.setImageReservoirInfoList(imageReservoirInfoList);
}
//查询文件
List<FileReservoirInfo> fileReservoirInfoList =
fileReservoirInfoService.list(new LambdaQueryWrapper<FileReservoirInfo>()
.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<ImageReservoirInfo>()
.eq(ImageReservoirInfo::getReservoirInfoId, stcd));
//删除文件
fileReservoirInfoService.remove(new LambdaQueryWrapper<FileReservoirInfo>()
.eq(FileReservoirInfo::getReservoirInfoId, stcd));
}
//图片
List<ImageReservoirInfo> imageReservoirInfoList = reservoirInfoVo.getImageReservoirInfoList();
if (CollectionUtils.isNotEmpty(imageReservoirInfoList)) {
imageReservoirInfoList.stream().map(item -> {
item.setReservoirInfoId(stcd);
return item;
}).collect(Collectors.toList());
imageReservoirInfoService.saveOrUpdateBatch(imageReservoirInfoList);
}
//文件
List<FileReservoirInfo> 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<ImageReservoirInfo>().eq(ImageReservoirInfo::getReservoirInfoId, stcd));
//删除文集
fileReservoirInfoService.remove(
new LambdaQueryWrapper<FileReservoirInfo>().eq(FileReservoirInfo::getReservoirInfoId, stcd));
if (cnt < 1)
return R.fail(500, "删除失败");
return R.success("删除成功");
}
@Override
public IPage<ReservoirInfoVo> bindReservoirList(String name, String areaCode, String riverCode,
List<String> stationIds, Query query) {
Page<ReservoirInfo> reservoirInfoPage = new Page<>(query.getCurrent(), query.getSize());
IPage<ReservoirInfo> records = reservoirInfoMapper
.selectByNameAndStationId(name, areaCode, riverCode, stationIds, reservoirInfoPage);
IPage<ReservoirInfoVo> resultPage = new Page<>(records.getCurrent(), records.getSize());
List<ReservoirInfoVo> reservoirInfoVos = new ArrayList<>();
for (ReservoirInfo record : records.getRecords()) {
ReservoirInfoVo reservoirInfoVo = new ReservoirInfoVo();
BeanUtils.copyProperties(record, reservoirInfoVo);
//查询图片
List<ImageReservoirInfo> imageReservoirInfoList = imageReservoirInfoService.list(new LambdaQueryWrapper<ImageReservoirInfo>()
.eq(ImageReservoirInfo::getReservoirInfoId, record.getStcd()));
if (CollectionUtils.isNotEmpty(imageReservoirInfoList)) {
reservoirInfoVo.setImageReservoirInfoList(imageReservoirInfoList);
}
//查询文件
List<FileReservoirInfo> fileReservoirInfoList =
fileReservoirInfoService.list(new LambdaQueryWrapper<FileReservoirInfo>()
.eq(FileReservoirInfo::getReservoirInfoId, record.getStcd()));
if (CollectionUtils.isNotEmpty(fileReservoirInfoList)) {
reservoirInfoVo.setFileReservoirInfoList(fileReservoirInfoList);
}
reservoirInfoVos.add(reservoirInfoVo);
}
resultPage.setRecords(reservoirInfoVos);
return resultPage;
}
@Override
public IPage<ReservoirInfo> bindReservoirList(String name, String areaCode, String riverCode, List<String> stationIds, IPage<ReservoirInfo> page) {
IPage<ReservoirInfo> records = reservoirInfoMapper
.selectByNameAndStationId(name, areaCode, riverCode, stationIds, page);
return records;
}
}

66
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;
}
}

148
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<StZvarlB> bindStZvarlBs(String stcd, IPage<StZvarlB> page) {
IPage<StZvarlB> 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<StZvarlB> list=selectStZvarlB(stcd);
if(list!=null && !list.isEmpty()){
return calcResp(list,rz);
}else{
return BigDecimal.ZERO;
}
}
@Override
public List<StZvarlB> selectStZvarlB(String stcd) {
return stZvarlBMapper.selectStZvarlB(stcd);
}
@Override
public BigDecimal calcResp(List<StZvarlB> list, BigDecimal rz) {
List<StZvarlB> 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<StZvarlB> calcMaxMin(List<StZvarlB> list,BigDecimal rz){
List<StZvarlB> 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<StZvarlB> list,BigDecimal rz){
List<StZvarlB> 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<StZvarlB> list,BigDecimal rz){
List<StZvarlB> 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");
}
}
}

71
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<WqLrinfB> bindWqLrinfBs(String lrnm, Page<WqLrinfB> page) {
lrnm = lrnm == null ? "" : lrnm;
// PageBounds pageBounds = new PageBounds(pageParam.getPageNo(), pageParam.getPageSize());
IPage<WqLrinfB> 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("操作成功");
}
}

30
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

28
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}

21
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

38
hzims-service/hzims-scheduled/.gitignore vendored

@ -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

74
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;
/**
* <p>
* 总体评分附表 前端控制器
* </p>
*
* @author dfy
* @since 2023-08-23
*/
@RestController
@RequestMapping("/station/estimate")
public class EstimateController {
@Autowired
private EstimateService estimateService;
/**
* 列表
*/
@GetMapping("/list")
public R list() {
Map<String, Object> 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("删除成功");
}
}

56
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.*;
/**
* <p>
* 得分事项简述 前端控制器
* </p>
*
* @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("删除成功");
}
}

37
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;
/**
* <p>
* 选择表 前端控制器
* </p>
*
* @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("删除成功");
}
}

81
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<StationEntity> stationEntityPage = new Page<>(page, size);
IPage<StationEntity> stationEntityIPage =
stationService.selectPageList(stationEntityPage, stationQueryVo);
return R.data(stationEntityIPage);
}
/**
* 对全县绿色水电站在水电GIS一张图上进行展示直观展现绿色小水电站的分布信息
*/
@GetMapping("/list")
public R list(StationsQueryVo stationsQueryVo) {
List<StationEntity> 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<String, Object> stationVos = stationService.getCount();
return R.data(stationVos);
}
}

6
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<StationEntity> 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<StationEntity> list = stationService.list(new LambdaQueryWrapper<StationEntity>(){{
// 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<StationEntity> queryWrapper = new LambdaQueryWrapper<StationEntity>();
// queryWrapper.ne(StationEntity::getId,req.getId());

70
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;
/**
* <p>
* 电站评分表 前端控制器
* </p>
*
* @author dfy
* @since 2023-08-16
*/
@RestController
@RequestMapping("/station/station-evaluation")
public class StationEvaluationController {
@Autowired
private StationEvaluationService stationEvaluationService;
/**
* 列表展示
*/
@GetMapping("/list")
public R list() {
List<OneStationEvaluationVo> 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("删除成功");
}
}

16
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;
/**
* <p>
* 总体评分附表 Mapper 接口
* </p>
*
* @author dfy
* @since 2023-08-23
*/
public interface EstimateMapper extends BaseMapper<Estimate> {
}

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EstimateMapper.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hnac.hzims.operational.station.mapper.EstimateMapper">
</mapper>

16
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;
/**
* <p>
* 得分事项简述 Mapper 接口
* </p>
*
* @author dfy
* @since 2023-08-16
*/
public interface EvaluationDetailsMapper extends BaseMapper<EvaluationDetails> {
}

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsMapper.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hnac.hzims.operational.station.mapper.EvaluationDetailsMapper">
</mapper>

16
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;
/**
* <p>
* 选择表 Mapper 接口
* </p>
*
* @author dfy
* @since 2023-08-16
*/
public interface EvaluationDetailsOptionMapper extends BaseMapper<EvaluationDetailsOption> {
}

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/EvaluationDetailsOptionMapper.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hnac.hzims.operational.station.mapper.EvaluationDetailsOptionMapper">
</mapper>

13
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<FileStation> {
}

13
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<ImageStation> {
}

16
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;
/**
* <p>
* 电站评分表 Mapper 接口
* </p>
*
* @author dfy
* @since 2023-08-16
*/
public interface StationEvaluationMapper extends BaseMapper<StationEvaluation> {
}

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationEvaluationMapper.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hnac.hzims.operational.station.mapper.StationEvaluationMapper">
</mapper>

13
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<VideoStation> {
}

25
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;
/**
* <p>
* 总体评分附表 服务类
* </p>
*
* @author dfy
* @since 2023-08-23
*/
public interface EstimateService extends IService<Estimate> {
/**
* 查询列表数据
* @return
*/
Map<String, Object> selectEstimateList();
}

25
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;
/**
* <p>
* 选择表 服务类
* </p>
*
* @author dfy
* @since 2023-08-16
*/
public interface EvaluationDetailsOptionService extends IService<EvaluationDetailsOption> {
/**
* 根据描述id获取选择信息
* @param evaluationDetailsId
* @return
*/
List<EvaluationDetailsOption> selectEvaluationDetailsOptionByStationEvaluationId(Long evaluationDetailsId);
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save