|
@@ -239,14 +239,14 @@ public class MaterialGoodsStockLogic {
|
|
if (websitStockDTO.getRefType().equals("采购调整")
|
|
if (websitStockDTO.getRefType().equals("采购调整")
|
|
&& websitStockDTO.getDirectFlag().equals(DirectFlagEnum.ADD.getKey())) {
|
|
&& websitStockDTO.getDirectFlag().equals(DirectFlagEnum.ADD.getKey())) {
|
|
// 如果是采购调整并且方向是增加检查是否需要注入最后一次采购价
|
|
// 如果是采购调整并且方向是增加检查是否需要注入最后一次采购价
|
|
- final WebsitPurchase purchase = websitPurchaseService.lambdaQuery()
|
|
|
|
- .select(WebsitPurchase::getPurchaseId)
|
|
|
|
- .orderByDesc(WebsitPurchase::getConfirmTime)
|
|
|
|
- .last("limit 1")
|
|
|
|
- .one();
|
|
|
|
- if (purchase.getPurchaseId().equals(websitStockDTO.getPurchaseId())) {
|
|
|
|
|
|
+// final WebsitPurchase purchase = websitPurchaseService.lambdaQuery()
|
|
|
|
+// .select(WebsitPurchase::getPurchaseId)
|
|
|
|
+// .orderByDesc(WebsitPurchase::getConfirmTime)
|
|
|
|
+// .last("limit 1")
|
|
|
|
+// .one();
|
|
|
|
+// if (purchase.getPurchaseId().equals(websitStockDTO.getPurchaseId())) {
|
|
shopStock.setLastCost(websitStockDTO.getPrice());
|
|
shopStock.setLastCost(websitStockDTO.getPrice());
|
|
- }
|
|
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return existStockMap;
|
|
return existStockMap;
|