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 35b10110..9514538e 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,6 +509,9 @@ public class DcWarningServiceImpl implements IDcWarningService dcWarning.getWarningType()==null|| dcWarning.getWarningSource()==null){ return AjaxResult.error(UniversalEnum.PARAMETER_ERROR.getValue()); } + if (dcWarning.getWarningSource()==6){ + return AjaxResult.error("非机预警无需转换"); + } ArrayList> hashMaps = new ArrayList<>(); dcWarning.setUserId(SecurityUtils.getUserId()); int updateState = dcWarningMapper.updateState(dcWarning);//感知事件状态改变为已完成