This commit is contained in:
parent
21f3c62a9d
commit
b03d146bb6
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue