Commit fd22b0ad authored by shiyu's avatar shiyu

数据看板6

parent 66b34a12
......@@ -108,7 +108,7 @@ public class AdminDashbordServiceImpl implements AdminDashbordService {
collectOrderData.put("totalAmount", PriceUtil.convertPriceFenToYuan(collectOrderDataStat.getTotalAmount()));
collectOrderData.put("totalOrderNum", collectOrderDataStat.getTotalOrderNum());
double channelTotalProfit = collectOrderDataStat.getTotalAmount().doubleValue() * 0.05;
collectOrderData.put("totalProfit", PriceUtil.convertPriceFromStr(PriceUtil.convertDoubleToString(channelTotalProfit)));
collectOrderData.put("totalProfit", PriceUtil.convertDoubleToString(channelTotalProfit));
dataPanelVo.setCollectOrderData(collectOrderData);
//统计分销订单数据
......@@ -123,7 +123,7 @@ public class AdminDashbordServiceImpl implements AdminDashbordService {
distributionOrderData.put("totalOrderNum", distirbutionOrderDataStat.getTotalOrderNum());
double distributorProfit = distirbutionOrderDataStat.getTotalAmount().doubleValue() * 0.03;
double channelDistributionProfit = distirbutionOrderDataStat.getTotalAmount().doubleValue() - distributorProfit;
distributionOrderData.put("totalProfit", PriceUtil.convertPriceFromStr(PriceUtil.convertDoubleToString(channelDistributionProfit)));
distributionOrderData.put("totalProfit", PriceUtil.convertDoubleToString(channelDistributionProfit));
dataPanelVo.setDistributionOrderData(distributionOrderData);
return Result.success(dataPanelVo);
} catch (Exception e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment