Commit 9bbf23445499512e21fa7badf827fff84673c31c
1 parent
f29e194d73
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 6 additions and 1 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
9bbf234
... | ... | @@ -326,7 +326,7 @@ |
326 | 326 | //验证临时使用的医院是不是当前登陆的医院 |
327 | 327 | if (StringUtils.isNotEmpty(couponInfo.getTempHospitalId()) && !couponInfo.getTempHospitalId().equals(hospitalId)) |
328 | 328 | { |
329 | - RespBuilder.buildErro(ResponseCode.COUPON_IS_USED); | |
329 | + return RespBuilder.buildErro(ResponseCode.COUPON_IS_USED); | |
330 | 330 | } |
331 | 331 | } |
332 | 332 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponPrintController.java
View file @
9bbf234
... | ... | @@ -129,6 +129,11 @@ |
129 | 129 | param.put("hospitalId", hospitalId); |
130 | 130 | param.put("code", code); |
131 | 131 | Map<String, String> couponInfo = couponService.findCouponByCode(param); |
132 | + if (couponInfo == null || couponInfo.size() == 0) | |
133 | + { | |
134 | + return RespBuilder.buildErro(ResponseCode.COUPON_NOT_FOUND); | |
135 | + } | |
136 | + | |
132 | 137 | |
133 | 138 | Object type = couponInfo.get("type"); |
134 | 139 | //验证优惠劵是否可以使用 |