修改基础信息查询时gender字段的问题

This commit is contained in:
wans 2021-04-22 15:43:31 +08:00
parent e0cf9ea64d
commit 47da52461d

View File

@ -302,10 +302,8 @@ public class BasePopulationInfoServiceImpl extends AbstractService implements IB
if(populationInfoDTO == null){
return new BasePopulationInfoDTO();
}
if(populationInfoDTO != null){
DataDictionaryDTO dictDto = dataDictionaryService.getDictionaryById(populationInfoDTO.getGender());
populationInfoDTO.setGender(dictDto.getDictionaryName());
}
DataDictionaryDTO dictDto = dataDictionaryService.getDictionaryById(populationInfoDTO.getGender());
populationInfoDTO.setGender(dictDto == null ? "" : dictDto.getDictionaryName());
return populationInfoDTO;
}
}