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<>();