|
|
@ -215,7 +215,22 @@ public class QuoteDetailServiceImpl extends ServiceImpl<QuoteDetailMapper, Quote |
|
|
actualQuotePrice = actualQuotePrice.add(detailBom.getActualQuotePrice()); |
|
|
actualQuotePrice = actualQuotePrice.add(detailBom.getActualQuotePrice()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 测试 |
|
|
|
|
|
BigDecimal testCost = BigDecimal.ZERO; |
|
|
|
|
|
List<QuoteDetailTest> testList = quoteDetailTestService.lambdaQuery() |
|
|
|
|
|
.eq(QuoteDetailTest::getQuoteDetailId, quoteDetail.getId()) |
|
|
|
|
|
.list(); |
|
|
|
|
|
for (QuoteDetailTest detailTest : testList) { |
|
|
|
|
|
testCost = testCost.add(detailTest.getQuoteTestCost()); |
|
|
|
|
|
} |
|
|
|
|
|
// 其他 |
|
|
|
|
|
BigDecimal elseCost = BigDecimal.ZERO; |
|
|
|
|
|
List<QuoteDetailOther> otherList = quoteDetailOtherService.lambdaQuery() |
|
|
|
|
|
.eq(QuoteDetailOther::getQuoteDetailId, quoteDetail.getId()) |
|
|
|
|
|
.list(); |
|
|
|
|
|
for (QuoteDetailOther detailOther : otherList) { |
|
|
|
|
|
elseCost = elseCost.add(detailOther.getQuoteOtherCost()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 传入map |
|
|
// 传入map |
|
|
map.put("toolCost", toolCost); |
|
|
map.put("toolCost", toolCost); |
|
|
@ -228,6 +243,8 @@ public class QuoteDetailServiceImpl extends ServiceImpl<QuoteDetailMapper, Quote |
|
|
map.put("labourCost", labourCost); |
|
|
map.put("labourCost", labourCost); |
|
|
map.put("machineCost", machineCost); |
|
|
map.put("machineCost", machineCost); |
|
|
map.put("manufactureCost", manufactureCost); |
|
|
map.put("manufactureCost", manufactureCost); |
|
|
|
|
|
map.put("testCost", testCost); |
|
|
|
|
|
map.put("elseCost", elseCost); |
|
|
return map; |
|
|
return map; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|