|
@@ -2,6 +2,7 @@ package org.thingsboard.server.controller.nanxi;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.fasterxml.jackson.databind.json.JsonMapper;
|
|
@@ -70,6 +71,11 @@ public class BridgeController {
|
|
|
JSONObject xmlJSONObj = XML.toJSONObject(strout);
|
|
|
JSONObject node1 = xmlJSONObj.getJSONObject("EventNotificationAlert");
|
|
|
JSONObject node2 = node1.getJSONObject("ANPR");
|
|
|
+ log.info("压电称重报警json1为:{}", JSON.toJSONString(xmlJSONObj));
|
|
|
+ log.info("压电称重报警json12为:{}", JSON.toJSONString(node1));
|
|
|
+ log.info("压电称重报警json13为:{}", JSON.toJSONString(node2));
|
|
|
+ log.info("压电称重报警车牌号为:{}", node2.getString("licensePlate"));
|
|
|
+ Thread.sleep(10000);
|
|
|
NxMonitorWarnData warnData = monitorWarnDataService.getWarnDataByPlate(node2.getString("licensePlate"));
|
|
|
if(!Objects.isNull(warnData)){
|
|
|
if(CollectionUtils.isEmpty(annexService.queryAnnexByContactId(warnData.getId()))){
|