| | |
| | | boolean satisfy = false;
|
| | | // 遍历是否存在符合相应商品
|
| | | for (CommonOrder commonOrder: list) {
|
| | | // 订单失效
|
| | | if(commonOrder.getState() != CommonOrder.STATE_FK && commonOrder.getState() != CommonOrder.STATE_JS)
|
| | | continue;
|
| | | // 付款金额限制
|
| | | BigDecimal payment = commonOrder.getPayment();
|
| | | if (payment == null || payment.compareTo(limitPayMent) < 0)
|
| | |
| | |
|
| | | // 赠送购买者一张免单券
|
| | | try {
|
| | | userSystemCouponService.freeCouponWinBySystem(orderUid, CouponTypeEnum.freeCouponBuy, |
| | | UserSystemCoupon.SOURCE_PULL_NEW, 1, true, 2);
|
| | | userSystemCouponService.freeCouponWinBySystem(orderUid, CouponTypeEnum.freeCoupon, |
| | | UserSystemCoupon.SOURCE_PULL_NEW, 1, true, 2, 1);
|
| | | } catch (UserSystemCouponException e) {
|
| | | e.printStackTrace();
|
| | | } catch (Exception e) {
|