Browse Source

转换验证

develop
wangsixiang 4 months ago
parent
commit
652feaceb9
  1. 3
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

3
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){ dcWarning.getWarningType()==null|| dcWarning.getWarningSource()==null){
return AjaxResult.error(UniversalEnum.PARAMETER_ERROR.getValue()); return AjaxResult.error(UniversalEnum.PARAMETER_ERROR.getValue());
} }
if (dcWarning.getWarningSource()==6){
return AjaxResult.error("非机预警无需转换");
}
ArrayList<HashMap<String,Object>> hashMaps = new ArrayList<>(); ArrayList<HashMap<String,Object>> hashMaps = new ArrayList<>();
dcWarning.setUserId(SecurityUtils.getUserId()); dcWarning.setUserId(SecurityUtils.getUserId());
int updateState = dcWarningMapper.updateState(dcWarning);//感知事件状态改变为已完成 int updateState = dcWarningMapper.updateState(dcWarning);//感知事件状态改变为已完成

Loading…
Cancel
Save