商品缓存清除于设置
This commit is contained in:
parent
c5b709a230
commit
9c797115b2
|
|
@ -173,7 +173,7 @@ public class ProductRpcServiceImpl implements ProductRpcService {
|
|||
flow.setOrderId(orderId);
|
||||
productStockFlowService.saveFlow(flow);
|
||||
refreshRedisProdStock(shopId, product.getId(), flow.getAfterNumber());
|
||||
if (!isHasStockChangeToZero && NumberUtil.isLessOrEqual(flow.getBeforeNumber(), BigDecimal.ZERO)) {
|
||||
if (!isHasStockChangeToZero && (NumberUtil.isLessOrEqual(flow.getBeforeNumber(), BigDecimal.ZERO) || NumberUtil.isLessOrEqual(flow.getAfterNumber(), BigDecimal.ZERO))) {
|
||||
isHasStockChangeToZero = true;
|
||||
}
|
||||
// 查询商品绑定耗材信息
|
||||
|
|
@ -262,7 +262,7 @@ public class ProductRpcServiceImpl implements ProductRpcService {
|
|||
log.info(">>>>>>>>>>>>>>>>>:入参4:{}", redisService.get(key));
|
||||
refreshRedisProdStock(shopId, product.getId(), flow.getAfterNumber());
|
||||
log.info(">>>>>>>>>>>>>>>>>:入参5:{}", redisService.get(key));
|
||||
if (!isHasStockChangeToZero && NumberUtil.isLessOrEqual(flow.getBeforeNumber(), BigDecimal.ZERO)) {
|
||||
if (!isHasStockChangeToZero && (NumberUtil.isLessOrEqual(flow.getBeforeNumber(), BigDecimal.ZERO) || NumberUtil.isLessOrEqual(flow.getAfterNumber(), BigDecimal.ZERO))) {
|
||||
isHasStockChangeToZero = true;
|
||||
}
|
||||
// 查询商品绑定耗材信息
|
||||
|
|
|
|||
Loading…
Reference in New Issue