| | |
| | | * @param list
|
| | | * @param signList
|
| | | */
|
| | | public void setSystemCouponRecord(CommonOrderVO order, boolean hasRewardCoupon, boolean exchangeCoupon,
|
| | | Integer hongBaoState, Integer hongBaoType, List<UserSystemCouponRecord> list, List<String> signList,
|
| | | public void setSystemCouponRecord(CommonOrderVO order, boolean hasRewardCoupon, Integer hongBaoState,
|
| | | Integer hongBaoType, List<UserSystemCouponRecord> list, List<String> signList,
|
| | | Long uid, AcceptData acceptData) {
|
| | |
|
| | | // 是否免单商品
|
| | |
| | |
|
| | | // 订单标识
|
| | | order.setSignList(signList);
|
| | |
|
| | | // 1.6.5 是否存在新兑换的券
|
| | | if (!hasRewardCoupon && exchangeCoupon) {
|
| | | try {
|
| | | Date thirdCreateTime = order.getThirdCreateTime();
|
| | | if (thirdCreateTime != null) {
|
| | | long downOrderTime = thirdCreateTime.getTime();
|
| | | long limitDate = TimeUtil.convertDateToTemp("2019-09-10");
|
| | | if (downOrderTime > limitDate)
|
| | | hasRewardCoupon = true;
|
| | | }
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | boolean rewardOrder = false;
|
| | | int type = 1; // 1 常规跳转页面 2弹出选项(奖励券)
|
| | |
| | | Date august = TimeUtil.parse("2019-08-01");
|
| | |
|
| | | // 是否存在奖励券
|
| | | boolean hasRewardCoupon = userSystemCouponService.getIncludeNotExchange(uid);
|
| | | boolean exchangeCoupon = userSystemCouponService.getIncludeExchange(uid);
|
| | | boolean hasRewardCoupon = userSystemCouponService.getValidRebateCoupon(uid);
|
| | |
|
| | | // 需要查询是否为VIP的用户ID,只有邀请订单才需要查询
|
| | | List<Long> needSelectVIPUidList = new ArrayList<>();
|
| | |
| | | } else {
|
| | | // 奖励订单、免单 使用记录
|
| | | if (sourceType == null) {
|
| | | setSystemCouponRecord(order, hasRewardCoupon, exchangeCoupon, hongBaoState, hongBaoType, null,
|
| | | setSystemCouponRecord(order, hasRewardCoupon, hongBaoState, hongBaoType, null,
|
| | | signList, uid, acceptData);
|
| | | } else if (sourceType == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | setSystemCouponRecord(order, hasRewardCoupon, exchangeCoupon, hongBaoState, hongBaoType,
|
| | | setSystemCouponRecord(order, hasRewardCoupon, hongBaoState, hongBaoType,
|
| | | listRecordTB, signList, uid, acceptData);
|
| | | } else if (sourceType == Constant.SOURCE_TYPE_JD) {
|
| | | setSystemCouponRecord(order, hasRewardCoupon, exchangeCoupon, hongBaoState, hongBaoType,
|
| | | setSystemCouponRecord(order, hasRewardCoupon, hongBaoState, hongBaoType,
|
| | | listRecordJD, signList, uid, acceptData);
|
| | | } else if (sourceType == Constant.SOURCE_TYPE_PDD) {
|
| | | setSystemCouponRecord(order, hasRewardCoupon, exchangeCoupon, hongBaoState, hongBaoType,
|
| | | setSystemCouponRecord(order, hasRewardCoupon, hongBaoState, hongBaoType,
|
| | | listRecordPDD, signList, uid, acceptData);
|
| | | }
|
| | | }
|