From 617c5eca529c99fafd01a9ee48b52763ac33c159 Mon Sep 17 00:00:00 2001 From: "Mr.Wang" Date: Tue, 25 Jun 2024 18:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=A4=B1=E8=B4=A5=E5=AD=98=E5=82=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/service/impl/DcEmergencyPlansServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 5ffe038a..e3e878cd 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 @@ -958,7 +958,11 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { errorResult.put("device", device.getId()); errorResult.put("content", "未匹配到对应的模板内容"); errorResult.put("deviceName", device.getDeviceName()); - resultArray.add(errorResult); + JSONObject result = new JSONObject(); + result.put("result",errorResult); + result.put("code",500); + result.put("msg","操作失败"); + resultArray.add(result); status = 1; remark.append("失败"); } else {