小程序个人中心修改

This commit is contained in:
张恒 2023-10-13 17:21:32 +08:00
parent cdbf4e2034
commit c99a392189
4 changed files with 16 additions and 0 deletions

View File

@ -176,6 +176,9 @@ public class NurseAppLoginServiceImpl implements NurseAppLoginService {
if (Objects.nonNull(patientDisease) && Objects.nonNull(patientDisease.getBirthDate())) {
patientDisease.setAge(AgeUtil.getAgeMonth(String.valueOf(patientDisease.getBirthDate())));
}
if (Objects.nonNull(patientDisease) && StringUtils.isNotBlank(patientDisease.getDisease())) {
patientDisease.setDiseaseList(patientDisease.getDisease().split(""));
}
if (Objects.nonNull(patientDisease) && StringUtils.isNotBlank(patientDisease.getAreaCode())) {
SysAreaVO codeName = sysAreaMapper.getSubordinateRegionsFindSuperiorRegions(patientDisease.getAreaCode());
String provinceName = StringUtils.isBlank(codeName.getProvinceName()) ? "" : codeName.getProvinceName();

View File

@ -158,4 +158,10 @@ public class PatientAndDiseaseVO implements Serializable {
*/
private String patientCode;
private String disease;
/**
* 基础疾病信息
*/
private String[] diseaseList;
}

View File

@ -24,6 +24,7 @@
<result property="disablingCondition" column="disabling_condition"/>
<result property="disablingReason" column="disabling_reason"/>
<result property="patientCode" column="patient_code"/>
<result property="disease" column="disease"/>
<collection property="patientDiseaseInfoList" javaType="java.util.List" resultMap="PatientDiseaseInfoResult"/>
</resultMap>
@ -81,6 +82,7 @@
pi.disabling_condition,
pi.disabling_reason,
pi.patient_code,
pi.disease,
pdi.id patientDiseaseId,
pdi.disease_id,
pdi.disease_name,

View File

@ -242,6 +242,11 @@ public class PatientInfo extends BaseDomain implements Serializable {
*/
private String disablingReason;
/**
* 基础疾病
*/
private String disease;
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)