|
|
|
@ -142,6 +142,7 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
if (highChildOrder.getGoodsType() == 1) { |
|
|
|
|
HighCouponCode code = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId()); |
|
|
|
|
code.setStatus(2); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
|
|
|
|
|
code.setReceiveTime(new Date()); |
|
|
|
|
highCouponCodeService.updateCouponCode(code); |
|
|
|
|
|
|
|
|
|
// 卡卷关联用户
|
|
|
|
@ -150,6 +151,7 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
highUserCoupon.setCouponId(code.getCouponId()); |
|
|
|
|
highUserCoupon.setUserId(highOrder.getMemId()); |
|
|
|
|
highUserCoupon.setCouponCodeId(code.getId()); |
|
|
|
|
highUserCoupon.setCreateTime(new Date()); |
|
|
|
|
highUserCoupon.setUseEndTime(code.getUseEndTime()); |
|
|
|
|
highUserCoupon.setStatus(1); // 状态 0:已过期 1:未使用 2:已使用
|
|
|
|
|
highUserCouponMapper.insert(highUserCoupon); |
|
|
|
@ -230,7 +232,7 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<HighOrder> getCloseOrder() { |
|
|
|
|
return null; |
|
|
|
|
return highOrderMapperExt.getCloseOrder(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -266,6 +268,7 @@ public class HighOrderServiceImpl implements HighOrderService { |
|
|
|
|
if (highChildOrder.getGoodsType() == 1) { |
|
|
|
|
// 查询卡卷详情
|
|
|
|
|
HighCouponCode couponCode = highCouponCodeService.getCouponCodeByOrderId(highChildOrder.getId()); |
|
|
|
|
couponCode.setChildOrderId(null); |
|
|
|
|
couponCode.setStatus(1); // 状态:1.待销售 2.未使用 3.已使用 99.预支付
|
|
|
|
|
highCouponCodeService.updateCouponCode(couponCode); |
|
|
|
|
} |
|
|
|
|