存酒接口修改
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user