超市
This commit is contained in:
@ -40,5 +40,7 @@ public class StoreGoodsRespVO {
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
private String img;
|
||||
|
||||
|
||||
}
|
@ -25,4 +25,6 @@ public class StoreGoodsSaveReqVO {
|
||||
@Schema(description = "设备ID")
|
||||
private String equipmentCode;
|
||||
|
||||
private String img;
|
||||
|
||||
}
|
@ -101,7 +101,7 @@ public class StoreGoodsInventoryServiceImpl implements StoreGoodsInventoryServic
|
||||
storeGoodsInventoryDO.setWeight(storeGoodsInventoryDO.getWeight());
|
||||
storeGoodsInventoryMapper.updateById(storeGoodsInventoryDO);
|
||||
} else {
|
||||
StoreGoodsInventoryDO storeGoodsInventory = BeanUtils.toBean(createReqVO, StoreGoodsInventoryDO.class);
|
||||
StoreGoodsInventoryDO storeGoodsInventory = BeanUtils.toBean(vo, StoreGoodsInventoryDO.class);
|
||||
storeGoodsInventoryMapper.insert(storeGoodsInventory);
|
||||
}
|
||||
}
|
||||
|
@ -107,6 +107,8 @@ public class StoreSaleGoodsServiceImpl implements StoreSaleGoodsService {
|
||||
wrapper.in(StoreSaleGoodsDO::getId, Arrays.asList(split));
|
||||
// 删除
|
||||
storeSaleGoodsMapper.delete(wrapper);
|
||||
//库存清零
|
||||
|
||||
}
|
||||
|
||||
private void validateStoreSaleGoodsExists(Long id) {
|
||||
|
Reference in New Issue
Block a user