Commit efc776b5001dfae71aeeebfd50070f0213d0deb6
1 parent
0dbad0de75
Exists in
master
患者登录bug
Showing 2 changed files with 5 additions and 2 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
efc776b
| ... | ... | @@ -216,7 +216,7 @@ |
| 216 | 216 | * @return |
| 217 | 217 | */ |
| 218 | 218 | @PostMapping("loginPatient") |
| 219 | - public BaseResponse loginPatient(@RequestBody LymsPatient patient, String code) { | |
| 219 | + public BaseResponse loginPatient(@RequestBody LymsPatient patient) { | |
| 220 | 220 | BaseResponse baseResponse = new BaseResponse(); |
| 221 | 221 | List<LymsPatient> dLst = lymsPatientService.list(Wrappers.query(patient)); |
| 222 | 222 | baseResponse.setErrorcode(1); |
| ... | ... | @@ -238,7 +238,7 @@ |
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | 240 | if (StringUtils.isEmpty(patient.getOpenid())) { |
| 241 | - patient.setOpenid(WeiXinUtil.getWxOpenId(code)); | |
| 241 | + patient.setOpenid(WeiXinUtil.getWxOpenId(patient.getCode())); | |
| 242 | 242 | } |
| 243 | 243 | lymsPatientService.saveOrUpdate(patient); |
| 244 | 244 | } |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java
View file @
efc776b