|
@ -11,6 +11,7 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
|
|
import com.epmet.commons.tools.enums.GenderEnum; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
@ -97,7 +98,10 @@ public class DataSyncRecordDisabilityServiceImpl extends BaseServiceImpl<DataSyn |
|
|
public DataSyncRecordDisabilityDTO get(String id) { |
|
|
public DataSyncRecordDisabilityDTO get(String id) { |
|
|
DataSyncRecordDisabilityEntity entity = baseDao.selectById(id); |
|
|
DataSyncRecordDisabilityEntity entity = baseDao.selectById(id); |
|
|
DataSyncRecordDisabilityDTO result = ConvertUtils.sourceToTarget(entity, DataSyncRecordDisabilityDTO.class); |
|
|
DataSyncRecordDisabilityDTO result = ConvertUtils.sourceToTarget(entity, DataSyncRecordDisabilityDTO.class); |
|
|
result.setGenderCn(result.getGender() == NumConstant.ONE ? "男" : "女"); |
|
|
result.setGenderCn(GenderEnum.UN_KNOWN.getName()); |
|
|
|
|
|
if (null != result.getGender()){ |
|
|
|
|
|
result.setGenderCn(result.getGender() == NumConstant.ONE ? "男" : "女"); |
|
|
|
|
|
} |
|
|
IcResiUserDTO icResiUserDTO = icResiUserService.get(entity.getIcResiUserId()); |
|
|
IcResiUserDTO icResiUserDTO = icResiUserService.get(entity.getIcResiUserId()); |
|
|
ResiInfoDTO resiInfoDTO = ConvertUtils.sourceToTarget(icResiUserDTO, ResiInfoDTO.class); |
|
|
ResiInfoDTO resiInfoDTO = ConvertUtils.sourceToTarget(icResiUserDTO, ResiInfoDTO.class); |
|
|
resiInfoDTO.setGenderCn(resiInfoDTO.getGender().equals(NumConstant.ONE_STR) ? "男" : "女"); |
|
|
resiInfoDTO.setGenderCn(resiInfoDTO.getGender().equals(NumConstant.ONE_STR) ? "男" : "女"); |
|
|