|  |  | @ -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,7 +667,22 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public int updateDcEvent(DcEvent dcEvent) { | 
			
		
	
		
			
				
					|  |  |  |         DcEvent oldEvent = selectEventSubclassById(dcEvent.getEventType().intValue(), dcEvent.getId()); | 
			
		
	
		
			
				
					|  |  |  | /*        //事件类型校验
 | 
			
		
	
		
			
				
					|  |  |  |         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.getId()); | 
			
		
	
		
			
				
					|  |  |  |         dcEvent.setUpdateTime(DateUtils.getNowDate()); | 
			
		
	
		
			
				
					|  |  |  |         int i7 = dcEventMapper.updateDcEvent(dcEvent); | 
			
		
	
		
			
				
					|  |  |  |         if (i7 > 0) { | 
			
		
	
	
		
			
				
					|  |  | @ -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); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -830,14 +850,15 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 获取事件以及子类详细信息 | 
			
		
	
		
			
				
					|  |  |  |      * | 
			
		
	
		
			
				
					|  |  |  |      * @param eventType | 
			
		
	
		
			
				
					|  |  |  |      * @param | 
			
		
	
		
			
				
					|  |  |  |      * @param id | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public DcEvent selectEventSubclassById(int eventType, String id) { | 
			
		
	
		
			
				
					|  |  |  |     public DcEvent selectEventSubclassById(String id) { | 
			
		
	
		
			
				
					|  |  |  |         //
 | 
			
		
	
		
			
				
					|  |  |  |         DcEvent dcEvent = dcEventMapper.selectDcEventById(id); | 
			
		
	
		
			
				
					|  |  |  |         int eventType = Math.toIntExact(dcEvent.getEventType()); | 
			
		
	
		
			
				
					|  |  |  |         List<DcProcessConfig> processConfigList = dcProcessConfigMapper.selectDcProcessConfigByEventType(Math.toIntExact(dcEvent.getEventType())); | 
			
		
	
		
			
				
					|  |  |  |         dcEvent.setProcessConfigList(processConfigList); | 
			
		
	
		
			
				
					|  |  |  |         switch (eventType) { | 
			
		
	
	
		
			
				
					|  |  | 
 |