|  | @@ -605,7 +605,7 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |     public void taskChangeForTimeWorkChange(WorkTimeChangeEvent event) {
 | 
	
		
			
				|  |  |          //修改的作息的日期
 | 
	
		
			
				|  |  | -        Date ymdDate  =  event.getDataList().get(0).getDate();
 | 
	
		
			
				|  |  | +        Date ymdDate  =  event.getDataList().get(0).getYmdDate();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //受影响的机构
 | 
	
		
			
				|  |  |          List<Long> orgIds = event.getOrgIds();
 | 
	
	
		
			
				|  | @@ -688,7 +688,7 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
 | 
	
		
			
				|  |  |          queryWrapper.lambda().in(TMonitoringRetrievalPlan::getOrgId, orgParentIds);
 | 
	
		
			
				|  |  |          queryWrapper.lambda().eq(TMonitoringRetrievalPlan::getPlanStatus, 1);
 | 
	
		
			
				|  |  |          queryWrapper.lambda().eq(TMonitoringRetrievalPlan::getIsDeleted, 0);
 | 
	
		
			
				|  |  | -        /*queryWrapper.lambda().eq(TMonitoringRetrievalPlan::getCreateType, 1);*/
 | 
	
		
			
				|  |  | +        queryWrapper.lambda().eq(TMonitoringRetrievalPlan::getCreateType, 1);
 | 
	
		
			
				|  |  |          List<TMonitoringRetrievalPlan> plans = itMonitoringRetrievalPlanService.list(queryWrapper);
 | 
	
		
			
				|  |  |          List<TMonitoringRetrievalPlan> planList = new ArrayList<>();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -700,8 +700,8 @@ public class CoreMonitoringRetrievalTaskServiceImpl extends ServiceImpl<CoreMoni
 | 
	
		
			
				|  |  |                          continue;
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                //计划的机构id不是当前机构的直属父机构,不生成任务
 | 
	
		
			
				|  |  | -                if(!p.getOrgId().equals(s.getParentId())){
 | 
	
		
			
				|  |  | +                //计划的机构id不是当前机构的直属父机构,不生成任务,计划的机构类型不是当前机构的机构类型不生成任务
 | 
	
		
			
				|  |  | +                if(!p.getOrgId().equals(s.getParentId())||!p.getOrgType().equals(s.getOrgType())){
 | 
	
		
			
				|  |  |                      continue;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  TMonitoringRetrievalPlan plan = new TMonitoringRetrievalPlan();
 |