修改个人中心基础疾病返回值类型

This commit is contained in:
赵旭 2023-10-16 10:40:01 +08:00
parent c99a392189
commit 049e6ac0a7
2 changed files with 4 additions and 2 deletions

View File

@ -177,7 +177,9 @@ public class NurseAppLoginServiceImpl implements NurseAppLoginService {
patientDisease.setAge(AgeUtil.getAgeMonth(String.valueOf(patientDisease.getBirthDate()))); patientDisease.setAge(AgeUtil.getAgeMonth(String.valueOf(patientDisease.getBirthDate())));
} }
if (Objects.nonNull(patientDisease) && StringUtils.isNotBlank(patientDisease.getDisease())) { if (Objects.nonNull(patientDisease) && StringUtils.isNotBlank(patientDisease.getDisease())) {
patientDisease.setDiseaseList(patientDisease.getDisease().split("")); patientDisease.setDiseaseList(Arrays.stream(patientDisease.getDisease().split(","))
.map(Integer::valueOf)
.toArray(Integer[]::new));
} }
if (Objects.nonNull(patientDisease) && StringUtils.isNotBlank(patientDisease.getAreaCode())) { if (Objects.nonNull(patientDisease) && StringUtils.isNotBlank(patientDisease.getAreaCode())) {
SysAreaVO codeName = sysAreaMapper.getSubordinateRegionsFindSuperiorRegions(patientDisease.getAreaCode()); SysAreaVO codeName = sysAreaMapper.getSubordinateRegionsFindSuperiorRegions(patientDisease.getAreaCode());

View File

@ -163,5 +163,5 @@ public class PatientAndDiseaseVO implements Serializable {
/** /**
* 基础疾病信息 * 基础疾病信息
*/ */
private String[] diseaseList; private Integer[] diseaseList;
} }