From b8df5711fefa71959994b2577b21737c8e9f7e1b Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Wed, 24 Jul 2024 17:25:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zc/business/service/impl/DcWarningServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java index 9514538e..5740626d 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java @@ -509,7 +509,7 @@ public class DcWarningServiceImpl implements IDcWarningService dcWarning.getWarningType()==null|| dcWarning.getWarningSource()==null){ return AjaxResult.error(UniversalEnum.PARAMETER_ERROR.getValue()); } - if (dcWarning.getWarningSource()==6){ + if (UniversalEnum.SIX.getValue().equals(dcWarning.getWarningSource().toString())){ return AjaxResult.error("非机预警无需转换"); } ArrayList> hashMaps = new ArrayList<>();