存酒接口修改
This commit is contained in:
@@ -115,9 +115,13 @@ 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) {
|
||||||
|
shopStorage.setStatus(10);
|
||||||
|
}
|
||||||
boolean b = updateById(shopStorage);
|
boolean b = updateById(shopStorage);
|
||||||
|
|
||||||
if (b) {
|
if (b) {
|
||||||
|
|
||||||
ShopStorageRecord record = new ShopStorageRecord();
|
ShopStorageRecord record = new ShopStorageRecord();
|
||||||
record.setStorageId(shopStorage.getId());
|
record.setStorageId(shopStorage.getId());
|
||||||
record.setTime(DateUtil.date().toLocalDateTime());
|
record.setTime(DateUtil.date().toLocalDateTime());
|
||||||
|
|||||||
Reference in New Issue
Block a user