|
@@ -80,14 +80,11 @@ public class WxaUserApiController extends WxaController {
|
|
|
doctorsWechatfind.setUpdateAt(new Date());
|
|
|
doctorsWechatfind.update();
|
|
|
}
|
|
|
- Doctors doctors = null;
|
|
|
-// if (doctorsWechatfind.getDoctorId()!=null) {
|
|
|
-// doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
|
|
|
-// }
|
|
|
accessTokenCache.set("wxa:session:" + sessionId, apiResult.getJson());
|
|
|
LoginBean loginBean = new LoginBean();
|
|
|
loginBean.setSessionId(sessionId);
|
|
|
- if (doctors != null) {
|
|
|
+ if (doctorsWechatfind.getDoctorId() != null) {
|
|
|
+ Doctors doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
|
|
|
doctors.setPassword("");
|
|
|
DoctorBean doctorBean = JSON.parseObject(doctors.toJson(), DoctorBean.class);
|
|
|
Institution institution = Institution.dao.findById(doctorBean.getInstitution_id());
|