记得上下班打卡 | git大法好,push需谨慎

Commit 1a820dcc authored by jiangxiulong's avatar jiangxiulong

设置了不能购买的sku也不计算库存

parent fd6b684d
......@@ -1659,6 +1659,7 @@ public class GoblinRedisUtils {
&& LocalDateTime.now().isAfter(info.getSaleStartTime())
&& (null == info.getSoldoutStatus() || info.getSoldoutStatus().equals("0"))
&& (null == info.getHitRatio() || info.getHitRatio().compareTo(BigDecimal.ZERO) > 0)
&& (null == info.getSkuCanbuy() || info.getSkuCanbuy().equals("1"))
) {// 可以返回库存
return getSkuStock(null, info.getSkuId());
} else {// 不计入库存
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment