|
@ -6884,11 +6884,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
public MixEnvelop findPatientOpenId(String patientCode) {
|
|
|
List<BasePatientWechatDo> basePatientWechatDo = patientWechatDao.findByWechatIdAndPatientId(wechatId, patientCode);
|
|
|
if (basePatientWechatDo.isEmpty()){
|
|
|
return MixEnvelop.getSuccess("居民openID不存在");
|
|
|
return MixEnvelop.getSuccess("居民openID不存在",null);
|
|
|
}
|
|
|
String openid = basePatientWechatDo.get(0).getOpenid();
|
|
|
if (StringUtils.isEmpty(openid)){
|
|
|
return MixEnvelop.getSuccess("居民openID不存在");
|
|
|
return MixEnvelop.getSuccess("居民openID不存在",null);
|
|
|
}
|
|
|
return MixEnvelop.getSuccess(IotRequestMapping.Common.message_success_find,openid);
|
|
|
}
|