This commit is contained in:
parent
21f3c62a9d
commit
b03d146bb6
|
|
@ -293,9 +293,11 @@ public class InventoryPurchaseService extends BaseService {
|
||||||
List<InventoryGoodsVo> goodsVos = new ArrayList<>();
|
List<InventoryGoodsVo> goodsVos = new ArrayList<>();
|
||||||
for (Inventory inventory : list){
|
for (Inventory inventory : list){
|
||||||
InventoryGoodsVo goodsVo = new InventoryGoodsVo();
|
InventoryGoodsVo goodsVo = new InventoryGoodsVo();
|
||||||
|
|
||||||
BeanUtils.copyProperties(inventory, goodsVo);
|
BeanUtils.copyProperties(inventory, goodsVo);
|
||||||
|
|
||||||
Goods goods = goodsMapper.selectById(inventory.getGoodId());
|
Goods goods = goodsMapper.selectById(inventory.getGoodId());
|
||||||
BeanUtils.copyProperties(goods, goodsVo);
|
goodsVo.setUnitPrice(goods.getUnitPrice());
|
||||||
goodsVos.add(goodsVo);
|
goodsVos.add(goodsVo);
|
||||||
}
|
}
|
||||||
QueryWrapper<InventoryPurchase> purchaseQuery = new QueryWrapper();
|
QueryWrapper<InventoryPurchase> purchaseQuery = new QueryWrapper();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue