|
@ -52,6 +52,7 @@ public class AppletsService extends BaseService {
|
|
|
Map<String, Object> res = new HashedMap();
|
|
|
res.put("openid", rs.getString("openid"));
|
|
|
res.put("sessionKey", rs.getString("session_key"));
|
|
|
res.put("unionid", rs.getString("unionid"));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
@ -138,10 +139,11 @@ public class AppletsService extends BaseService {
|
|
|
public Map<String,Object> getPatientByUid(String unionid){
|
|
|
Patient patient = patientDao.findByUnionid(unionid);
|
|
|
Map<String,Object> map = new HashedMap();
|
|
|
map.put("patient",patient.getCode());
|
|
|
map.put("patientName",patient.getName());
|
|
|
map.put("photo",patient.getPhoto());
|
|
|
|
|
|
if(patient!=null){
|
|
|
map.put("patient",patient.getCode());
|
|
|
map.put("patientName",patient.getName());
|
|
|
map.put("photo",patient.getPhoto());
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
|