Browse Source

跳过清障 事件类型验证

develop
lau572 7 months ago
parent
commit
cff0cc6378
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -1426,6 +1426,10 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
if (i > 0) { if (i > 0) {
return AjaxResult.error("已跳过清障,无法重复操作!"); return AjaxResult.error("已跳过清障,无法重复操作!");
} }
DcEvent dcEvent = dcEventMapper.selectDcEventById(eventId);
if (dcEvent.getEventType() == null || (dcEvent.getEventType() != 1 && dcEvent.getEventType() != 2 && dcEvent.getEventType() != 6)){
return AjaxResult.error("该事件类型无需清障!");
}
//事件处置流程记录 //事件处置流程记录
DcEventProcess dcEventProcess = new DcEventProcess(); DcEventProcess dcEventProcess = new DcEventProcess();

Loading…
Cancel
Save