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