|
|
|
@ -131,7 +131,7 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService { |
|
|
|
|
userCoupon.setConsumeTime(new Date()); |
|
|
|
|
userCoupon.setStatus(2); // 状态 0:已过期 1:未使用 2:已使用
|
|
|
|
|
highUserCouponService.updateUserCoupon(userCoupon); |
|
|
|
|
highOrderService.childOrderComplete(order.getId()); |
|
|
|
|
//highOrderService.childOrderComplete(order.getId());
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -165,12 +165,12 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService { |
|
|
|
|
userCoupon.setStatus(2); // 状态 0:已过期 1:未使用 2:已使用
|
|
|
|
|
highUserCouponService.updateUserCoupon(userCoupon); |
|
|
|
|
|
|
|
|
|
HighChildOrderExample example = new HighChildOrderExample(); |
|
|
|
|
/* HighChildOrderExample example = new HighChildOrderExample(); |
|
|
|
|
example.createCriteria().andMemIdEqualTo(userCoupon.getUserId()).andGoodsTypeEqualTo(1).andGoodsIdEqualTo(userCoupon.getCouponId()).andChildOrdeStatusEqualTo(2); |
|
|
|
|
List<HighChildOrder> childOrderList = highChildOrderMapper.selectByExample(example); |
|
|
|
|
if (childOrderList.size() > 0) { |
|
|
|
|
highOrderService.childOrderComplete(childOrderList.get(0).getId()); |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
/*HighChildOrder order = highOrderService.getChildOrderByUserGoods(userCoupon.getUserId(), 1, userCoupon.getCouponId()); |
|
|
|
|
if (order == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到订单"); |
|
|
|
|