|
@ -1,6 +1,6 @@
|
|
|
/*******************************************************************************
|
|
|
* Copyright (c) 2005, 2014 springside.github.io
|
|
|
*
|
|
|
* <p>
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
*******************************************************************************/
|
|
|
package com.yihu.wlyy.service.common.account;
|
|
@ -127,7 +127,10 @@ public class PatientService extends TokenService {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//如果之前患者的openId为空并且openID有值更新时间
|
|
|
if (!org.springframework.util.StringUtils.isEmpty(openid) && org.springframework.util.StringUtils.isEmpty(patient.getOpenid())) {
|
|
|
patient.setOpenidTime(new Date());
|
|
|
}
|
|
|
patient.setOpenid(openid);
|
|
|
Patient ps = patientDao.save(patient);
|
|
|
System.out.print(new JSONObject(ps));
|