From 1f1f5cee02469fd8b27235e8b2add1f0430085fb Mon Sep 17 00:00:00 2001 From: dimengzhe Date: Fri, 16 May 2025 11:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=A6=E8=BE=86=E5=88=A9?= =?UTF-8?q?=E6=B6=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../carsSoldProfit/CarsSoldProfitService.java | 31 +++++++++++++++---- .../ScmVehRebateCarsSoldProfitVo.java | 2 +- .../biz/scmvehrebate/ScmVehRebateService.java | 4 +-- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/carsSoldProfit/CarsSoldProfitService.java b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/carsSoldProfit/CarsSoldProfitService.java index 7bf1916d2b..57ffb86081 100644 --- a/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/carsSoldProfit/CarsSoldProfitService.java +++ b/anrui-reportcenter/anrui-reportcenter-biz/src/main/java/com/yxt/anrui/reportcenter/biz/carsSoldProfit/CarsSoldProfitService.java @@ -138,6 +138,25 @@ public class CarsSoldProfitService extends MybatisBaseService pagging = baseMapper.listPage(page, qw); List recordList = pagging.getRecords(); recordList.removeAll(Collections.singleton(null)); + if(!recordList.isEmpty()){ + for (int i = 0; i < recordList.size(); i++) { + CarsSoldProfitVo carsSoldProfitVo = recordList.get(i); + //预计毛利=出库价-成本+服务费+返利-中介费-调车费 + BigDecimal expectedMaoriBig = BigDecimal.ZERO; + String vinSid = carsSoldProfitVo.getVinSid(); + CarsSoldProfitRebateAllVo carsSoldProfitRebateAllVo = rebates(vinSid).getData(); + if(carsSoldProfitRebateAllVo != null){ + String expectedRebateTotal = carsSoldProfitRebateAllVo.getExpectedRebateTotal(); + carsSoldProfitVo.setRebatesTotal(expectedRebateTotal); + } + if(StringUtils.isNotBlank(carsSoldProfitVo.getExStockPrice())){ + expectedMaoriBig = expectedMaoriBig.add(new BigDecimal(carsSoldProfitVo.getExStockPrice())); + } + + + + } + } PagerVo p = PagerUtil.pageToVo(pagging, null); return p; } @@ -158,20 +177,20 @@ public class CarsSoldProfitService extends MybatisBaseService