Commit 4dfc4e1d548967080ca2b73497f55aeac4fa3c2e
1 parent
cd3ae87334
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 18 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
4dfc4e1
| ... | ... | @@ -345,6 +345,24 @@ |
| 345 | 345 | sieveDao.updateChanQianSieve(sieveModel); |
| 346 | 346 | } |
| 347 | 347 | } |
| 348 | + | |
| 349 | + | |
| 350 | + /** 验证产检券是否可用 可用就改为已使用状态 */ | |
| 351 | + if (StringUtils.isNotBlank(antExAddRequest.getCouponCode()) && antExAddRequest.getCouponType() != null && "216".equals(hospitalId)) { | |
| 352 | + BaseObjectResponse resp = couponService.validate(antExAddRequest.getCouponCode(), antExAddRequest.getCouponType(), autoMatchFacade.getHospitalId(userId)); | |
| 353 | + if (resp.getErrorcode() != 0) { | |
| 354 | + return resp; | |
| 355 | + } else { | |
| 356 | + couponService.use(autoMatchFacade.getHospitalId(userId), antExAddRequest.getCouponCode(), userId, model.getId()); | |
| 357 | + | |
| 358 | + //秦皇岛妇幼使用完优惠劵后需要把对应优惠劵插入到秦皇岛妇幼his | |
| 359 | + if ("216".equals(hospitalId)) | |
| 360 | + { | |
| 361 | + qhdCouponUse( hospitalId, antExAddRequest.getCouponCode(), userId); | |
| 362 | + } | |
| 363 | + } | |
| 364 | + } | |
| 365 | + | |
| 348 | 366 | } else { |
| 349 | 367 | model.setOperator(userId); |
| 350 | 368 | model.setYn(YnEnums.YES.getId()); |