Browse Source

修改事件确认接口中的未匹配到模板存储字段名称

develop
Mr.Wang 6 months ago
parent
commit
bdf9cd2531
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

@ -862,7 +862,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
// 说明没有匹配到设备 // 说明没有匹配到设备
JSONObject errorResult = new JSONObject(); JSONObject errorResult = new JSONObject();
errorResult.put("device",device.getId()); errorResult.put("device",device.getId());
errorResult.put("errorMessage","未匹配到对应的模板内容"); errorResult.put("content","未匹配到对应的模板内容");
resultArray.add(errorResult); resultArray.add(errorResult);
}else { }else {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
@ -892,7 +892,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
JSONObject errorResult = new JSONObject(); JSONObject errorResult = new JSONObject();
errorResult.put("device",device.getId()); errorResult.put("device",device.getId());
errorResult.put("deviceName",device.getDeviceName()); errorResult.put("deviceName",device.getDeviceName());
errorResult.put("errorMessage","未匹配到对应的广播内容"); errorResult.put("content","未匹配到对应的广播内容");
resultArray.add(errorResult); resultArray.add(errorResult);
} }
if (StringUtils.isEmpty(foundContent.getString("content"))) { if (StringUtils.isEmpty(foundContent.getString("content"))) {

Loading…
Cancel
Save