소스 검색

bug修复

mengkang 5 년 전
부모
커밋
d6db9300bf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

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