@ -20,6 +20,7 @@ package com.epmet.service.impl;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl ;
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult ;
import com.epmet.commons.tools.enums.IcResiUserSubStatusEnum ;
import com.epmet.commons.tools.exception.EpmetErrorCode ;
import com.epmet.commons.tools.exception.EpmetException ;
import com.epmet.commons.tools.exception.RenException ;
import com.epmet.commons.tools.redis.common.CustomerOrgRedis ;
@ -388,7 +389,7 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans
dto . setCustomerId ( formDTO . getCustomerId ( ) ) ;
Result < List < IcResiCategoryStatsConfigDTO > > categoryListResult = operCustomizeOpenFeignClient . getCategoryList ( dto ) ;
if ( ! categoryListResult . success ( ) ) {
throw new Ren Exception( "人员调动, 获取客户居民类别预警配置表数据失败" ) ;
throw new Epmet Exception( EpmetErrorCode . EPMET_COMMON_OPERATION_FAIL . getCode ( ) , "获取客户居民类别预警配置表数据失败" , "获取客户居民类别预警配置异常 " ) ;
}
List < String > columns = categoryListResult . getData ( ) . stream ( ) . map ( IcResiCategoryStatsConfigDTO : : getColumnName ) . collect ( Collectors . toList ( ) ) ;
Map < String , String > map = icResiUserDao . getCategoryListMap ( columns , formDTO . getIcUserId ( ) ) ;
@ -407,7 +408,7 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans
private IcResiUserDTO getIcResiUserDTO ( String customerId , String icUserId ) {
IcResiUserDTO resiUserDTO = icResiUserDao . selectIdByIdCard ( customerId , null , icUserId ) ;
if ( null = = resiUserDTO ) {
throw new RenException ( "9000" , "人员调动失败,被调动人不存在! ") ;
throw new EpmetException ( EpmetErrorCode . EPMET_COMMON_OPERATION_FAIL . getCode ( ) , String . format ( "ic_resi_user is null customerId:%s,icUserId:%s" , customerId , icUserId ) , "当前居民不存在 ") ;
}
return resiUserDTO ;
}
@ -428,8 +429,7 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans
Result < IcResiUserOrgMsgResultDTO > result1 = govOrgOpenFeignClient . icResiUserOrgMsg ( orgMsgFormDTO1 ) ;
if ( ! result1 . success ( ) | | null = = result1 . getData ( ) . getAgencyDTO ( ) | | null = = result1 . getData ( ) . getGridDTO ( ) | | null = = result1 . getData ( ) . getNeighborHoodDTO ( )
| | null = = result1 . getData ( ) . getBuildingDTO ( ) | | null = = result1 . getData ( ) . getBuildingUnitDTO ( ) | | null = = result1 . getData ( ) . getHouseDTO ( ) ) {
log . warn ( "查找被调动人调动前的组织、网格、小区、楼栋、单元、房屋信息失败" ) ;
throw new RenException ( "9000" , "获取被调动人基础信息失败" ) ;
throw new EpmetException ( EpmetErrorCode . EPMET_COMMON_OPERATION_FAIL . getCode ( ) , "查找被调动人调动前的组织、网格、小区、楼栋、单元、房屋信息失败" , "居民当前所住房屋信息异常" ) ;
}
return result1 . getData ( ) ;
}
@ -455,8 +455,7 @@ public class IcUserTransferRecordServiceImpl extends BaseServiceImpl<IcUserTrans
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" , "获取被调动人基础信息失败" ) ;
throw new EpmetException ( EpmetErrorCode . EPMET_COMMON_OPERATION_FAIL . getCode ( ) , "查找迁入后的组织、网格、小区、楼栋、单元、房屋信息失败" , "所属房屋信息异常" ) ;
}
}
return result2 ;