Commit 81adeb51bc1d196b6071d970a69befc62bc5979b

Authored by liquanyu
1 parent 16f84a2829

update code

Showing 2 changed files with 10 additions and 9 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponPrintController.java View file @ 81adeb5
... ... @@ -149,6 +149,15 @@
149 149 return objectResponse;
150 150 }
151 151  
  152 +
  153 + /**
  154 + * 判断秦皇岛是否存在优惠劵
  155 + */
  156 + if (HospitalCouponPrintUtils.isExistCoupon(code))
  157 + {
  158 + return RespBuilder.buildErro(ResponseCode.COUPON_IS_USERD);
  159 + }
  160 +
152 161 PatientsQuery patientsQuery = new PatientsQuery();
153 162 patientsQuery.setPid(couponInfo.get("pId"));
154 163 patientsQuery.setYn(YnEnums.YES.getId());
... ... @@ -217,15 +226,6 @@
217 226 {
218 227 return objectResponse;
219 228 }
220   -
221   - /**
222   - * 判断秦皇岛是否存在优惠劵
223   - */
224   - if (HospitalCouponPrintUtils.isExistCoupon(code))
225   - {
226   - return RespBuilder.buildErro(ResponseCode.COUPON_IS_USERD);
227   - }
228   -
229 229  
230 230 PatientsQuery patientsQuery = new PatientsQuery();
231 231 patientsQuery.setPid(couponInfo.get("pId"));
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HospitalCouponPrintUtils.java View file @ 81adeb5
... ... @@ -96,6 +96,7 @@
96 96 }
97 97 catch (Exception e)
98 98 {
  99 + System.out.println(e);
99 100 return true;
100 101 }
101 102 return false;