| 
						
						
							
								
							
						
						
					 | 
					@ -44,6 +44,7 @@ import com.epmet.service.IcUserChangeRecordService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.github.pagehelper.PageHelper; | 
					 | 
					 | 
					import com.github.pagehelper.PageHelper; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.github.pagehelper.PageInfo; | 
					 | 
					 | 
					import com.github.pagehelper.PageInfo; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j; | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.apache.commons.collections4.ListUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.apache.commons.lang3.StringUtils; | 
					 | 
					 | 
					import org.apache.commons.lang3.StringUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -246,8 +247,14 @@ public class IcUserChangeRecordServiceImpl extends BaseServiceImpl<IcUserChangeR | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } while (icUserList.size() == NumConstant.ONE_THOUSAND); | 
					 | 
					 | 
					        } while (icUserList.size() == NumConstant.ONE_THOUSAND); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //4.批量新增数据,先删后增【只删除新增节点的历史数据】
 | 
					 | 
					 | 
					        //4.批量新增数据,先删后增【只删除新增节点的历史数据】
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        baseDao.delByCustomerId(customerId, "add"); | 
					 | 
					 | 
					        //4-1.删除待处理的人员数据【这类人是指在变更记录表中不存在新增节点数据的人】
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        icUserChangeDetailedService.delByCustomerId(customerId, "add"); | 
					 | 
					 | 
					        List<String> icUserIdList = changeList.stream().map(IcUserChangeRecordEntity::getIcUserId).collect(Collectors.toList()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<List<String>> partition = ListUtils.partition(icUserIdList, NumConstant.FIVE_HUNDRED); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        partition.forEach(part -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            baseDao.delByCustomerId(customerId, "add", part); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            icUserChangeDetailedService.delByCustomerId(customerId, "add", part); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        log.info("初始变更记录数据,总条数->" + changeList.size()); | 
					 | 
					 | 
					        log.info("初始变更记录数据,总条数->" + changeList.size()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        icUserChangeRecordService.insertBatch(changeList); | 
					 | 
					 | 
					        icUserChangeRecordService.insertBatch(changeList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        log.info("初始变更记录明细数据,总条数->" + detailedList.size()); | 
					 | 
					 | 
					        log.info("初始变更记录明细数据,总条数->" + detailedList.size()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |