Commit 98291497272c3da78ae3ebd58023734bb5cfb101

Authored by litao
1 parent 84cf2a5c02

bug修复

Showing 1 changed file with 1 additions and 1 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java View file @ 9829149
... ... @@ -52,7 +52,7 @@
52 52 @Override
53 53 public BaseObjectResponse create(String userId, String hospitalId, String userType, Integer createUserId) {
54 54 Map<String, Object> param = new HashMap<>();
55   - if(StringUtils.isNoneBlank(userType)) {
  55 + if(StringUtils.isBlank(userType)) {
56 56 Patients patients = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(userId)), Patients.class);
57 57 if(patients == null || patients.getType() == null) return RespBuilder.buildErro(ResponseCode.PATIENTS_NOT_FOUND);
58 58 param.put("type", patients.getType());