|  |  | @ -1125,52 +1125,72 @@ public class ImsDutyMainServiceImpl extends ServiceImpl<ImsDutyMainMapper, ImsDu | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (rec.getDelayStatus().equals(CARRY_DELAY_STATUS.getStatus())){ |  |  |  |                 if (rec.getDelayStatus().equals(CARRY_DELAY_STATUS.getStatus())){ | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //如果是接班,算接班的班组+1
 |  |  |  |                     //如果是接班,算接班的班组+1
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isEmpty(collect)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         continue; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                     List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); |  |  |  |                     DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     troubleRunReport.setDelayChangeShifts(troubleRunReport.getDelayChangeShifts()+1); |  |  |  |                     troubleRunReport.setDelayChangeShifts(troubleRunReport.getDelayChangeShifts()+1); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }else if (rec.getDelayStatus().equals(HAND_DELAY_STATUS.getStatus())) { |  |  |  |                 }else if (rec.getDelayStatus().equals(HAND_DELAY_STATUS.getStatus())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //如果是交班延迟,算当前的班组+1
 |  |  |  |                     //如果是交班延迟,算当前的班组+1
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isEmpty(handerCollect)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         continue; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                     List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     DutyRunReportVO handerRunRepor = handerRunReportList.get(0); |  |  |  |                     DutyRunReportVO handerRunRepor = handerRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     handerRunRepor.setDelayChangeShifts(handerRunRepor.getDelayChangeShifts()+1); |  |  |  |                     handerRunRepor.setDelayChangeShifts(handerRunRepor.getDelayChangeShifts()+1); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }else { |  |  |  |                 }else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //交接班延迟,交接班组都+1
 |  |  |  |                     //交接班延迟,交接班组都+1
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isNotEmpty(collect)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                     List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); |  |  |  |                     DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     troubleRunReport.setDelayChangeShifts(troubleRunReport.getDelayChangeShifts()+1); |  |  |  |                     troubleRunReport.setDelayChangeShifts(troubleRunReport.getDelayChangeShifts()+1); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isNotEmpty(handerCollect)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                     List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     DutyRunReportVO handerRunRepor = handerRunReportList.get(0); |  |  |  |                     DutyRunReportVO handerRunRepor = handerRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     handerRunRepor.setDelayChangeShifts(handerRunRepor.getDelayChangeShifts()+1); |  |  |  |                     handerRunRepor.setDelayChangeShifts(handerRunRepor.getDelayChangeShifts()+1); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (CollectionUtil.isNotEmpty(exceptionList)) { |  |  |  |         if (CollectionUtil.isNotEmpty(exceptionList)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (ImsDutyRecEntity rec : exceptionList) { |  |  |  |             for (ImsDutyRecEntity rec : exceptionList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (rec.getDelayStatus().equals(CARRY_DELAY_STATUS.getStatus())){ |  |  |  |                 if (rec.getDelayStatus().equals(CARRY_DELAY_STATUS.getStatus())){ | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //如果是接班,算接班的班组+1
 |  |  |  |                     //如果是接班,算接班的班组+1
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isEmpty(collect)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         continue; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                     List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); |  |  |  |                     DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     troubleRunReport.setExceptionChangeShifts(troubleRunReport.getExceptionChangeShifts()+1); |  |  |  |                     troubleRunReport.setExceptionChangeShifts(troubleRunReport.getExceptionChangeShifts()+1); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }else if (rec.getDelayStatus().equals(HAND_DELAY_STATUS.getStatus())) { |  |  |  |                 }else if (rec.getDelayStatus().equals(HAND_DELAY_STATUS.getStatus())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //如果是交班延迟,算当前的班组+1
 |  |  |  |                     //如果是交班延迟,算当前的班组+1
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isEmpty(handerCollect)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         continue; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                     List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     DutyRunReportVO handerRunRepor = handerRunReportList.get(0); |  |  |  |                     DutyRunReportVO handerRunRepor = handerRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     handerRunRepor.setExceptionChangeShifts(handerRunRepor.getExceptionChangeShifts()+1); |  |  |  |                     handerRunRepor.setExceptionChangeShifts(handerRunRepor.getExceptionChangeShifts()+1); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }else { |  |  |  |                 }else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //交接班延迟,交接班组都+1
 |  |  |  |                     //交接班延迟,交接班组都+1
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> collect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isNotEmpty(collect)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                         List<DutyRunReportVO> troubleRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(collect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); |  |  |  |                         DutyRunReportVO troubleRunReport = troubleRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     troubleRunReport.setExceptionChangeShifts(troubleRunReport.getExceptionChangeShifts()+1); |  |  |  |                         troubleRunReport.setExceptionChangeShifts(troubleRunReport.getExceptionChangeShifts() + 1); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); |  |  |  |                     List<ImsDutyMainEntity> handerCollect = imsDutyMainEntityList.stream().filter(s -> rec.getDutyId().equals(s.getPreDutyId())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if(CollectionUtil.isNotEmpty(handerCollect)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); |  |  |  |                         List<DutyRunReportVO> handerRunReportList = dutyReportVOList.stream().filter(s -> s.getGroupId().equals(handerCollect.get(0).getDutyGroupId().toString())).collect(Collectors.toList()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         DutyRunReportVO handerRunRepor = handerRunReportList.get(0); |  |  |  |                         DutyRunReportVO handerRunRepor = handerRunReportList.get(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     handerRunRepor.setExceptionChangeShifts(handerRunRepor.getExceptionChangeShifts()+1); |  |  |  |                         handerRunRepor.setExceptionChangeShifts(handerRunRepor.getExceptionChangeShifts() + 1); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |