注册修改
This commit is contained in:
parent
4939c8b829
commit
138f6f1dfb
@ -96,4 +96,12 @@ public interface ResidentPatientInfoMapper {
|
||||
PatientInfo getByCardNo(String cardNo);
|
||||
|
||||
int selectPatientInfoByPhone(String phone);
|
||||
|
||||
/**
|
||||
*根据用户编号查询
|
||||
*
|
||||
*@param patientCode 用户编号
|
||||
*@return PatientInfo
|
||||
**/
|
||||
PatientInfo getPatientInfoByPatientCode(String patientCode);
|
||||
}
|
||||
|
||||
@ -152,7 +152,7 @@ public class ResidentPatientInfoServiceImpl implements IResidentPatientInfoServi
|
||||
if (ObjectUtils.isNotEmpty(body.getCardNo())) {
|
||||
// 修改
|
||||
if(!StringUtils.isBlank(body.getPatientCode())) {
|
||||
PatientInfo patientInfo = residentPatientInfoMapper.getByCardNo(body.getCardNo());
|
||||
PatientInfo patientInfo = residentPatientInfoMapper.getPatientInfoByPatientCode(body.getPatientCode());
|
||||
if (ObjectUtils.isNotEmpty(patientInfo)) {
|
||||
BeanUtils.copyBeanProp(patientInfo, body);
|
||||
if (body.getDiseaseList() != null) {
|
||||
|
||||
@ -459,4 +459,9 @@
|
||||
and login_flag = '1'
|
||||
</select>
|
||||
|
||||
<select id="getPatientInfoByPatientCode" resultMap="PatientInfoResult">
|
||||
<include refid="selectPatientInfoVo"/>
|
||||
where patient_code = #{patientCode}
|
||||
and del_flag = 0
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user