update 首页订单金额数据汇总采用总结算金额(已经与实收金额对比过,取二者大于0的最小值)

This commit is contained in:
Lemon
2025-08-05 16:17:12 +08:00
parent c3cc8704fd
commit 5fddbd8e8c
3 changed files with 8 additions and 1 deletions

View File

@@ -991,7 +991,8 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
if (SecurityUtils.getUsername().equals("demo")) {
BigDecimal bigDecimal = new BigDecimal(Constants.THREE);
log.info("demo账号, begin:{}", JSON.toJSONString(generalInfo));
generalInfo.setTotalChargingAmount(new BigDecimal(generalInfo.getTotalChargingAmount()).multiply(bigDecimal).toString());
// generalInfo.setTotalChargingAmount(new BigDecimal(generalInfo.getTotalChargingAmount()).multiply(bigDecimal).toString());
generalInfo.setTotalChargingAmount(new BigDecimal(generalInfo.getTotalSettleAmount()).multiply(bigDecimal).toString());
generalInfo.setTotalPileQuantity(new BigDecimal(generalInfo.getTotalPileQuantity()).multiply(bigDecimal).toString());
generalInfo.setTotalChargingDegree(new BigDecimal(generalInfo.getTotalChargingDegree()).multiply(bigDecimal).toString());
generalInfo.setTotalChargingQuantity(new BigDecimal(generalInfo.getTotalChargingQuantity()).multiply(bigDecimal).toString());

View File

@@ -20,6 +20,11 @@ public class IndexGeneralSituationVO {
*/
private String totalChargingAmount;
/**
* 总结算金额
*/
private String totalSettleAmount;
/**
* 总充电笔数
*/