|
@ -564,11 +564,15 @@ public class DcWarningServiceImpl implements IDcWarningService { |
|
|
if (UniversalEnum.SIX.getValue().equals(dcWarning.getWarningSource().toString())) { |
|
|
if (UniversalEnum.SIX.getValue().equals(dcWarning.getWarningSource().toString())) { |
|
|
return AjaxResult.error("非机预警无需转换"); |
|
|
return AjaxResult.error("非机预警无需转换"); |
|
|
} |
|
|
} |
|
|
|
|
|
String selectEventId = dcWarningMapper.selectEventId(dcWarning.getId());//验证转换的对象是否已经在事件表中存在
|
|
|
|
|
|
if (StringUtils.isNotBlank(selectEventId)){ |
|
|
|
|
|
return AjaxResult.success(); |
|
|
|
|
|
} |
|
|
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);//感知事件状态改变为已完成
|
|
|
if (updateState == UniversalEnum.ZERO.getNumber()) { |
|
|
if (updateState == UniversalEnum.ZERO.getNumber()) { |
|
|
return AjaxResult.error(UniversalEnum.OPERATION_FAILURE.getValue()); |
|
|
return AjaxResult.success(); |
|
|
} |
|
|
} |
|
|
String stakeMark = dcWarning.getStakeMark(); |
|
|
String stakeMark = dcWarning.getStakeMark(); |
|
|
DcEvent dcEvent = new DcEvent(); |
|
|
DcEvent dcEvent = new DcEvent(); |
|
|