|
|
|
@ -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 |
|
|
|
|