|
|
@ -6,11 +6,13 @@ 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.StakeMarkUtils; |
|
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
|
import com.ruoyi.common.utils.uuid.IdUtils; |
|
|
|
import com.ruoyi.system.service.ISysDeptService; |
|
|
|
import com.zc.business.domain.*; |
|
|
|
import com.zc.business.enums.EventSubclassEnum; |
|
|
|
import com.zc.business.enums.EventTypeEnum; |
|
|
|
import com.zc.business.enums.ValueConverter; |
|
|
|
import com.zc.business.mapper.*; |
|
|
|
import com.zc.business.service.IDcEventProcessService; |
|
|
@ -140,7 +142,6 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
|
|
|
|
String dcEventId = dcEvent.getId(); |
|
|
|
|
|
|
|
|
|
|
|
//获取事件类型
|
|
|
|
int eventType = Math.toIntExact(dcEvent.getEventType()); |
|
|
|
|
|
|
@ -666,6 +667,21 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public int updateDcEvent(DcEvent dcEvent) { |
|
|
|
/* //事件类型校验
|
|
|
|
for (EventTypeEnum value : EventTypeEnum.values()) { |
|
|
|
if (dcEvent.getEventType().toString()==value.getInfo()){ |
|
|
|
dcEvent.setEventType(Long.valueOf(value.getCode())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 事件子类校验
|
|
|
|
for (EventSubclassEnum value : EventSubclassEnum.values()) { |
|
|
|
if (value.getInfo().equals(dcEvent.getEventSubclass())){ |
|
|
|
dcEvent.setEventSubclass(value.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
//事件来源校验*/
|
|
|
|
|
|
|
|
DcEvent oldEvent = selectEventSubclassById(dcEvent.getEventType().intValue(), dcEvent.getId()); |
|
|
|
dcEvent.setUpdateTime(DateUtils.getNowDate()); |
|
|
|
int i7 = dcEventMapper.updateDcEvent(dcEvent); |
|
|
@ -752,8 +768,12 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
if (dcEvent==null){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
// 删除信息发布记录
|
|
|
|
// todo 删除信息发布记录
|
|
|
|
dcPublishManageMapper.deleteDcPublishManageEventId(id); |
|
|
|
// 删除调度记录资源
|
|
|
|
dcPublishManageMapper.deleteDisPathSource(id); |
|
|
|
//删除调度记录
|
|
|
|
dcPublishManageMapper.deleteDisPath(id); |
|
|
|
int eventType = Math.toIntExact(dcEvent.getEventType()); |
|
|
|
i7 = dcEventMapper.deleteDcEventById(id); |
|
|
|
|
|
|
|