|
@@ -1188,7 +1188,7 @@ public class LifeUserOrderService extends ServiceImpl<LifeUserOrderMapper, LifeU
|
|
|
buyLimit = Integer.parseInt(lifeGroupBuyMain.getQuotaValue());
|
|
buyLimit = Integer.parseInt(lifeGroupBuyMain.getQuotaValue());
|
|
|
// 已购数量
|
|
// 已购数量
|
|
|
buyCount = orderCouponMiddleMapper.selectCount(new QueryWrapper<OrderCouponMiddle>().eq("coupon_id", couponId).notIn("status", OrderStatusEnum.CANCEL.getStatus(), OrderStatusEnum.REFUND.getStatus())
|
|
buyCount = orderCouponMiddleMapper.selectCount(new QueryWrapper<OrderCouponMiddle>().eq("coupon_id", couponId).notIn("status", OrderStatusEnum.CANCEL.getStatus(), OrderStatusEnum.REFUND.getStatus())
|
|
|
- .inSql("order_id", "select order_id from life_user_order where user_id = " + userId + " and store_id = " + storeId));
|
|
|
|
|
|
|
+ .inSql("order_id", "select id from life_user_order where user_id = " + userId + " and store_id = " + storeId));
|
|
|
}
|
|
}
|
|
|
// 库存 inventory_num
|
|
// 库存 inventory_num
|
|
|
stockQty = lifeGroupBuyMain.getInventoryNum();
|
|
stockQty = lifeGroupBuyMain.getInventoryNum();
|
|
@@ -1201,7 +1201,7 @@ public class LifeUserOrderService extends ServiceImpl<LifeUserOrderMapper, LifeU
|
|
|
buyLimit = Integer.parseInt(lifeCoupon.getPurchaseLimitCode());
|
|
buyLimit = Integer.parseInt(lifeCoupon.getPurchaseLimitCode());
|
|
|
// 已购数量
|
|
// 已购数量
|
|
|
buyCount = orderCouponMiddleMapper.selectCount(new QueryWrapper<OrderCouponMiddle>().eq("coupon_id", couponId).notIn("status", OrderStatusEnum.CANCEL.getStatus(), OrderStatusEnum.REFUND.getStatus())
|
|
buyCount = orderCouponMiddleMapper.selectCount(new QueryWrapper<OrderCouponMiddle>().eq("coupon_id", couponId).notIn("status", OrderStatusEnum.CANCEL.getStatus(), OrderStatusEnum.REFUND.getStatus())
|
|
|
- .inSql("order_id", "select order_id from life_user_order where user_id = " + userId + " and store_id = " + storeId));
|
|
|
|
|
|
|
+ .inSql("order_id", "select id from life_user_order where user_id = " + userId + " and store_id = " + storeId));
|
|
|
stockQty = lifeCoupon.getSingleQty();
|
|
stockQty = lifeCoupon.getSingleQty();
|
|
|
endTime = lifeCoupon.getEndDate();
|
|
endTime = lifeCoupon.getEndDate();
|
|
|
} else {
|
|
} else {
|