| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -179,10 +179,19 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @Author sun | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @Description 调动记录 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     **/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public IcUserTransferRecordEntity saveTransferRecord(CustomerStaffInfoCacheResult staffInfoCache, IcResiUserTransferFormDTO formDTO, IcResiUserDTO resiUserDTO, IcResiUserOrgMsgResultDTO result1, IcResiUserOrgMsgResultDTO result2) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param staffInfoCache | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param formDTO | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param resiUserDTO | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param before 调动前的 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param after 调动后的房屋信息 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @return 调动记录 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public IcUserTransferRecordEntity saveTransferRecord(CustomerStaffInfoCacheResult staffInfoCache, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                                         IcResiUserTransferFormDTO formDTO, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                                         IcResiUserDTO resiUserDTO, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                                         IcResiUserOrgMsgResultDTO before, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                                                         IcResiUserOrgMsgResultDTO after) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        IcUserTransferRecordEntity recordEntity = new IcUserTransferRecordEntity(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setIcUserId(formDTO.getIcUserId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOperatorId(formDTO.getStaffId()); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -190,17 +199,17 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOperatorName(null == staffInfoCache ? "" : staffInfoCache.getRealName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldCustomerId(formDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldAgencyId(resiUserDTO.getAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldAgencyName(result1.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldAgencyName(before.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldGridId(resiUserDTO.getGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldGridName(result1.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldGridName(before.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldNeighborHoodId(resiUserDTO.getVillageId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldNeighborHoodName(result1.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldNeighborHoodName(before.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingId(resiUserDTO.getBuildId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingName(result1.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingName(before.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingUnitId(resiUserDTO.getUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingUnitName(result1.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldBuildingUnitName(before.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldHouseId(resiUserDTO.getHomeId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldHouseName(result1.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setOldHouseName(before.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setTransferTime(formDTO.getTransferTime()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        recordEntity.setRemark(formDTO.getRemark()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if ("in".equals(formDTO.getType())) { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -209,17 +218,17 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //迁入:同社区的居民,状态正常,改变了房屋  目前这三种情况 type="in";
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewCustomerId(resiUserDTO.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewAgencyId(formDTO.getNewAgencyId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewAgencyName(result2.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewAgencyName(after.getAgencyDTO().getOrganizationName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewGridId(formDTO.getNewGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewGridName(result2.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewGridName(after.getGridDTO().getGridName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewNeighborHoodId(formDTO.getNewNeighborHoodId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewNeighborHoodName(result2.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewNeighborHoodName(after.getNeighborHoodDTO().getNeighborHoodName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingId(formDTO.getNewBuildingId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingName(result2.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingName(after.getBuildingDTO().getBuildingName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingUnitId(formDTO.getNewBuildingUnitId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingUnitName(result2.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewBuildingUnitName(after.getBuildingUnitDTO().getUnitName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewHouseId(formDTO.getNewHouseId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewHouseName(result2.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            recordEntity.setNewHouseName(after.getHouseDTO().getHouseName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return recordEntity; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -341,6 +350,7 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //2.查询人员调动前的组织、网格、小区、楼栋、单元、房屋信息
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        IcResiUserOrgMsgResultDTO icResiUserOrgMsgResultDTO = getIcResiUserOrgMsgResultDTO(resiUserDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //3.查询人员调动后的组织、网格、小区、楼栋、单元、房屋信息;
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // 迁出到客户外的为空
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<IcResiUserOrgMsgResultDTO> result2 = getNewHouseInfo(formDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        CustomerStaffInfoCacheResult staffInfoCache = CustomerStaffRedis.getStaffInfo(formDTO.getCustomerId(), formDTO.getStaffId()); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |