存酒接口修改
This commit is contained in:
parent
a6ca815735
commit
d5ae0ce0f6
|
|
@ -115,9 +115,13 @@ public class ShopStorageServiceImpl extends ServiceImpl<ShopStorageMapper, ShopS
|
|||
}
|
||||
|
||||
shopStorage.setNum(shopStorage.getNum() + shopStorageEditDTO.getNum());
|
||||
if (shopStorage.getNum() + shopStorageEditDTO.getNum() == 0) {
|
||||
shopStorage.setStatus(10);
|
||||
}
|
||||
boolean b = updateById(shopStorage);
|
||||
|
||||
if (b) {
|
||||
|
||||
ShopStorageRecord record = new ShopStorageRecord();
|
||||
record.setStorageId(shopStorage.getId());
|
||||
record.setTime(DateUtil.date().toLocalDateTime());
|
||||
|
|
|
|||
Loading…
Reference in New Issue