Browse Source

跳过清障 事件状态验证

develop
lau572 7 months ago
parent
commit
8257d5f87a
  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

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.ruoyi.system.service.ISysDeptService;
import com.zc.business.domain.*;
@ -1430,6 +1431,9 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
if (dcEvent.getEventType() == null || (dcEvent.getEventType() != 1 && dcEvent.getEventType() != 2 && dcEvent.getEventType() != 6)){
return AjaxResult.error("该事件类型无需清障!");
}
if (dcEvent.getEventState() != null && dcEvent.getEventState() == 2){
return AjaxResult.error("该事件已结束,无法进行操作!");
}
//事件处置流程记录
DcEventProcess dcEventProcess = new DcEventProcess();

Loading…
Cancel
Save