库存记录 增加操作人
This commit is contained in:
@@ -196,7 +196,7 @@ public class ProductService {
|
||||
}
|
||||
}
|
||||
|
||||
public void updateStock(ProductStockDTO productStockDTO) {
|
||||
public void updateStock(ProductStockDTO productStockDTO,String loginName) {
|
||||
TbProduct product = tbProductMapper.selectByShopIdAndId(productStockDTO.getProductId(), productStockDTO.getShopId());
|
||||
if (product == null) {
|
||||
throw new MsgException("商品不存在");
|
||||
@@ -216,6 +216,7 @@ public class ProductService {
|
||||
// data.put("type", "pc收银机修改库存");
|
||||
data.put("subType", product.getStockNumber() > productStockDTO.getStock() ? -1 : 1);
|
||||
data.put("number", productStockDTO.getStock() - product.getStockNumber());
|
||||
data.put("operator", loginName);
|
||||
data.put("remark", "pc收银机修改库存");
|
||||
if (product.getStockNumber() > productStockDTO.getStock()) {
|
||||
data.put("type", "盘点出库");
|
||||
|
||||
Reference in New Issue
Block a user