存酒接口修改

This commit is contained in:
张松
2025-03-04 14:37:30 +08:00
parent d5ae0ce0f6
commit d15c7b3c51

View File

@@ -115,8 +115,8 @@ public class ShopStorageServiceImpl extends ServiceImpl<ShopStorageMapper, ShopS
} }
shopStorage.setNum(shopStorage.getNum() + shopStorageEditDTO.getNum()); shopStorage.setNum(shopStorage.getNum() + shopStorageEditDTO.getNum());
if (shopStorage.getNum() + shopStorageEditDTO.getNum() == 0) { if (shopStorage.getNum() == 0) {
shopStorage.setStatus(10); shopStorage.setStatus(0);
} }
boolean b = updateById(shopStorage); boolean b = updateById(shopStorage);