diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index 6ef7a01f..1c6d7623 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -1426,6 +1426,10 @@ public class DcEventServiceImpl extends ServiceImpl impl if (i > 0) { 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();