diff --git a/pom.xml b/pom.xml
index 1251320..46d070f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,6 +31,8 @@
2.0.4
4.4.3
0.4.0
+
+ 1.0.9
@@ -94,8 +96,8 @@
postgresql
- mysql
- mysql-connector-java
+ mysql
+ mysql-connector-java
io.jsonwebtoken
@@ -199,6 +201,36 @@
jedis
3.7.0
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+
+ com.dahuatech.icc
+ java-sdk-oauth
+ ${icc.sdk.version}
+
+
+
+ com.dahuatech.icc
+ java-sdk-brm
+ ${icc.sdk.version}
+
+
+
+ com.dahuatech.icc
+ java-sdk-event
+ ${icc.sdk.version}
+
+
+
+ com.dahuatech.icc
+ java-sdk-h8900
+ ${icc.sdk.version}
+
diff --git a/src/main/java/com/xkrs/SmartUrbanRuralApplication.java b/src/main/java/com/xkrs/SmartUrbanRuralApplication.java
index bb6377e..7fedc13 100644
--- a/src/main/java/com/xkrs/SmartUrbanRuralApplication.java
+++ b/src/main/java/com/xkrs/SmartUrbanRuralApplication.java
@@ -6,6 +6,7 @@ import org.springframework.jms.annotation.EnableJms;
/**
* 启动类
+ *
* @author XinYi Song
**/
@SpringBootApplication
diff --git a/src/main/java/com/xkrs/controller/FireController.java b/src/main/java/com/xkrs/controller/FireController.java
index 5ca617b..9559f50 100644
--- a/src/main/java/com/xkrs/controller/FireController.java
+++ b/src/main/java/com/xkrs/controller/FireController.java
@@ -1,17 +1,17 @@
package com.xkrs.controller;
+import com.dahuatech.icc.event.model.v202011.EventSubscribeRequest;
+import com.dahuatech.icc.event.model.v202011.EventSubscribeResponse;
+import com.dahuatech.icc.oauth.http.DefaultClient;
+import com.dahuatech.icc.oauth.http.IClient;
import com.xkrs.common.encapsulation.PromptMessageEnum;
import com.xkrs.dao.EquipmentDao;
import com.xkrs.dao.FireDao;
-import com.xkrs.model.entity.Fire;
import com.xkrs.service.FireService;
-import com.xkrs.util.Query;
-import org.springframework.cache.annotation.Cacheable;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
-import javax.transaction.Transactional;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
@@ -40,92 +40,137 @@ public class FireController {
/**
* 根据设备编号获取火情信息
+ *
* @param code
* @return
*/
@GetMapping("/getFireInformation")
- public String getFireInformation(@RequestParam("code") String code){
+ public String getFireInformation(@RequestParam("code") String code) {
return fireService.getFireInformation(code);
}
/**
* 根据设备编码和时间段查询火情信息
+ *
* @param code
* @param startTime
* @param endTime
* @return
*/
@GetMapping("/selectFireBetweenTime")
- public String selectFireBetweenTime(@RequestParam("code") String code, @RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime){
- return fireService.selectFireBetweenTime(code,startTime,endTime);
+ public String selectFireBetweenTime(@RequestParam("code") String code, @RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime) {
+ return fireService.selectFireBetweenTime(code, startTime, endTime);
}
/**
* 查询最新的300条火情信息
+ *
* @return
*/
@GetMapping("/findThreeHundredData")
- public String findThreeHundredData(){
+ public String findThreeHundredData() {
return fireService.findThreeHundredData();
}
/**
* 查询一个月中每一天各个街道的火情数量
+ *
* @param beginTime
* @param endTime
* @return
*/
@GetMapping("/selectEveryDayCount")
- public String selectEveryDayCount(@RequestParam("beginTime") String beginTime,@RequestParam("endTime") String endTime){
+ public String selectEveryDayCount(@RequestParam("beginTime") String beginTime, @RequestParam("endTime") String endTime) {
List