diff --git a/pom.xml b/pom.xml
index eb5217c..989b0f5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,19 @@
1.5.7
linux-x86_64
5.0
+ 1.2.72
+ 3.4.2
+ 8.0.20
+ 21.0
+ 2.3
+ 2.4.4
+ 2.10.6
+ 5.7.18
+ 2.9.2
+ 2.9.2
+ 1.9.2
+ 3.11
+ 2.2.6
1.8
UTF-8
@@ -27,19 +40,19 @@
com.alibaba
fastjson
- 1.2.72
+ ${fastjson.version}
com.baomidou
mybatis-plus-boot-starter
- 3.4.2
+ ${mybatis-plus-boot-starter.version}
mysql
mysql-connector-java
- 8.0.20
+ ${mysql-connector-java.version}
org.projectlombok
@@ -49,7 +62,7 @@
com.google.guava
guava
- 21.0
+ ${guava.version}
org.springframework.boot
@@ -65,7 +78,7 @@
com.baomidou
mybatis-plus-generate
- 2.3
+ ${mybatis-plus-generate.version}
@@ -91,50 +104,50 @@
org.springframework.boot
spring-boot-starter-cache
- 2.4.4
+ ${spring-boot-starter-cache.version}
net.sf.ehcache
ehcache
- 2.10.6
+ ${ehcache.version}
cn.hutool
hutool-all
- 5.7.18
+ ${hutool-all.version}
io.springfox
springfox-swagger2
- 2.9.2
+ ${springfox-swagger2.version}
io.springfox
springfox-swagger-ui
- 2.9.2
+ ${springfox-swagger-ui.version}
com.github.xiaoymin
swagger-bootstrap-ui
- 1.9.2
+ ${swagger-bootstrap-ui.version}
org.apache.poi
poi-ooxml
- 3.11
+ ${poi-ooxml.version}
com.alibaba
easyexcel
- 2.2.6
+ ${easyexcel.version}
diff --git a/src/main/java/com/hisense/monitormanage/controller/WaterPointController.java b/src/main/java/com/hisense/monitormanage/controller/WaterPointController.java
index 214da50..6a9900b 100644
--- a/src/main/java/com/hisense/monitormanage/controller/WaterPointController.java
+++ b/src/main/java/com/hisense/monitormanage/controller/WaterPointController.java
@@ -14,6 +14,7 @@ import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -26,6 +27,8 @@ import java.util.List;
public class WaterPointController {
@Autowired
private WaterPointMapper waterPointMapper;
+ @Autowired
+ JdbcTemplate jdbcTemplate;
/**
* 查询积水点列表