注册修改
This commit is contained in:
parent
11432e39d8
commit
14055eaf2f
@ -153,13 +153,15 @@ public class ResidentPatientInfoServiceImpl implements IResidentPatientInfoServi
|
|||||||
// 修改
|
// 修改
|
||||||
if(!StringUtils.isBlank(body.getPatientCode())) {
|
if(!StringUtils.isBlank(body.getPatientCode())) {
|
||||||
PatientInfo patientInfo = residentPatientInfoMapper.getByCardNo(body.getCardNo());
|
PatientInfo patientInfo = residentPatientInfoMapper.getByCardNo(body.getCardNo());
|
||||||
|
if (ObjectUtils.isNotEmpty(patientInfo)) {
|
||||||
BeanUtils.copyBeanProp(patientInfo, body);
|
BeanUtils.copyBeanProp(patientInfo, body);
|
||||||
if(body.getDiseaseList() != null) {
|
if (body.getDiseaseList() != null) {
|
||||||
patientInfo.setDisease(body.getDiseaseList().stream().collect(Collectors.joining(",")));
|
patientInfo.setDisease(body.getDiseaseList().stream().collect(Collectors.joining(",")));
|
||||||
}
|
}
|
||||||
patientInfo.setLoginFlag(Long.valueOf(1));
|
patientInfo.setLoginFlag(Long.valueOf(1));
|
||||||
updatePatientInfo(patientInfo);
|
updatePatientInfo(patientInfo);
|
||||||
// 注册
|
// 注册
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// 获取当前微信绑定的居民
|
// 获取当前微信绑定的居民
|
||||||
List<PatientInfo> list = residentPatientInfoMapper.getList(body.getOpenid(), body.getCityCode());
|
List<PatientInfo> list = residentPatientInfoMapper.getList(body.getOpenid(), body.getCityCode());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user