|
@@ -6,7 +6,6 @@ import com.ruoyi.common.exception.ServiceException;
|
|
|
import com.ruoyi.common.utils.wrapper.IWrapper;
|
|
|
import com.sd.business.entity.bom.po.Bom;
|
|
|
import com.sd.business.entity.bom.po.BomSpec;
|
|
|
-import com.sd.business.entity.in.po.InOutRunningWater;
|
|
|
import com.sd.business.entity.inventory.bo.InOutFun;
|
|
|
import com.sd.business.entity.inventory.dto.InventorySelectDto;
|
|
|
import com.sd.business.entity.inventory.po.Inventory;
|
|
@@ -21,7 +20,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
-import java.util.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
import java.util.function.Function;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -100,24 +101,6 @@ public class InventoryServiceImpl extends ServiceImpl<InventoryMapper, Inventory
|
|
|
saveOrUpdateBatch(inventoryList);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- BigDecimal quantity1 = inOutRunningWater2.getQuantity();
|
|
|
- ArrayList<BigDecimal> bigDecimals = new ArrayList<>(Arrays.asList(quantity1));
|
|
|
- IntSummaryStatistics summaryStatistics = bigDecimals.stream().mapToInt((s) -> s).summaryStatistics();
|
|
|
- long sum = summaryStatistics.getSum();
|
|
|
-
|
|
|
-
|
|
|
- for (InOutFun inOutFun : list) {
|
|
|
- BigDecimal quantity = inOutFun.getQuantity();
|
|
|
- BigDecimal purchasePrice = inOutFun.getPurchasePrice();
|
|
|
- InOutRunningWater inOutRunningWater = new InOutRunningWater();
|
|
|
- inOutRunningWater.setWarehouseId(warehouseId);
|
|
|
- inOutRunningWater.setQuantity(quantity);
|
|
|
- inOutRunningWater.setPurchasePrice(purchasePrice);
|
|
|
-
|
|
|
- BigDecimal depositAmount = quantity.multiply(purchasePrice);
|
|
|
- }*/
|
|
|
-
|
|
|
}
|
|
|
|
|
|
@Override
|