注册修改

This commit is contained in:
张恒 2023-10-16 14:24:58 +08:00
parent 4939c8b829
commit 138f6f1dfb
3 changed files with 14 additions and 1 deletions

View File

@ -96,4 +96,12 @@ public interface ResidentPatientInfoMapper {
PatientInfo getByCardNo(String cardNo); PatientInfo getByCardNo(String cardNo);
int selectPatientInfoByPhone(String phone); int selectPatientInfoByPhone(String phone);
/**
*根据用户编号查询
*
*@param patientCode 用户编号
*@return PatientInfo
**/
PatientInfo getPatientInfoByPatientCode(String patientCode);
} }

View File

@ -152,7 +152,7 @@ public class ResidentPatientInfoServiceImpl implements IResidentPatientInfoServi
if (ObjectUtils.isNotEmpty(body.getCardNo())) { if (ObjectUtils.isNotEmpty(body.getCardNo())) {
// 修改 // 修改
if(!StringUtils.isBlank(body.getPatientCode())) { if(!StringUtils.isBlank(body.getPatientCode())) {
PatientInfo patientInfo = residentPatientInfoMapper.getByCardNo(body.getCardNo()); PatientInfo patientInfo = residentPatientInfoMapper.getPatientInfoByPatientCode(body.getPatientCode());
if (ObjectUtils.isNotEmpty(patientInfo)) { if (ObjectUtils.isNotEmpty(patientInfo)) {
BeanUtils.copyBeanProp(patientInfo, body); BeanUtils.copyBeanProp(patientInfo, body);
if (body.getDiseaseList() != null) { if (body.getDiseaseList() != null) {

View File

@ -459,4 +459,9 @@
and login_flag = '1' and login_flag = '1'
</select> </select>
<select id="getPatientInfoByPatientCode" resultMap="PatientInfoResult">
<include refid="selectPatientInfoVo"/>
where patient_code = #{patientCode}
and del_flag = 0
</select>
</mapper> </mapper>