From 138f6f1dfb45745680b9287eca2458bd8a25872e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=81=92?= Date: Mon, 16 Oct 2023 14:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applet/mapper/ResidentPatientInfoMapper.java | 8 ++++++++ .../service/impl/ResidentPatientInfoServiceImpl.java | 2 +- .../mapper/register/ResidentPatientInfoMapper.xml | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/mapper/ResidentPatientInfoMapper.java b/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/mapper/ResidentPatientInfoMapper.java index 8eb0e0c..b94b27f 100644 --- a/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/mapper/ResidentPatientInfoMapper.java +++ b/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/mapper/ResidentPatientInfoMapper.java @@ -96,4 +96,12 @@ public interface ResidentPatientInfoMapper { PatientInfo getByCardNo(String cardNo); int selectPatientInfoByPhone(String phone); + + /** + *根据用户编号查询 + * + *@param patientCode 用户编号 + *@return PatientInfo + **/ + PatientInfo getPatientInfoByPatientCode(String patientCode); } diff --git a/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/service/impl/ResidentPatientInfoServiceImpl.java b/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/service/impl/ResidentPatientInfoServiceImpl.java index 715033c..2ebb886 100644 --- a/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/service/impl/ResidentPatientInfoServiceImpl.java +++ b/xinelu-familydoctor/src/main/java/com/xinelu/familydoctor/applet/service/impl/ResidentPatientInfoServiceImpl.java @@ -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) { diff --git a/xinelu-familydoctor/src/main/resources/mapper/register/ResidentPatientInfoMapper.xml b/xinelu-familydoctor/src/main/resources/mapper/register/ResidentPatientInfoMapper.xml index 5574d49..947b7b6 100644 --- a/xinelu-familydoctor/src/main/resources/mapper/register/ResidentPatientInfoMapper.xml +++ b/xinelu-familydoctor/src/main/resources/mapper/register/ResidentPatientInfoMapper.xml @@ -459,4 +459,9 @@ and login_flag = '1' +