Browse Source

2025-05-06

master
qiezi 8 months ago
parent
commit
ee81273aa6
  1. 35
      src/main/java/com/spring/modules/quote/service/impl/QuoteDetailServiceImpl.java

35
src/main/java/com/spring/modules/quote/service/impl/QuoteDetailServiceImpl.java

@ -580,6 +580,41 @@ public class QuoteDetailServiceImpl extends ServiceImpl<QuoteDetailMapper, Quote
// 计算 // 计算
// Map<String, Object> map = queryQuoteDetailCost(detail);
// BigDecimal toolCost = (BigDecimal)map.get("toolCost");
// BigDecimal packCost = (BigDecimal)map.get("packCost");
// BigDecimal shippingCost = (BigDecimal)map.get("shippingCost");
// BigDecimal otherCost = (BigDecimal)map.get("otherCost");
// BigDecimal unitQuotePrice = (BigDecimal)map.get("unitQuotePrice");
// BigDecimal actualQuotePrice = (BigDecimal)map.get("actualQuotePrice");
// BigDecimal labourCost = (BigDecimal)map.get("labourCost");
// BigDecimal machineCost = (BigDecimal)map.get("machineCost");
// BigDecimal manufactureCost = (BigDecimal)map.get("manufactureCost");
// BigDecimal testCost = (BigDecimal)map.get("testCost");
// BigDecimal elseCost = (BigDecimal)map.get("elseCost");
// 赋值
// detail.setPartCost(unitQuotePrice);
// detail.setAdjustPartCost(unitQuotePrice);
// detail.setBomUnYield(actualQuotePrice);
// detail.setAdjustBomUnYield(actualQuotePrice);
// detail.setLabourCost(labourCost);
// detail.setAdjustLabourCost(labourCost);
// detail.setMachineCost(manufactureCost);
// detail.setAdjustMachineCost(manufactureCost);
// detail.setFabricateCost(manufactureCost);
// detail.setAdjustFabricateCost(manufactureCost);
// detail.setToolCost(toolCost);
// detail.setAdjustToolCost(toolCost);
// detail.setTestCost(testCost);
// detail.setAdjustTestCost(testCost);
// detail.setElseCost(elseCost);
// detail.setAdjustElseCost(elseCost);
// detail.setPackCost(packCost);
// detail.setShippingCost(shippingCost);
// detail.setOtherCost(otherCost);
//
// // 修改
// lambdaUpdate().eq(QuoteDetail::getId, detail.getId()).update(detail);
} }
@Override @Override

Loading…
Cancel
Save