This commit is contained in:
LiJianZhao 2025-04-25 15:15:13 +08:00
parent 21f3c62a9d
commit b03d146bb6
1 changed files with 3 additions and 1 deletions

View File

@ -293,9 +293,11 @@ public class InventoryPurchaseService extends BaseService {
List<InventoryGoodsVo> goodsVos = new ArrayList<>();
for (Inventory inventory : list){
InventoryGoodsVo goodsVo = new InventoryGoodsVo();
BeanUtils.copyProperties(inventory, goodsVo);
Goods goods = goodsMapper.selectById(inventory.getGoodId());
BeanUtils.copyProperties(goods, goodsVo);
goodsVo.setUnitPrice(goods.getUnitPrice());
goodsVos.add(goodsVo);
}
QueryWrapper<InventoryPurchase> purchaseQuery = new QueryWrapper();