Commit 5e0ab73d685321ccd0c11039d0dfab4add31bb52

Authored by changpengfei
1 parent 5aad7b5eb3
Exists in master and in 1 other branch dev

患者端手机号登录

Showing 1 changed file with 15 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 5e0ab73
... ... @@ -261,6 +261,21 @@
261 261 List<LymsPatient> dLst = lymsPatientService.list(Wrappers.query(patient));
262 262 baseResponse.setErrorcode(1);
263 263 LymsPatient patient2=null;
  264 +
  265 + if(dLst.size() < 1 ){//手机号登录
  266 + LymsPcase pcase=new LymsPcase();
  267 + pcase.setMobile(patient.getIdno());
  268 + List<LymsPcase> cLst =lymsPcaseService.list(Wrappers.query(pcase));
  269 + if(cLst.size()>0){
  270 + Map<String,Object> param=new HashMap<>();
  271 + param.put("id",cLst.get(0).getPid());
  272 + param.put("ppasswd",patient.getPpasswd());
  273 + dLst=lymsPatientService.listByMap(param);
  274 + }
  275 +
  276 + }
  277 +
  278 +
264 279 if (dLst.size() > 0) {
265 280 patient2 = dLst.get(0);
266 281