|
|
@ -102,6 +102,7 @@ public class DataSyncRecordDisabilityServiceImpl extends BaseServiceImpl<DataSyn |
|
|
|
ResiInfoDTO resiInfoDTO = ConvertUtils.sourceToTarget(icResiUserDTO, ResiInfoDTO.class); |
|
|
|
resiInfoDTO.setGenderCn(resiInfoDTO.getGender().equals(NumConstant.ONE_STR) ? "男" : "女"); |
|
|
|
resiInfoDTO.setCjzkCn(getCj(resiInfoDTO.getCjzk())); |
|
|
|
resiInfoDTO.setCjlbCn(getCjlb(resiInfoDTO.getCjlb(),entity.getCustomerId())); |
|
|
|
result.setResiInfo(resiInfoDTO); |
|
|
|
return result; |
|
|
|
} |
|
|
@ -127,6 +128,19 @@ public class DataSyncRecordDisabilityServiceImpl extends BaseServiceImpl<DataSyn |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
public String getCjlb(String cjlb,String customerId){ |
|
|
|
IcFormOptionsQueryFormDTO formDTO = new IcFormOptionsQueryFormDTO(); |
|
|
|
formDTO.setCustomerId(customerId); |
|
|
|
formDTO.setFormCode("resi_base_info"); |
|
|
|
formDTO.setColumnName("CJLB"); |
|
|
|
Result<Map<String, String>> cjlbOptionsMap = operCustomizeOpenFeignClient.getOptionsMap(formDTO); |
|
|
|
if (!cjlbOptionsMap.success()){ |
|
|
|
throw new EpmetException("operCustomizeOpenFeignClient.getOptionsMap执行失败"); |
|
|
|
} |
|
|
|
Map<String, String> data = cjlbOptionsMap.getData(); |
|
|
|
return data.get(cjlb); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void save(DataSyncRecordDisabilityDTO dto) { |
|
|
|