| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -891,7 +891,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            handleProcessEntity.setItemId(dto.getId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            handleProcessEntity.setHandleAdvice(dto.getHandleAdvice()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            handleProcessEntity.setOutHandleAdvice(dto.getOutHandleAdvice()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //当前操作人部门tyeKey
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 当前操作人部门tyeKey
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            String sendTypeKey = ""; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            log.info("处理项目-进入判断"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 吹哨
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -925,11 +925,25 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemHandleProcessService.insert(handleProcessEntity); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // 新增流转协助部门
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemDeptService.saveItemDepts(dto.getHandlerDeptId(), dto, handleProcessEntity.getId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                List<ItemCirculationDeptResultDTO> circulationDeptResultDTOS = dto.getDeptResultDTOS(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // 根据操作人部门,获取上一级部门ID
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(dto.getHandlerDeptId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                SysDeptDTO sysDeptDTO = sysDeptInfo.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                sendTypeKey = sysDeptDTO.getTypeKey(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // 手动拼接流转协助部门
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ItemCirculationDeptResultDTO itemCirculationDeptResultDTO = new ItemCirculationDeptResultDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemCirculationDeptResultDTO.setDeptId(sysDeptDTO.getPid()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemCirculationDeptResultDTO.setDeptName(sysDeptDTO.getParentName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemCirculationDeptResultDTO.setSelected(false); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemCirculationDeptResultDTO.setTypeKey(sysDeptDTO.getTypeKey()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                List<ItemCirculationDeptResultDTO> deptList = new ArrayList<ItemCirculationDeptResultDTO>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                deptList.add(itemCirculationDeptResultDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                dto.setDeptResultDTOS(deptList); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                List<Long> newDeptIds = new ArrayList<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                for (ItemCirculationDeptResultDTO circulationDto : circulationDeptResultDTOS) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    newDeptIds.add(circulationDto.getDeptId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                newDeptIds.add(sysDeptDTO.getPid()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                TreeSet<Long> longTreeSet = new TreeSet<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                longTreeSet.addAll(oldDeptIds); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                longTreeSet.addAll(newDeptIds); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -1042,6 +1056,12 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            itemEntity.setId(dto.getId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            itemEntity.setLastHandleTime(new Date()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 结案申请时,需要更新【办理人姓名】【办理人办公电话】
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(ItemHandleCategoryEnum.HANDLE_CLOSING_CASE_APPLY.getValue() == dto.getHandleCategory()){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemEntity.setHandlePeopleName(dto.getHandlePeopleName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                itemEntity.setHandlePeopleMobile(dto.getHandlePeopleMobile()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            // 初始化分类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (StringUtils.isNotBlank(dto.getCategoryId())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                EventsCategoryDTO categoryInfo = this.initCategoryInfo(dto.getCategoryId()); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |