diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java index c98aab20..6d889df3 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java @@ -900,7 +900,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { } result.put("device", device.getId()); result.put("deviceName", device.getDeviceName()); - result.put("deviceType", deviceType); + result.put("deviceType", device.getDeviceType()); processingDeviceParameters(functionId, functionList, props); @@ -930,7 +930,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { JSONObject result = new JSONObject(); result.put("device", device.getId()); result.put("deviceName", device.getDeviceName()); - result.put("deviceType", deviceType); + result.put("deviceType", device.getDeviceType()); result.put("content", UniversalEnum.RESTORE_LAST_TIME.getValue()); result.put("result", ajaxResult1B); resultArray.add(result); @@ -961,7 +961,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { errorResult.put("device", device.getId()); errorResult.put("content", UniversalEnum.THE_CORRESPONDING_TEMPLATE_CONTENT_IS_NOT_MATCHED.getValue()); errorResult.put("deviceName", device.getDeviceName()); - errorResult.put("deviceType", deviceType); + errorResult.put("deviceType", device.getDeviceType()); JSONObject result = new JSONObject(); result.put("result",errorResult); result.put("code",UniversalEnum.FIVE_HUNDRED.getNumber()); @@ -996,7 +996,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { JSONObject errorResult = new JSONObject(); errorResult.put("device", device.getId()); errorResult.put("deviceName", device.getDeviceName()); - errorResult.put("deviceType", deviceType); + errorResult.put("deviceType", device.getDeviceType()); errorResult.put("content", UniversalEnum.NO_BROADCAST_CONTENT_IS_MATCHED_PROCEDURE.getValue()); JSONObject resu = new JSONObject(); resu.put("code",UniversalEnum.FIVE_HUNDRED.getNumber()); @@ -1020,7 +1020,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { JSONObject result = new JSONObject(); result.put("device", device.getId()); result.put("deviceName", device.getDeviceName()); - result.put("deviceType", deviceType); + result.put("deviceType", device.getDeviceType()); result.put("content", params.get("text")); remark.append(UniversalEnum.RELEASE_VOICE_BROADCAST.getValue());