This commit is contained in:
zengtao01
2024-11-12 11:19:14 +08:00
parent 801e99a7a3
commit 95c4f788fc
4 changed files with 7 additions and 1 deletions

View File

@ -40,5 +40,7 @@ public class StoreGoodsRespVO {
@ExcelProperty("创建时间")
private LocalDateTime createTime;
private String img;
}

View File

@ -25,4 +25,6 @@ public class StoreGoodsSaveReqVO {
@Schema(description = "设备ID")
private String equipmentCode;
private String img;
}

View File

@ -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);
}
}

View File

@ -107,6 +107,8 @@ public class StoreSaleGoodsServiceImpl implements StoreSaleGoodsService {
wrapper.in(StoreSaleGoodsDO::getId, Arrays.asList(split));
// 删除
storeSaleGoodsMapper.delete(wrapper);
//库存清零
}
private void validateStoreSaleGoodsExists(Long id) {