This commit is contained in:
2023-06-19 16:28:30 +08:00
parent 78cd8d1069
commit 1a4c93b1c9

View File

@@ -595,7 +595,16 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
}
log.info("后管首页基本信息查询 authorizedMap:{}, dto:{}", JSONObject.toJSONString(authorizedMap), JSONObject.toJSONString(dto));
dto.setStationIdList(stationIdList);
return pileBasicInfoMapper.getGeneralSituation(dto);
IndexGeneralSituationVO generalSituation = pileBasicInfoMapper.getGeneralSituation(dto);
// demo账号
if (SecurityUtils.getUsername().equals("demo")) {
generalSituation.setTotalChargingAmount(new BigDecimal(generalSituation.getTotalChargingAmount()).multiply(new BigDecimal("20")).toString());
generalSituation.setTotalPileQuantity(new BigDecimal(generalSituation.getTotalPileQuantity()).multiply(new BigDecimal("20")).toString());
generalSituation.setTotalChargingDegree(new BigDecimal(generalSituation.getTotalChargingDegree()).multiply(new BigDecimal("20")).toString());
generalSituation.setTotalChargingQuantity(new BigDecimal(generalSituation.getTotalChargingQuantity()).multiply(new BigDecimal("20")).toString());
generalSituation.setTotalMemberAmount(new BigDecimal(generalSituation.getTotalMemberAmount()).multiply(new BigDecimal("20")).toString());
}
return generalSituation;
}
/**