浏览代码

增加了大门事件的接口

yang 3 年之前
父节点
当前提交
b45bf27069

+ 2 - 0
huimv-farm-video/src/main/java/com/huimv/video/HuimvVideoApplication.java

@@ -6,6 +6,7 @@ import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.annotation.Import;
+import org.springframework.scheduling.annotation.EnableScheduling;
 
 /**
  * @Project : huimv.shiwan
@@ -15,6 +16,7 @@ import org.springframework.context.annotation.Import;
  * @Author : ZhuoNing
  * @Create : 2020-12-25
  **/
+@EnableScheduling
 @SpringBootApplication
 @MapperScan("com.huimv.video.*.mapper")
 @Import(InterceptorConfig.class)

+ 134 - 0
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ClientController/ClientAllEventController.java

@@ -0,0 +1,134 @@
+package com.huimv.video.dhicc.ClientController;
+
+
+import com.alibaba.fastjson.JSON;
+import com.dahuatech.hutool.http.Method;
+import com.dahuatech.icc.exception.ClientException;
+import com.dahuatech.icc.oauth.http.DefaultClient;
+import com.dahuatech.icc.oauth.http.IClient;
+import com.dahuatech.icc.oauth.model.v202010.GeneralRequest;
+import com.dahuatech.icc.oauth.model.v202010.GeneralResponse;
+import com.huimv.common.utils.StringUtilsWork;
+
+import com.huimv.video.dhicc.icc.CommonConstant;
+import com.huimv.video.dhicc.result.R;
+import com.huimv.video.dhicc.service.ISysTelecomEventService;
+import net.sf.json.JSONObject;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+
+@RestController
+@RequestMapping("/client/event")
+public class ClientAllEventController {
+
+
+    @Autowired
+    private ISysTelecomEventService sysTelecomEventService;
+
+     //
+    @RequestMapping("/ListAllEvent")
+    public R SiZhuList(@RequestBody Map<String, Object> params1) throws ClientException, ParseException {
+        return R.ok("请求成功").put("data", getEventList( params1  )).put("total" , CountTimes(params1));
+    }
+
+    //返回所有的事件 的集合  包括死猪和洗消和大门 --分页参数
+    public GeneralResponse getEventList( Map<String, Object> params1) throws ClientException {
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        Calendar c = Calendar.getInstance();
+        Date date = new Date();
+        c.setTime(date);
+        c.set(Calendar.HOUR, 0);
+        c.set(Calendar.MINUTE, 0);
+        c.set(Calendar.SECOND, 0);
+        Date A = c.getTime();
+        String formatA = format.format(A);
+        c.set(Calendar.HOUR, +24);
+        Date d = c.getTime();
+        String formatD = format.format(d);
+        Map<String, Object> params = new HashMap<>();
+        params.put("alarmStartDateString",formatA);
+        params.put("alarmEndDateString",formatD);
+        if (StringUtilsWork.isNotEmpty( (String) params1.get("alarmStartDateString"))){
+            params.put("alarmStartDateString",(String) params1.get("alarmStartDateString"));
+            params.put("alarmEndDateString",(String) params1.get("alarmEndDateString"));
+        }
+        params.put("pageNum",(Integer)params1.get("pageNum"));
+        params.put("pageSize",(Integer)params1.get("pageSize"));
+        params.put("alarmType",303);
+        params.put("dbType",0);
+        params.put("deviceCategory",1);
+        String[]  nodeCodeList= CommonConstant.AllChannle;
+        params.put("nodeCodeList",nodeCodeList);
+        // String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page"; //获取事件URL    post请求
+        String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page";  //获取事件URL    post请求
+        IClient iClient = new DefaultClient();
+        String NewUrl = URL;
+        //这种已经在配置文件里面安排了账号ip以及密码
+        GeneralRequest generalRequest = new GeneralRequest(NewUrl, Method.POST);
+        System.out.println(NewUrl);
+        generalRequest.header("Content-Type", " application/json");
+        generalRequest.body(JSON.toJSONString(params));
+        GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
+        return    generalResponse;
+    }
+
+
+    public String CountTimes(Map<String, Object> params1 ) throws ClientException {
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        Calendar c = Calendar.getInstance();
+        Date date = new Date();
+        c.setTime(date);
+        c.set(Calendar.HOUR, 0);
+        c.set(Calendar.MINUTE, 0);
+        c.set(Calendar.SECOND, 0);
+        Date A = c.getTime();
+        String formatA = format.format(A);
+        c.set(Calendar.HOUR, +24);
+        Date d = c.getTime();
+        String formatD = format.format(d);
+        Map<String, Object> params = new HashMap<>();
+        params.put("alarmStartDateString",formatA);
+        params.put("alarmEndDateString",formatD);
+        if (StringUtilsWork.isNotEmpty( (String) params1.get("alarmStartDateString"))){
+            params.put("alarmStartDateString",(String) params1.get("alarmStartDateString"));
+            params.put("alarmEndDateString",(String) params1.get("alarmEndDateString"));
+        }
+        params.put("alarmType",303);
+        params.put("dbType",0);
+        params.put("deviceCategory",1);
+        String[]  nodeCodeList= CommonConstant.AllChannle;
+
+        params.put("nodeCodeList",nodeCodeList);
+        String URL = "/evo-apigw/evo-event/1.0.0/alarm-record/count-num";  //获取事件URL    post请求
+        IClient iClient = new DefaultClient();
+        String NewUrl = URL ;
+        System.out.println("开始执行");
+        //这种已经在配置文件里面安排了账号ip以及密码
+        GeneralRequest generalRequest = new GeneralRequest(NewUrl, Method.POST);
+        System.out.println(NewUrl);
+        generalRequest.header("Content-Type", " application/json");
+        System.out.println(JSON.toJSONString(params));
+        //里面是
+        generalRequest.body(JSON.toJSONString(params));
+        //发起请求处理应答
+        GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
+        System.out.println("执行结束");
+        JSONObject jsonObject = JSONObject.fromObject(generalResponse.getResult());
+        Object data = jsonObject.get("data");
+        JSONObject jsonObject1 = JSONObject.fromObject(data);
+        System.out.println(jsonObject1);
+        return jsonObject1.get("value").toString();
+    }
+}
+

+ 0 - 1
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ClientController/ClientCarManageController.java

@@ -16,7 +16,6 @@ import java.util.Map;
 
 @RestController
 @RequestMapping("car")
-
 public class ClientCarManageController {
         //过车的数据
         /**

+ 128 - 0
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ClientController/ClientDoorController.java

@@ -0,0 +1,128 @@
+package com.huimv.video.dhicc.ClientController;
+
+
+import com.alibaba.fastjson.JSON;
+import com.dahuatech.hutool.http.Method;
+import com.dahuatech.icc.exception.ClientException;
+import com.dahuatech.icc.oauth.http.DefaultClient;
+import com.dahuatech.icc.oauth.http.IClient;
+import com.dahuatech.icc.oauth.model.v202010.GeneralRequest;
+import com.dahuatech.icc.oauth.model.v202010.GeneralResponse;
+import com.huimv.common.utils.StringUtilsWork;
+import com.huimv.video.dhicc.icc.CommonConstant;
+import com.huimv.video.dhicc.result.R;
+import net.sf.json.JSONObject;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 开门事件  以及看回放
+ */
+@RestController
+@RequestMapping("door")
+public class ClientDoorController {
+
+    //
+    @RequestMapping("/ListDoorEvent")
+    public R ListDoorEvent(@RequestBody Map<String, Object> params1) throws ClientException, ParseException {
+        return R.ok("请求成功").put("data", getAllKindEventList( params1  )).put("total" , CountTimes(params1));
+    }
+    //返回所有的事件 的集合  包括死猪和洗消和大门 --分页参数
+    public GeneralResponse getAllKindEventList( Map<String, Object> params1) throws ClientException {
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        Calendar c = Calendar.getInstance();
+        Date date = new Date();
+        c.setTime(date);
+        c.set(Calendar.HOUR, 0);
+        c.set(Calendar.MINUTE, 0);
+        c.set(Calendar.SECOND, 0);
+        Date A = c.getTime();
+        String formatA = format.format(A);
+        c.set(Calendar.HOUR, +24);
+        Date d = c.getTime();
+        String formatD = format.format(d);
+        Map<String, Object> params = new HashMap<>();
+        params.put("alarmStartDateString",formatA);
+        params.put("alarmEndDateString",formatD);
+        if (StringUtilsWork.isNotEmpty( (String) params1.get("alarmStartDateString"))){
+            params.put("alarmStartDateString",(String) params1.get("alarmStartDateString"));
+            params.put("alarmEndDateString",(String) params1.get("alarmEndDateString"));
+        }
+        params.put("pageNum",(Integer)params1.get("pageNum"));
+        params.put("pageSize",(Integer)params1.get("pageSize"));
+        params.put("alarmType",303);
+        params.put("dbType",0);
+        params.put("deviceCategory",1);
+        String[]  nodeCodeList= CommonConstant.DoorChannle;
+        params.put("nodeCodeList",nodeCodeList);
+        // String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page"; //获取事件URL    post请求
+        String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page";  //获取事件URL    post请求
+        IClient iClient = new DefaultClient();
+        String NewUrl = URL;
+        //这种已经在配置文件里面安排了账号ip以及密码
+        GeneralRequest generalRequest = new GeneralRequest(NewUrl, Method.POST);
+        System.out.println(NewUrl);
+        generalRequest.header("Content-Type", " application/json");
+        generalRequest.body(JSON.toJSONString(params));
+        GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
+        return    generalResponse;
+    }
+
+
+    public String CountTimes(Map<String, Object> params1 ) throws ClientException {
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        Calendar c = Calendar.getInstance();
+        Date date = new Date();
+        c.setTime(date);
+        c.set(Calendar.HOUR, 0);
+        c.set(Calendar.MINUTE, 0);
+        c.set(Calendar.SECOND, 0);
+        Date A = c.getTime();
+        String formatA = format.format(A);
+        c.set(Calendar.HOUR, +24);
+        Date d = c.getTime();
+        String formatD = format.format(d);
+        Map<String, Object> params = new HashMap<>();
+        params.put("alarmStartDateString",formatA);
+        params.put("alarmEndDateString",formatD);
+        if (StringUtilsWork.isNotEmpty( (String) params1.get("alarmStartDateString"))){
+            params.put("alarmStartDateString",(String) params1.get("alarmStartDateString"));
+            params.put("alarmEndDateString",(String) params1.get("alarmEndDateString"));
+        }
+        params.put("alarmType",303);
+        params.put("dbType",0);
+        params.put("deviceCategory",1);
+        String[]  nodeCodeList= CommonConstant.DoorChannle;
+
+        params.put("nodeCodeList",nodeCodeList);
+        String URL = "/evo-apigw/evo-event/1.0.0/alarm-record/count-num";  //获取事件URL    post请求
+        IClient iClient = new DefaultClient();
+        String NewUrl = URL ;
+        System.out.println("开始执行");
+        //这种已经在配置文件里面安排了账号ip以及密码
+        GeneralRequest generalRequest = new GeneralRequest(NewUrl, Method.POST);
+        System.out.println(NewUrl);
+        generalRequest.header("Content-Type", " application/json");
+        System.out.println(JSON.toJSONString(params));
+        //里面是
+        generalRequest.body(JSON.toJSONString(params));
+        //发起请求处理应答
+        GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
+        System.out.println("执行结束");
+        JSONObject jsonObject = JSONObject.fromObject(generalResponse.getResult());
+        Object data = jsonObject.get("data");
+        JSONObject jsonObject1 = JSONObject.fromObject(data);
+        System.out.println(jsonObject1);
+        return jsonObject1.get("value").toString();
+    }
+
+
+}

+ 0 - 276
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ClientController/ClientEventController.java

@@ -1,276 +0,0 @@
-package com.huimv.video.dhicc.ClientController;
-
-
-import com.alibaba.fastjson.JSON;
-import com.dahuatech.hutool.http.Method;
-import com.dahuatech.icc.exception.ClientException;
-import com.dahuatech.icc.oauth.http.DefaultClient;
-import com.dahuatech.icc.oauth.http.IClient;
-import com.dahuatech.icc.oauth.model.v202010.GeneralRequest;
-import com.dahuatech.icc.oauth.model.v202010.GeneralResponse;
-import com.huimv.common.utils.StringUtilsWork;
-
-import com.huimv.video.dhicc.result.R;
-import com.huimv.video.dhicc.service.ISysTelecomEventService;
-import net.sf.json.JSONObject;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.CrossOrigin;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
-
-
-@RestController
-@RequestMapping("/client/event")
-public class ClientEventController {
-
-
-    @Autowired
-    private ISysTelecomEventService sysTelecomEventService;
-
-     //
-    @RequestMapping("/ListAllEvent")
-    public R SiZhuList(@RequestBody Map<String, Object> params1) throws ClientException, ParseException {
-        return R.ok("请求成功").put("data", getAllKindEventList( params1  )).put("total" , CountTimes(params1));
-    }
-
-
-    //返回所有的事件 的集合  包括死猪和洗消和大门 --分页参数
-    public GeneralResponse getAllKindEventList( Map<String, Object> params1) throws ClientException {
-        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-        Calendar c = Calendar.getInstance();
-        Date date = new Date();
-        c.setTime(date);
-        c.set(Calendar.HOUR, 0);
-        c.set(Calendar.MINUTE, 0);
-        c.set(Calendar.SECOND, 0);
-        Date A = c.getTime();
-        String formatA = format.format(A);
-        c.set(Calendar.HOUR, +24);
-        Date d = c.getTime();
-        String formatD = format.format(d);
-        Map<String, Object> params = new HashMap<>();
-        params.put("alarmStartDateString",formatA);
-        params.put("alarmEndDateString",formatD);
-        if (StringUtilsWork.isNotEmpty( (String) params1.get("alarmStartDateString"))){
-            params.put("alarmStartDateString",(String) params1.get("alarmStartDateString"));
-            params.put("alarmEndDateString",(String) params1.get("alarmEndDateString"));
-        }
-        params.put("pageNum",(Integer)params1.get("pageNum"));
-        params.put("pageSize",(Integer)params1.get("pageSize"));
-        params.put("alarmType",303);
-        params.put("dbType",0);
-        params.put("deviceCategory",1);
-        String[]  nodeCodeList=  new String[68];
-        nodeCodeList[0]="1002874$1$0$0";
-        nodeCodeList[1]="1002875$1$0$0";
-        nodeCodeList[0]="1002876$1$0$0";
-        nodeCodeList[0]="1002877$1$0$0";
-        nodeCodeList[0]="1002878$1$0$0";
-        nodeCodeList[0]="1002879$1$0$0";
-        nodeCodeList[0]="1002880$1$0$0";
-        nodeCodeList[0]="1002881$1$0$0";
-        nodeCodeList[0]="1002882$1$0$0";
-        nodeCodeList[0]="1002883$1$0$0";
-        nodeCodeList[10]="1002884$1$0$0";
-        nodeCodeList[11]="1002885$1$0$0";
-        nodeCodeList[12]="1002886$1$0$0";
-        nodeCodeList[13]="1002887$1$0$0";
-        nodeCodeList[14]="1002888$1$0$0";
-        nodeCodeList[15]="1002889$1$0$0";
-        nodeCodeList[16]="1002890$1$0$0";
-        nodeCodeList[17]="1002891$1$0$0";
-        nodeCodeList[18]="1002892$1$0$0";
-        nodeCodeList[19]="1002893$1$0$0";
-        nodeCodeList[20]="1002894$1$0$0";
-        nodeCodeList[21]="1002895$1$0$0";
-        nodeCodeList[22]="1002896$1$0$0";
-        nodeCodeList[23]="1002897$1$0$0";
-        nodeCodeList[24]="1002898$1$0$0";
-        nodeCodeList[25]="1002899$1$0$0";
-        nodeCodeList[26]="1002900$1$0$0";
-        nodeCodeList[27]= "1002901$1$0$0";
-        nodeCodeList[28]="1002902$1$0$0";
-        nodeCodeList[29]="1002903$1$0$0";
-        nodeCodeList[30]="1002904$1$0$0";
-        nodeCodeList[31]="1002905$1$0$0";
-        nodeCodeList[32]="1002906$1$0$0";
-        nodeCodeList[33]="1002907$1$0$0";
-        nodeCodeList[34]="1002908$1$0$0";
-        nodeCodeList[35]="1002909$1$0$0";
-        nodeCodeList[36]="1002910$1$0$0";
-        nodeCodeList[37]="1002911$1$0$0";
-        nodeCodeList[38]="1002912$1$0$0";
-        nodeCodeList[39]="1002913$1$0$0";
-        nodeCodeList[40]="1002939$1$0$0";
-        nodeCodeList[41]="1002939$1$0$1";
-        nodeCodeList[42]="1002939$1$0$2";
-        nodeCodeList[43]="1002939$1$0$3";
-        nodeCodeList[44]="1002939$1$0$4";
-        nodeCodeList[45]="1002939$1$0$5";
-        nodeCodeList[46]="1002939$1$0$6";
-        nodeCodeList[47]="1002939$1$0$7";
-        nodeCodeList[48]="1002939$1$0$8";
-        nodeCodeList[49]="1002939$1$0$9";
-        nodeCodeList[50]="1002940$1$0$0";
-        nodeCodeList[51]="1002940$1$0$1";
-        nodeCodeList[52]="1002940$1$0$2";
-        nodeCodeList[53]="1002940$1$0$3";
-        nodeCodeList[54]="1002940$1$0$4";
-        nodeCodeList[55]="1002940$1$0$5";
-        nodeCodeList[56]="1002940$1$0$6";
-        nodeCodeList[57]="1002940$1$0$7";
-        nodeCodeList[58]="1002939$1$0$10";
-        nodeCodeList[59]="1002939$1$0$11";
-        nodeCodeList[60]="1002939$1$0$12";
-        nodeCodeList[61]="1002939$1$0$13";
-        nodeCodeList[62]="1002939$1$0$14";
-        nodeCodeList[63]="1002939$1$0$15";
-        //洗消
-        nodeCodeList[64]="1002871$1$0$0";
-        nodeCodeList[65]="1002872$1$0$0";
-        nodeCodeList[66]="1002873$1$0$0";
-        //大门
-        nodeCodeList[67]="1003442$1$0$0";
-
-
-        params.put("nodeCodeList",nodeCodeList);
-        // String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page"; //获取事件URL    post请求
-        String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page";  //获取事件URL    post请求
-        IClient iClient = new DefaultClient();
-        String NewUrl = URL;
-        //这种已经在配置文件里面安排了账号ip以及密码
-        GeneralRequest generalRequest = new GeneralRequest(NewUrl, Method.POST);
-        System.out.println(NewUrl);
-        generalRequest.header("Content-Type", " application/json");
-        generalRequest.body(JSON.toJSONString(params));
-        GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
-        return    generalResponse;
-    }
-
-
-    public String CountTimes(Map<String, Object> params1 ) throws ClientException {
-        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-        Calendar c = Calendar.getInstance();
-        Date date = new Date();
-        c.setTime(date);
-        c.set(Calendar.HOUR, 0);
-        c.set(Calendar.MINUTE, 0);
-        c.set(Calendar.SECOND, 0);
-        Date A = c.getTime();
-        String formatA = format.format(A);
-        c.set(Calendar.HOUR, +24);
-        Date d = c.getTime();
-        String formatD = format.format(d);
-        Map<String, Object> params = new HashMap<>();
-        params.put("alarmStartDateString",formatA);
-        params.put("alarmEndDateString",formatD);
-        if (StringUtilsWork.isNotEmpty( (String) params1.get("alarmStartDateString"))){
-            params.put("alarmStartDateString",(String) params1.get("alarmStartDateString"));
-            params.put("alarmEndDateString",(String) params1.get("alarmEndDateString"));
-        }
-        params.put("alarmType",303);
-        params.put("dbType",0);
-        params.put("deviceCategory",1);
-        String[]  nodeCodeList=  new String[68];
-        nodeCodeList[0]="1002874$1$0$0";
-        nodeCodeList[1]="1002875$1$0$0";
-        nodeCodeList[0]="1002876$1$0$0";
-        nodeCodeList[0]="1002877$1$0$0";
-        nodeCodeList[0]="1002878$1$0$0";
-        nodeCodeList[0]="1002879$1$0$0";
-        nodeCodeList[0]="1002880$1$0$0";
-        nodeCodeList[0]="1002881$1$0$0";
-        nodeCodeList[0]="1002882$1$0$0";
-        nodeCodeList[0]="1002883$1$0$0";
-        nodeCodeList[10]="1002884$1$0$0";
-        nodeCodeList[11]="1002885$1$0$0";
-        nodeCodeList[12]="1002886$1$0$0";
-        nodeCodeList[13]="1002887$1$0$0";
-        nodeCodeList[14]="1002888$1$0$0";
-        nodeCodeList[15]="1002889$1$0$0";
-        nodeCodeList[16]="1002890$1$0$0";
-        nodeCodeList[17]="1002891$1$0$0";
-        nodeCodeList[18]="1002892$1$0$0";
-        nodeCodeList[19]="1002893$1$0$0";
-        nodeCodeList[20]="1002894$1$0$0";
-        nodeCodeList[21]="1002895$1$0$0";
-        nodeCodeList[22]="1002896$1$0$0";
-        nodeCodeList[23]="1002897$1$0$0";
-        nodeCodeList[24]="1002898$1$0$0";
-        nodeCodeList[25]="1002899$1$0$0";
-        nodeCodeList[26]="1002900$1$0$0";
-        nodeCodeList[27]= "1002901$1$0$0";
-        nodeCodeList[28]="1002902$1$0$0";
-        nodeCodeList[29]="1002903$1$0$0";
-        nodeCodeList[30]="1002904$1$0$0";
-        nodeCodeList[31]="1002905$1$0$0";
-        nodeCodeList[32]="1002906$1$0$0";
-        nodeCodeList[33]="1002907$1$0$0";
-        nodeCodeList[34]="1002908$1$0$0";
-        nodeCodeList[35]="1002909$1$0$0";
-        nodeCodeList[36]="1002910$1$0$0";
-        nodeCodeList[37]="1002911$1$0$0";
-        nodeCodeList[38]="1002912$1$0$0";
-        nodeCodeList[39]="1002913$1$0$0";
-        nodeCodeList[40]="1002939$1$0$0";
-        nodeCodeList[41]="1002939$1$0$1";
-        nodeCodeList[42]="1002939$1$0$2";
-        nodeCodeList[43]="1002939$1$0$3";
-        nodeCodeList[44]="1002939$1$0$4";
-        nodeCodeList[45]="1002939$1$0$5";
-        nodeCodeList[46]="1002939$1$0$6";
-        nodeCodeList[47]="1002939$1$0$7";
-        nodeCodeList[48]="1002939$1$0$8";
-        nodeCodeList[49]="1002939$1$0$9";
-        nodeCodeList[50]="1002940$1$0$0";
-        nodeCodeList[51]="1002940$1$0$1";
-        nodeCodeList[52]="1002940$1$0$2";
-        nodeCodeList[53]="1002940$1$0$3";
-        nodeCodeList[54]="1002940$1$0$4";
-        nodeCodeList[55]="1002940$1$0$5";
-        nodeCodeList[56]="1002940$1$0$6";
-        nodeCodeList[57]="1002940$1$0$7";
-        nodeCodeList[58]="1002939$1$0$10";
-        nodeCodeList[59]="1002939$1$0$11";
-        nodeCodeList[60]="1002939$1$0$12";
-        nodeCodeList[61]="1002939$1$0$13";
-        nodeCodeList[62]="1002939$1$0$14";
-        nodeCodeList[63]="1002939$1$0$15";
-        //洗消
-        nodeCodeList[64]="1002871$1$0$0";
-        nodeCodeList[65]="1002872$1$0$0";
-        nodeCodeList[66]="1002873$1$0$0";
-        //大门
-        nodeCodeList[67]="1003442$1$0$0";
-
-        params.put("nodeCodeList",nodeCodeList);
-        String URL = "/evo-apigw/evo-event/1.0.0/alarm-record/count-num";  //获取事件URL    post请求
-        IClient iClient = new DefaultClient();
-        String NewUrl = URL ;
-        System.out.println("开始执行");
-        //这种已经在配置文件里面安排了账号ip以及密码
-        GeneralRequest generalRequest = new GeneralRequest(NewUrl, Method.POST);
-        System.out.println(NewUrl);
-        generalRequest.header("Content-Type", " application/json");
-        System.out.println(JSON.toJSONString(params));
-        //里面是
-        generalRequest.body(JSON.toJSONString(params));
-        //发起请求处理应答
-        GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
-        System.out.println("执行结束");
-        JSONObject jsonObject = JSONObject.fromObject(generalResponse.getResult());
-        Object data = jsonObject.get("data");
-        JSONObject jsonObject1 = JSONObject.fromObject(data);
-        System.out.println(jsonObject1);
-        return jsonObject1.get("value").toString();
-    }
-}
-

+ 1 - 6
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ClientController/ClientPersonManageController.java

@@ -14,12 +14,11 @@ import org.springframework.web.bind.annotation.RestController;
 
 import java.util.Date;
 import java.util.Map;
-
+//门禁是不一样的
 @RestController
 @RequestMapping("person")
 
 public class ClientPersonManageController {
-
     /*
          * @param params
          *   下面是前端提交的参数 直接让她写死了   这个是查不同部门的人的接口
@@ -119,8 +118,4 @@ public class ClientPersonManageController {
         return generalResponse;
     }
 
-
-
-
-
 }

+ 4 - 3
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ClientController/ClientAccidentController.java

@@ -13,11 +13,10 @@ import org.springframework.web.bind.annotation.RestController;
 
 import java.util.Map;
 
-
+//其实可以整合到一起去了
 @RestController
 @RequestMapping("/accident")
-
-public class ClientAccidentController {
+public class ClientXixiaoController {
 
     /**
      * 洗消数据查询的接口,三个洗消的摄像头是固定的
@@ -28,6 +27,7 @@ public class ClientAccidentController {
      */
     @RequestMapping("/accident_record_xixiao")
     public GeneralResponse getAccidentRecord(@RequestBody Map<String, Object> params) throws ClientException {
+
         String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page";  //获取事件URL    post请求
         IClient iClient = new DefaultClient();
         System.out.println("开始执行");
@@ -41,6 +41,7 @@ public class ClientAccidentController {
         GeneralResponse generalResponse = iClient.doAction(generalRequest, generalRequest.getResponseClass());
         System.out.println("执行结束");
         return generalResponse;
+
     }
 
     /**

+ 5 - 134
huimv-farm-video/src/main/java/com/huimv/video/dhicc/ScreenController/ScreenSiZhuController.java

@@ -8,6 +8,7 @@ import com.dahuatech.icc.oauth.http.IClient;
 import com.dahuatech.icc.oauth.model.v202010.GeneralRequest;
 import com.dahuatech.icc.oauth.model.v202010.GeneralResponse;
 
+import com.huimv.video.dhicc.icc.CommonConstant;
 import com.huimv.video.dhicc.result.R;
 import com.huimv.video.dhicc.util.GetResponse;
 import net.sf.json.JSONObject;
@@ -42,9 +43,6 @@ public class ScreenSiZhuController {
         }
 
 
-
-
-
     /**
      * xuyao   直接都写在这里了
      *
@@ -122,71 +120,8 @@ public class ScreenSiZhuController {
                  params.put("alarmType",303);
                  params.put("dbType",0);
                  params.put("deviceCategory",1);
-                 String[]  nodeCodeList=  new String[64];
-                 nodeCodeList[0]="1002874$1$0$0"    ;
-                 nodeCodeList[1]="1002875$1$0$0"      ;
-                 nodeCodeList[0]="1002876$1$0$0"     ;
-                 nodeCodeList[0]="1002877$1$0$0"       ;
-                 nodeCodeList[0]="1002878$1$0$0"      ;
-                 nodeCodeList[0]="1002879$1$0$0"     ;
-                 nodeCodeList[0]="1002880$1$0$0"      ;
-                 nodeCodeList[0]="1002881$1$0$0"      ;
-                 nodeCodeList[0]="1002882$1$0$0"     ;
-                 nodeCodeList[0]="1002883$1$0$0"    ;
-                 nodeCodeList[10]="1002884$1$0$0"   ;
-                 nodeCodeList[11]="1002885$1$0$0"   ;
-                 nodeCodeList[12]="1002886$1$0$0"      ;
-                 nodeCodeList[13]="1002887$1$0$0"     ;
-                 nodeCodeList[14]="1002888$1$0$0"     ;
-                 nodeCodeList[15]="1002889$1$0$0"   ;
-                 nodeCodeList[16]="1002890$1$0$0"   ;
-                 nodeCodeList[17]="1002891$1$0$0"   ;
-                 nodeCodeList[18]="1002892$1$0$0"   ;
-                 nodeCodeList[19]="1002893$1$0$0"     ;
-                 nodeCodeList[20]="1002894$1$0$0"     ;
-                 nodeCodeList[21]="1002895$1$0$0"    ;
-                 nodeCodeList[22]="1002896$1$0$0"      ;
-                 nodeCodeList[23]="1002897$1$0$0"      ;
-                 nodeCodeList[24]="1002898$1$0$0"   ;
-                 nodeCodeList[25]="1002899$1$0$0"     ;
-                 nodeCodeList[26]="1002900$1$0$0"      ;
-                 nodeCodeList[27]= "1002901$1$0$0"     ;
-                 nodeCodeList[28]="1002902$1$0$0"       ;
-                 nodeCodeList[29]="1002903$1$0$0"     ;
-                 nodeCodeList[30]="1002904$1$0$0"     ;
-                 nodeCodeList[31]="1002905$1$0$0"    ;
-                 nodeCodeList[32]="1002906$1$0$0"     ;
-                 nodeCodeList[33]="1002907$1$0$0"     ;
-                 nodeCodeList[34]="1002908$1$0$0"     ;
-                 nodeCodeList[35]="1002909$1$0$0"    ;
-                 nodeCodeList[36]="1002910$1$0$0"     ;
-                 nodeCodeList[37]="1002911$1$0$0"    ;
-                 nodeCodeList[38]="1002912$1$0$0"    ;
-                 nodeCodeList[39]="1002913$1$0$0"    ;
-                 nodeCodeList[40]="1002939$1$0$0"     ;
-                 nodeCodeList[41]="1002939$1$0$1"   ;
-                 nodeCodeList[42]="1002939$1$0$2"   ;
-                 nodeCodeList[43]="1002939$1$0$3"    ;
-                 nodeCodeList[44]="1002939$1$0$4"    ;
-                 nodeCodeList[45]="1002939$1$0$5"     ;
-                 nodeCodeList[46]="1002939$1$0$6"      ;
-                 nodeCodeList[47]="1002939$1$0$7"   ;
-                 nodeCodeList[48]="1002939$1$0$8"   ;
-                 nodeCodeList[49]="1002939$1$0$9"    ;
-                 nodeCodeList[50]="1002940$1$0$0"     ;
-                 nodeCodeList[51]="1002940$1$0$1"   ;
-                 nodeCodeList[52]="1002940$1$0$2";
-                 nodeCodeList[53]="1002940$1$0$3";
-                 nodeCodeList[54]="1002940$1$0$4";
-                 nodeCodeList[55]="1002940$1$0$5";
-                 nodeCodeList[56]="1002940$1$0$6";
-                 nodeCodeList[57]="1002940$1$0$7";
-                 nodeCodeList[58]="1002939$1$0$10";
-                 nodeCodeList[59]="1002939$1$0$11";
-                 nodeCodeList[60]="1002939$1$0$12";
-                 nodeCodeList[61]="1002939$1$0$13";
-                 nodeCodeList[62]="1002939$1$0$14";
-                 nodeCodeList[63]="1002939$1$0$15";
+                 //死猪通道
+                 String[]  nodeCodeList= CommonConstant.SIZhuChannle;
                  params.put("nodeCodeList",nodeCodeList);
                  String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page"; //获取事件URL    post请求
                  IClient iClient = new DefaultClient();
@@ -227,73 +162,9 @@ public class ScreenSiZhuController {
         params.put("alarmType",303);
         params.put("dbType",0);
         params.put("deviceCategory",1);
-        String[]  nodeCodeList=  new String[64];
-        nodeCodeList[0]="1002874$1$0$0";
-        nodeCodeList[1]="1002875$1$0$0";
-        nodeCodeList[0]="1002876$1$0$0";
-        nodeCodeList[0]="1002877$1$0$0";
-        nodeCodeList[0]="1002878$1$0$0";
-        nodeCodeList[0]="1002879$1$0$0";
-        nodeCodeList[0]="1002880$1$0$0";
-        nodeCodeList[0]="1002881$1$0$0";
-        nodeCodeList[0]="1002882$1$0$0";
-        nodeCodeList[0]="1002883$1$0$0";
-        nodeCodeList[10]="1002884$1$0$0";
-        nodeCodeList[11]="1002885$1$0$0";
-        nodeCodeList[12]="1002886$1$0$0";
-        nodeCodeList[13]="1002887$1$0$0";
-        nodeCodeList[14]="1002888$1$0$0";
-        nodeCodeList[15]="1002889$1$0$0";
-        nodeCodeList[16]="1002890$1$0$0";
-        nodeCodeList[17]="1002891$1$0$0";
-        nodeCodeList[18]="1002892$1$0$0";
-        nodeCodeList[19]="1002893$1$0$0";
-        nodeCodeList[20]="1002894$1$0$0";
-        nodeCodeList[21]="1002895$1$0$0";
-        nodeCodeList[22]="1002896$1$0$0";
-        nodeCodeList[23]="1002897$1$0$0";
-        nodeCodeList[24]="1002898$1$0$0";
-        nodeCodeList[25]="1002899$1$0$0";
-        nodeCodeList[26]="1002900$1$0$0";
-        nodeCodeList[27]= "1002901$1$0$0";
-        nodeCodeList[28]="1002902$1$0$0";
-        nodeCodeList[29]="1002903$1$0$0";
-        nodeCodeList[30]="1002904$1$0$0";
-        nodeCodeList[31]="1002905$1$0$0";
-        nodeCodeList[32]="1002906$1$0$0";
-        nodeCodeList[33]="1002907$1$0$0";
-        nodeCodeList[34]="1002908$1$0$0";
-        nodeCodeList[35]="1002909$1$0$0";
-        nodeCodeList[36]="1002910$1$0$0"     ;
-        nodeCodeList[37]="1002911$1$0$0"    ;
-        nodeCodeList[38]="1002912$1$0$0"    ;
-        nodeCodeList[39]="1002913$1$0$0"    ;
-        nodeCodeList[40]="1002939$1$0$0"     ;
-        nodeCodeList[41]="1002939$1$0$1"   ;
-        nodeCodeList[42]="1002939$1$0$2"   ;
-        nodeCodeList[43]="1002939$1$0$3"    ;
-        nodeCodeList[44]="1002939$1$0$4"    ;
-        nodeCodeList[45]="1002939$1$0$5"     ;
-        nodeCodeList[46]="1002939$1$0$6"      ;
-        nodeCodeList[47]="1002939$1$0$7"   ;
-        nodeCodeList[48]="1002939$1$0$8"   ;
-        nodeCodeList[49]="1002939$1$0$9"    ;
-        nodeCodeList[50]="1002940$1$0$0"     ;
-        nodeCodeList[51]="1002940$1$0$1"   ;
-        nodeCodeList[52]="1002940$1$0$2";
-        nodeCodeList[53]="1002940$1$0$3";
-        nodeCodeList[54]="1002940$1$0$4";
-        nodeCodeList[55]="1002940$1$0$5";
-        nodeCodeList[56]="1002940$1$0$6";
-        nodeCodeList[57]="1002940$1$0$7";
-        nodeCodeList[58]="1002939$1$0$10";
-        nodeCodeList[59]="1002939$1$0$11";
-        nodeCodeList[60]="1002939$1$0$12";
-        nodeCodeList[61]="1002939$1$0$13";
-        nodeCodeList[62]="1002939$1$0$14";
-        nodeCodeList[63]="1002939$1$0$15";
+        //死猪通道
+        String[]  nodeCodeList= CommonConstant.SIZhuChannle;
         params.put("nodeCodeList",nodeCodeList);
-       // String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page"; //获取事件URL    post请求
         String URL = "/evo-apigw/evo-event/1.2.0/alarm-record/page";  //获取事件URL    post请求
         IClient iClient = new DefaultClient();
         String NewUrl = URL;

文件差异内容过多而无法显示
+ 17 - 0
huimv-farm-video/src/main/java/com/huimv/video/dhicc/icc/CommonConstant.java


+ 4 - 3
huimv-farm-video/src/main/java/com/huimv/video/dhicc/timmer/SysTelcomEnentTimmer.java

@@ -28,6 +28,7 @@ public class SysTelcomEnentTimmer {
 
        //每小时执行一次
        @Scheduled(cron = " 0 */59 * * * ? ")
+       //@Scheduled(cron = " 0/50 * * * * ? ")
        private void updateBox() {
            //获得设备列表 查找烘干数据
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@@ -40,7 +41,7 @@ public class SysTelcomEnentTimmer {
            for (String deviceId : collect) {
                Calendar TimeDeviceId = Calendar.getInstance();
                TimeDeviceId.setTime(new Date());
-               TimeDeviceId.add(Calendar.HOUR, -3);
+               TimeDeviceId.add(Calendar.HOUR, -300);
                Date began1time = TimeDeviceId.getTime();
                String startTime1 = format.format(began1time);
                String endTime1 = format.format(new Date());
@@ -51,7 +52,7 @@ public class SysTelcomEnentTimmer {
                List<SysTelecom> sysTelecoms = sysTelecomMapper.selectList(wrapper);//System.out.println(sysTelecoms);
                for (SysTelecom sysTelecom : sysTelecoms) {
                     if( Double.parseDouble(sysTelecom.getTemp())>50){
-                       // System.out.println("温度"+sysTelecom.getTemp()+sysTelecom.getDeviceId()+sysTelecom.getTimestamp());
+                        System.out.println("温度"+sysTelecom.getTemp()+sysTelecom.getDeviceId()+sysTelecom.getTimestamp());
                         //产生时间段
                         Calendar eventTime = Calendar.getInstance();
                         eventTime.setTime(sysTelecom.getTimestamp());
@@ -66,7 +67,7 @@ public class SysTelcomEnentTimmer {
                                 .eq(SysTelecomEvent::getDeviceId,sysTelecom.getDeviceId())
                                 .eq(SysTelecomEvent::getFarmId,sysTelecom.getFarmId())
                                 .between(SysTelecomEvent::getEventTime, EventStartTime, EventEndTime));
-                       // System.out.println("插结果"+count);
+                       System.out.println("插结果"+count);
                         if(count==0){
                            // System.out.println("保存了一条");
                             SysTelecomEvent sysTelecomEvent = new SysTelecomEvent();

+ 5 - 141
huimv-farm-video/src/main/java/com/huimv/video/dhicc/util/GetResponse.java

@@ -8,6 +8,7 @@ import com.dahuatech.icc.oauth.http.IClient;
 import com.dahuatech.icc.oauth.model.v202010.GeneralRequest;
 import com.dahuatech.icc.oauth.model.v202010.GeneralResponse;
 
+import com.huimv.video.dhicc.icc.CommonConstant;
 import com.huimv.video.dhicc.result.R;
 import net.sf.json.JSONObject;
 
@@ -269,72 +270,8 @@ public class GetResponse {
         params.put("alarmType",303);
         params.put("dbType",0);
         params.put("deviceCategory",1);
-        String[]  nodeCodeList=  new String[64];
-        nodeCodeList[0]="1002874$1$0$0";
-        nodeCodeList[1]="1002875$1$0$0";
-        nodeCodeList[0]="1002876$1$0$0";
-        nodeCodeList[0]="1002877$1$0$0";
-        nodeCodeList[0]="1002878$1$0$0";
-        nodeCodeList[0]="1002879$1$0$0";
-        nodeCodeList[0]="1002880$1$0$0";
-        nodeCodeList[0]="1002881$1$0$0";
-        nodeCodeList[0]="1002882$1$0$0";
-        nodeCodeList[0]="1002883$1$0$0";
-        nodeCodeList[10]="1002884$1$0$0";
-        nodeCodeList[11]="1002885$1$0$0";
-        nodeCodeList[12]="1002886$1$0$0";
-        nodeCodeList[13]="1002887$1$0$0";
-        nodeCodeList[14]="1002888$1$0$0";
-        nodeCodeList[15]="1002889$1$0$0";
-        nodeCodeList[16]="1002890$1$0$0";
-        nodeCodeList[17]="1002891$1$0$0";
-        nodeCodeList[18]="1002892$1$0$0";
-        nodeCodeList[19]="1002893$1$0$0";
-        nodeCodeList[20]="1002894$1$0$0";
-        nodeCodeList[21]="1002895$1$0$0";
-        nodeCodeList[22]="1002896$1$0$0";
-        nodeCodeList[23]="1002897$1$0$0";
-        nodeCodeList[24]="1002898$1$0$0";
-        nodeCodeList[25]="1002899$1$0$0";
-        nodeCodeList[26]="1002900$1$0$0";
-        nodeCodeList[27]="1002901$1$0$0";
-        nodeCodeList[28]="1002902$1$0$0";
-        nodeCodeList[29]="1002903$1$0$0";
-        nodeCodeList[30]="1002904$1$0$0";
-        nodeCodeList[31]="1002905$1$0$0";
-        nodeCodeList[32]="1002906$1$0$0";
-        nodeCodeList[33]="1002907$1$0$0";
-        nodeCodeList[34]="1002908$1$0$0";
-        nodeCodeList[35]="1002909$1$0$0";
-        nodeCodeList[36]="1002910$1$0$0";
-        nodeCodeList[37]="1002911$1$0$0";
-        nodeCodeList[38]="1002912$1$0$0";
-        nodeCodeList[39]="1002913$1$0$0";
-        nodeCodeList[40]="1002939$1$0$0";
-        nodeCodeList[41]="1002939$1$0$1";
-        nodeCodeList[42]="1002939$1$0$2";
-        nodeCodeList[43]="1002939$1$0$3";
-        nodeCodeList[44]="1002939$1$0$4";
-        nodeCodeList[45]="1002939$1$0$5";
-        nodeCodeList[46]="1002939$1$0$6";
-        nodeCodeList[47]="1002939$1$0$7";
-        nodeCodeList[48]="1002939$1$0$8";
-        nodeCodeList[49]="1002939$1$0$9";
-        nodeCodeList[50]="1002940$1$0$0";
-        nodeCodeList[51]="1002940$1$0$1";
-        nodeCodeList[52]="1002940$1$0$2";
-        nodeCodeList[53]="1002940$1$0$3";
-        nodeCodeList[54]="1002940$1$0$4";
-        nodeCodeList[55]="1002940$1$0$5";
-        nodeCodeList[56]="1002940$1$0$6";
-        nodeCodeList[57]="1002940$1$0$7";
-        nodeCodeList[58]="1002939$1$0$10";
-        nodeCodeList[59]="1002939$1$0$11";
-        nodeCodeList[60]="1002939$1$0$12";
-        nodeCodeList[61]="1002939$1$0$13";
-        nodeCodeList[62]="1002939$1$0$14";
-        nodeCodeList[63]="1002939$1$0$15";
-
+        //死猪通道
+        String[]  nodeCodeList= CommonConstant.SIZhuChannle;
         params.put("nodeCodeList",nodeCodeList);
         String URL = "/evo-apigw/evo-event/1.0.0/alarm-record/count-num";  //获取事件URL    post请求
         IClient iClient = new DefaultClient();
@@ -374,72 +311,8 @@ public class GetResponse {
         params.put("alarmType",303);
         params.put("dbType",0);
         params.put("deviceCategory",1);
-        String[]  nodeCodeList=  new String[64];
-        nodeCodeList[0]="1002874$1$0$0";
-        nodeCodeList[1]="1002875$1$0$0";
-        nodeCodeList[0]="1002876$1$0$0";
-        nodeCodeList[0]="1002877$1$0$0";
-        nodeCodeList[0]="1002878$1$0$0";
-        nodeCodeList[0]="1002879$1$0$0";
-        nodeCodeList[0]="1002880$1$0$0";
-        nodeCodeList[0]="1002881$1$0$0";
-        nodeCodeList[0]="1002882$1$0$0";
-        nodeCodeList[0]="1002883$1$0$0";
-        nodeCodeList[10]="1002884$1$0$0";
-        nodeCodeList[11]="1002885$1$0$0";
-        nodeCodeList[12]="1002886$1$0$0";
-        nodeCodeList[13]="1002887$1$0$0";
-        nodeCodeList[14]="1002888$1$0$0";
-        nodeCodeList[15]="1002889$1$0$0";
-        nodeCodeList[16]="1002890$1$0$0";
-        nodeCodeList[17]="1002891$1$0$0";
-        nodeCodeList[18]="1002892$1$0$0";
-        nodeCodeList[19]="1002893$1$0$0";
-        nodeCodeList[20]="1002894$1$0$0";
-        nodeCodeList[21]="1002895$1$0$0";
-        nodeCodeList[22]="1002896$1$0$0";
-        nodeCodeList[23]="1002897$1$0$0";
-        nodeCodeList[24]="1002898$1$0$0";
-        nodeCodeList[25]="1002899$1$0$0";
-        nodeCodeList[26]="1002900$1$0$0";
-        nodeCodeList[27]="1002901$1$0$0";
-        nodeCodeList[28]="1002902$1$0$0";
-        nodeCodeList[29]="1002903$1$0$0";
-        nodeCodeList[30]="1002904$1$0$0";
-        nodeCodeList[31]="1002905$1$0$0";
-        nodeCodeList[32]="1002906$1$0$0";
-        nodeCodeList[33]="1002907$1$0$0";
-        nodeCodeList[34]="1002908$1$0$0";
-        nodeCodeList[35]="1002909$1$0$0";
-        nodeCodeList[36]="1002910$1$0$0";
-        nodeCodeList[37]="1002911$1$0$0";
-        nodeCodeList[38]="1002912$1$0$0";
-        nodeCodeList[39]="1002913$1$0$0";
-        nodeCodeList[40]="1002939$1$0$0";
-        nodeCodeList[41]="1002939$1$0$1";
-        nodeCodeList[42]="1002939$1$0$2";
-        nodeCodeList[43]="1002939$1$0$3";
-        nodeCodeList[44]="1002939$1$0$4";
-        nodeCodeList[45]="1002939$1$0$5";
-        nodeCodeList[46]="1002939$1$0$6";
-        nodeCodeList[47]="1002939$1$0$7";
-        nodeCodeList[48]="1002939$1$0$8";
-        nodeCodeList[49]="1002939$1$0$9";
-        nodeCodeList[50]="1002940$1$0$0";
-        nodeCodeList[51]="1002940$1$0$1";
-        nodeCodeList[52]="1002940$1$0$2";
-        nodeCodeList[53]="1002940$1$0$3";
-        nodeCodeList[54]="1002940$1$0$4";
-        nodeCodeList[55]="1002940$1$0$5";
-        nodeCodeList[56]="1002940$1$0$6";
-        nodeCodeList[57]="1002940$1$0$7";
-        nodeCodeList[58]="1002939$1$0$10";
-        nodeCodeList[59]="1002939$1$0$11";
-        nodeCodeList[60]="1002939$1$0$12";
-        nodeCodeList[61]="1002939$1$0$13";
-        nodeCodeList[62]="1002939$1$0$14";
-        nodeCodeList[63]="1002939$1$0$15";
-
+        //死猪的通道
+        String[]  nodeCodeList= CommonConstant.SIZhuChannle;
         params.put("nodeCodeList",nodeCodeList);
         String URL = "/evo-apigw/evo-event/1.0.0/alarm-record/count-num";  //获取事件URL    post请求
         IClient iClient = new DefaultClient();
@@ -463,9 +336,6 @@ public class GetResponse {
     }
 
 
-
-
-
     public Object SendMassagePost(String param , String Url , String chooseMethod   ) throws ClientException {
         IClient iClient = new DefaultClient();
         System.out.println("开始执行");
@@ -478,10 +348,4 @@ public class GetResponse {
 
     }
 
-
-
-
-
-
-
 }