| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -98,22 +98,24 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //3.查询人员调动后的组织、网格、小区、楼栋、单元、房屋信息
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        IcResiUserOrgMsgFormDTO orgMsgFormDTO2 = new IcResiUserOrgMsgFormDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setCustomerId(formDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setAgencyId(formDTO.getNewAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setGridId(formDTO.getNewGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setNeighborHoodId(formDTO.getNewNeighborHoodId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setBuildingId(formDTO.getNewBuildingId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setBuildingUnitId(formDTO.getNewBuildingUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        orgMsgFormDTO2.setHouseId(formDTO.getNewHouseId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<IcResiUserOrgMsgResultDTO> result2 = govOrgOpenFeignClient.icResiUserOrgMsg(orgMsgFormDTO2); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (!result2.success() || null == result2.getData().getAgencyDTO() || null == result2.getData().getGridDTO() || null == result2.getData().getNeighborHoodDTO() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || null == result2.getData().getBuildingDTO() || null == result2.getData().getBuildingUnitDTO() || null == result2.getData().getHouseDTO()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            log.warn("查找被调动人调动后的组织、网格、小区、楼栋、单元、房屋信息失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw new RenException("9000", "获取被调动人基础信息失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<IcResiUserOrgMsgResultDTO> result2 = new Result<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if("in".equals(formDTO.getType())){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IcResiUserOrgMsgFormDTO orgMsgFormDTO2 = new IcResiUserOrgMsgFormDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setCustomerId(formDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setAgencyId(formDTO.getNewAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setGridId(formDTO.getNewGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setNeighborHoodId(formDTO.getNewNeighborHoodId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setBuildingId(formDTO.getNewBuildingId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setBuildingUnitId(formDTO.getNewBuildingUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            orgMsgFormDTO2.setHouseId(formDTO.getNewHouseId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            result2 = govOrgOpenFeignClient.icResiUserOrgMsg(orgMsgFormDTO2); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (!result2.success() || null == result2.getData().getAgencyDTO() || null == result2.getData().getGridDTO() || null == result2.getData().getNeighborHoodDTO() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    || null == result2.getData().getBuildingDTO() || null == result2.getData().getBuildingUnitDTO() || null == result2.getData().getHouseDTO()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                log.warn("查找被调动人调动后的组织、网格、小区、楼栋、单元、房屋信息失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                throw new RenException("9000", "获取被调动人基础信息失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //4.修改被调动人所属各维度信息或人员状态信息
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (formDTO.getIdEdit()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IcResiUserEntity userEntity = new IcResiUserEntity(); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -156,10 +158,12 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .append(result1.getData().getNeighborHoodDTO().getNeighborHoodName()).append("-").append(result1.getData().getBuildingDTO().getBuildingName()).append("-") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .append(result1.getData().getBuildingUnitDTO().getUnitName()).append("-").append(result1.getData().getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        changeRecordEntity.setBeforeChangeName(beforeName.toString()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        StringBuffer afterName = new StringBuffer(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        afterName.append(result2.getData().getAgencyDTO().getOrganizationName()).append("-").append(result2.getData().getGridDTO().getGridName()).append("-") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .append(result2.getData().getNeighborHoodDTO().getNeighborHoodName()).append("-").append(result2.getData().getBuildingDTO().getBuildingName()).append("-") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .append(result2.getData().getBuildingUnitDTO().getUnitName()).append("-").append(result2.getData().getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        StringBuffer afterName = new StringBuffer("-"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if ("in".equals(formDTO.getType())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            afterName.append(result2.getData().getAgencyDTO().getOrganizationName()).append("-").append(result2.getData().getGridDTO().getGridName()).append("-") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    .append(result2.getData().getNeighborHoodDTO().getNeighborHoodName()).append("-").append(result2.getData().getBuildingDTO().getBuildingName()).append("-") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    .append(result2.getData().getBuildingUnitDTO().getUnitName()).append("-").append(result2.getData().getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        changeRecordEntity.setAfterChangeName(afterName.toString()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        changeRecordEntity.setChangeTime(formDTO.getTransferTime()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        changeRecordEntity.setRemark(formDTO.getRemark()); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -186,35 +190,36 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setIcUserName(resiUserDTO.getName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOperatorName(null == staffInfoCache ? "" : staffInfoCache.getRealName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldCustomerId(formDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if ("in".equals(formDTO.getType())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewCustomerId(resiUserDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldAgencyId(resiUserDTO.getAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewAgencyId(formDTO.getNewAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldAgencyName(result1.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewAgencyName(result2.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldGridId(resiUserDTO.getGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewGridId(formDTO.getNewGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldGridName(result1.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewGridName(result2.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldNeighborHoodId(resiUserDTO.getVillageId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewNeighborHoodId(formDTO.getNewNeighborHoodId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldNeighborHoodName(result1.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewNeighborHoodName(result2.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingId(resiUserDTO.getBuildId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewBuildingId(formDTO.getNewBuildingId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingName(result1.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewBuildingName(result2.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingUnitId(resiUserDTO.getUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewBuildingUnitId(formDTO.getNewBuildingUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingUnitName(result1.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewBuildingUnitName(result2.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldHouseId(resiUserDTO.getHomeId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewHouseId(formDTO.getNewHouseId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldHouseName(result1.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setNewHouseName(result2.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setTransferTime(formDTO.getTransferTime()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setRemark(formDTO.getRemark()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if ("in".equals(formDTO.getType())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewCustomerId(resiUserDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewAgencyId(formDTO.getNewAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewAgencyName(result2.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewGridId(formDTO.getNewGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewGridName(result2.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewNeighborHoodId(formDTO.getNewNeighborHoodId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewNeighborHoodName(result2.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingId(formDTO.getNewBuildingId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingName(result2.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingUnitId(formDTO.getNewBuildingUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingUnitName(result2.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewHouseId(formDTO.getNewHouseId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewHouseName(result2.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return recordEntity; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |