|
@@ -109,6 +109,11 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> i
|
|
|
item.setBomSpecWidth(bomSpec.getWidth());
|
|
|
item.setBomSpecHeight(bomSpec.getHeight());
|
|
|
});
|
|
|
+ // 赋值在途数量
|
|
|
+ purchaseBomList.forEach(item -> item.setInTransitQuantity(
|
|
|
+ item.getPurchaseQuantity()
|
|
|
+ .subtract(item.getArrivalQuantity())
|
|
|
+ .add(item.getReturnQuantity())));
|
|
|
|
|
|
result.setPurchaseBomList(purchaseBomList);
|
|
|
return result;
|