Commit 87842def36fe93b51f94a5422623bdaf8b73c436

Authored by changpengfei
1 parent 8cc43fc154
Exists in master

环信用户名小写

Showing 2 changed files with 3 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java View file @ 87842de
... ... @@ -106,6 +106,7 @@
106 106 public BaseResponse saveDoctor(@Validated LymsDoctor doctor, BindingResult result){
107 107 BaseResponse baseResponse=new BaseResponse();
108 108 baseResponse.setErrormsg("");
  109 + doctor.setDlogin(doctor.getDlogin().toLowerCase());
109 110 //操作记录标识
110 111 Integer did=0;
111 112 if(doctor.getDid()==null){
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 87842de
... ... @@ -124,8 +124,9 @@
124 124 BaseResponse baseResponse = new BaseResponse();
125 125 log.info(">>>>>>>>>>>>>>>登记病例");
126 126 baseResponse.setErrormsg("");
  127 + patient.setIdno(patient.getIdno().toLowerCase());
127 128 LymsPatient tmpP=new LymsPatient();
128   - tmpP.setIdno(patient.getIdno());
  129 + tmpP.setIdno(patient.getIdno().toLowerCase());
129 130 LymsPatient patient2 = lymsPatientService.getOne(Wrappers.query(tmpP).eq("idno", patient.getIdno()));
130 131 if (patient2 == null) {
131 132 patient.setCreatedtime(new Date());