库存判定问题处理
This commit is contained in:
parent
394ee27525
commit
9baafd55be
@ -204,7 +204,7 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
|
||||
Integer integer = (Integer) cache.get(GoodsSkuService.getStockCacheKey(id));
|
||||
|
||||
//库存不为空
|
||||
if (integer == null) {
|
||||
if (integer != null) {
|
||||
//库存与缓存中不一致,
|
||||
if (!goodsSku.getQuantity().equals(integer)) {
|
||||
//写入最新的库存信息
|
||||
|
Loading…
x
Reference in New Issue
Block a user