|
|
@ -782,7 +782,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
.map(String::valueOf) |
|
|
|
.collect(Collectors.joining(UniversalEnum.COMMA.getValue())); |
|
|
|
// 存储设备id 到 deviceIds 中
|
|
|
|
deviceIds.append(UniversalEnum.COLON.getNumber()); |
|
|
|
deviceIds.append(UniversalEnum.COLON.getValue()); |
|
|
|
deviceIds.append(deviceId); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
@ -875,7 +875,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat(UniversalEnum.TIME_FORMAT_ALL.getValue()); |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
remark.append(dateFormat.format(calendar.getTime())); |
|
|
|
remark.append(UniversalEnum.INVOKE.getNumber()); |
|
|
|
remark.append(UniversalEnum.INVOKE.getValue()); |
|
|
|
remark.append(device.getDeviceName()); |
|
|
|
try { |
|
|
|
if (device.getDeviceType().equals(DeviceTypeConstants.DRIVING_GUIDANCE.toString())) { |
|
|
@ -909,10 +909,10 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
|
|
|
|
if (ajaxResult.get("code").equals(UniversalEnum.TWO_HUNDRED.getNumber())) { |
|
|
|
status = UniversalEnum.ZERO.getNumber(); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getNumber()); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getValue()); |
|
|
|
} else { |
|
|
|
status = UniversalEnum.ONE.getNumber(); |
|
|
|
remark.append(UniversalEnum.LOSE.getNumber()); |
|
|
|
remark.append(UniversalEnum.LOSE.getValue()); |
|
|
|
} |
|
|
|
result.put("result", ajaxResult); |
|
|
|
resultArray.add(result); |
|
|
@ -935,10 +935,10 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
resultArray.add(result); |
|
|
|
if (ajaxResult1B.get("code").equals(UniversalEnum.TWO_HUNDRED.getNumber())) { |
|
|
|
status = UniversalEnum.ZERO.getNumber(); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getNumber()); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getValue()); |
|
|
|
} else { |
|
|
|
status = UniversalEnum.ONE.getNumber(); |
|
|
|
remark.append(UniversalEnum.LOSE.getNumber()); |
|
|
|
remark.append(UniversalEnum.LOSE.getValue()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 情报板发布全流程
|
|
|
@ -958,18 +958,18 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
JSONObject result = new JSONObject(); |
|
|
|
result.put("result",errorResult); |
|
|
|
result.put("code",UniversalEnum.FIVE_HUNDRED.getNumber()); |
|
|
|
result.put("msg",UniversalEnum.OPERATION_FAILURE.getNumber()); |
|
|
|
result.put("msg",UniversalEnum.OPERATION_FAILURE.getValue()); |
|
|
|
resultArray.add(result); |
|
|
|
status = UniversalEnum.ONE.getNumber(); |
|
|
|
remark.append(UniversalEnum.LOSE.getNumber()); |
|
|
|
remark.append(UniversalEnum.LOSE.getValue()); |
|
|
|
} else { |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
jsonObject.put("dcInfoBoardTemplate", foundContent); |
|
|
|
status = boardReleaseProcess(props, iotDeviceId, jsonObject, device, resultArray, functionList); |
|
|
|
if (status.equals(UniversalEnum.ZERO.getNumber())) { |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getNumber()); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getValue()); |
|
|
|
} else { |
|
|
|
remark.append(UniversalEnum.LOSE.getNumber()); |
|
|
|
remark.append(UniversalEnum.LOSE.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -1021,10 +1021,10 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
resultArray.add(result); |
|
|
|
if (Objects.equals(returnResult.getString("retCode"), UniversalEnum.ZERO.getValue())) { |
|
|
|
status = UniversalEnum.ZERO.getNumber(); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getNumber()); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getValue()); |
|
|
|
} else { |
|
|
|
status = UniversalEnum.ONE.getNumber(); |
|
|
|
remark.append(UniversalEnum.LOSE.getNumber()); |
|
|
|
remark.append(UniversalEnum.LOSE.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1057,10 +1057,10 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
|
|
|
|
|
if (ajaxResultState.get("code").equals(UniversalEnum.TWO_HUNDRED.getNumber()) && ajaxResult.get("code").equals(UniversalEnum.TWO_HUNDRED.getNumber())) { |
|
|
|
status = UniversalEnum.ZERO.getNumber(); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getNumber()); |
|
|
|
remark.append(UniversalEnum.SUCCESSFUL.getValue()); |
|
|
|
} else { |
|
|
|
status = UniversalEnum.ONE.getNumber(); |
|
|
|
remark.append(UniversalEnum.LOSE.getNumber()); |
|
|
|
remark.append(UniversalEnum.LOSE.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|