Browse Source

bug修复

mengkang 5 years ago
parent
commit
d6db9300bf

+ 2 - 2
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -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);
    }