Commit efc776b5001dfae71aeeebfd50070f0213d0deb6

Authored by changpengfei
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
... ... @@ -102,6 +102,9 @@
102 102  
103 103 @TableField(exist = false)
104 104 private static final long serialVersionUID = 1L;
  105 +// 小程序上传的code
  106 + @TableField(exist = false)
  107 + private String code;
105 108  
106 109 @Override
107 110 public boolean equals(Object that) {