From 5e0ab73d685321ccd0c11039d0dfab4add31bb52 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Mon, 11 Oct 2021 10:59:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E7=AB=AF=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/talkonlineweb/controller/PatientController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index cb95d45..94aa4bb 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -261,6 +261,21 @@ public class PatientController { List dLst = lymsPatientService.list(Wrappers.query(patient)); baseResponse.setErrorcode(1); LymsPatient patient2=null; + + if(dLst.size() < 1 ){//手机号登录 + LymsPcase pcase=new LymsPcase(); + pcase.setMobile(patient.getIdno()); + List cLst =lymsPcaseService.list(Wrappers.query(pcase)); + if(cLst.size()>0){ + Map param=new HashMap<>(); + param.put("id",cLst.get(0).getPid()); + param.put("ppasswd",patient.getPpasswd()); + dLst=lymsPatientService.listByMap(param); + } + + } + + if (dLst.size() > 0) { patient2 = dLst.get(0); -- 1.8.3.1