mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-21 07:39:55 +08:00
update 首页数据大屏
This commit is contained in:
@@ -147,4 +147,11 @@ public interface MemberBasicInfoMapper {
|
||||
* @return 会员总数
|
||||
*/
|
||||
Long countTotalMembers();
|
||||
|
||||
/**
|
||||
* 统计今日新增会员数
|
||||
*
|
||||
* @return 今日新增会员数
|
||||
*/
|
||||
Long countTodayNewMembers();
|
||||
}
|
||||
|
||||
@@ -179,4 +179,25 @@ public interface PileBasicInfoMapper {
|
||||
List<PileDetailInfoVO> getPileDetailInfoList(String stationId);
|
||||
|
||||
int movePile2AnotherStation(ReplaceMerchantStationDTO dto);
|
||||
|
||||
/**
|
||||
* 查询当日累计交易金额
|
||||
*
|
||||
* @return 当日交易金额
|
||||
*/
|
||||
java.math.BigDecimal getTodayTransactionAmount();
|
||||
|
||||
/**
|
||||
* 查询当日充电电量
|
||||
*
|
||||
* @return 当日充电电量
|
||||
*/
|
||||
java.math.BigDecimal getTodayElectricity();
|
||||
|
||||
/**
|
||||
* 查询本月日均充电电量
|
||||
*
|
||||
* @return 月均充电电量
|
||||
*/
|
||||
java.math.BigDecimal getMonthlyAvgElectricity();
|
||||
}
|
||||
|
||||
@@ -150,4 +150,32 @@ public interface PileConnectorInfoMapper {
|
||||
* @return
|
||||
*/
|
||||
List<String> queryAbnormalDeviceCount(String stationId);
|
||||
|
||||
/**
|
||||
* 统计充电枪总数
|
||||
*
|
||||
* @return 充电枪总数
|
||||
*/
|
||||
Long countTotalConnectors();
|
||||
|
||||
/**
|
||||
* 统计在线充电桩数量(枪口状态不为离网和故障的桩)
|
||||
*
|
||||
* @return 在线充电桩数量
|
||||
*/
|
||||
Long countOnlinePiles();
|
||||
|
||||
/**
|
||||
* 统计直流充电桩数量(快充)
|
||||
*
|
||||
* @return 直流充电桩数量
|
||||
*/
|
||||
Long countDcPiles();
|
||||
|
||||
/**
|
||||
* 统计交流充电桩数量(慢充)
|
||||
*
|
||||
* @return 交流充电桩数量
|
||||
*/
|
||||
Long countAcPiles();
|
||||
}
|
||||
|
||||
@@ -189,4 +189,11 @@ public interface MemberBasicInfoService {
|
||||
* @return 会员总数
|
||||
*/
|
||||
Long countTotalMembers();
|
||||
|
||||
/**
|
||||
* 统计今日新增会员数
|
||||
*
|
||||
* @return 今日新增会员数
|
||||
*/
|
||||
Long countTodayNewMembers();
|
||||
}
|
||||
|
||||
@@ -258,4 +258,25 @@ public interface PileBasicInfoService {
|
||||
* @return
|
||||
*/
|
||||
int movePile2AnotherStation(ReplaceMerchantStationDTO dto);
|
||||
|
||||
/**
|
||||
* 查询当日累计交易金额
|
||||
*
|
||||
* @return 当日交易金额
|
||||
*/
|
||||
java.math.BigDecimal getTodayTransactionAmount();
|
||||
|
||||
/**
|
||||
* 查询当日充电电量
|
||||
*
|
||||
* @return 当日充电电量
|
||||
*/
|
||||
java.math.BigDecimal getTodayElectricity();
|
||||
|
||||
/**
|
||||
* 查询本月日均充电电量
|
||||
*
|
||||
* @return 月均充电电量
|
||||
*/
|
||||
java.math.BigDecimal getMonthlyAvgElectricity();
|
||||
}
|
||||
|
||||
@@ -191,4 +191,32 @@ public interface PileConnectorInfoService {
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> getConnectorStatusNum(List<String> stationIds, String connectorStatus);
|
||||
|
||||
/**
|
||||
* 统计充电枪总数
|
||||
*
|
||||
* @return 充电枪总数
|
||||
*/
|
||||
Long countTotalConnectors();
|
||||
|
||||
/**
|
||||
* 统计在线充电桩数量
|
||||
*
|
||||
* @return 在线充电桩数量
|
||||
*/
|
||||
Long countOnlinePiles();
|
||||
|
||||
/**
|
||||
* 统计直流充电桩数量(快充)
|
||||
*
|
||||
* @return 直流充电桩数量
|
||||
*/
|
||||
Long countDcPiles();
|
||||
|
||||
/**
|
||||
* 统计交流充电桩数量(慢充)
|
||||
*
|
||||
* @return 交流充电桩数量
|
||||
*/
|
||||
Long countAcPiles();
|
||||
}
|
||||
|
||||
@@ -920,4 +920,9 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
|
||||
return memberBasicInfoMapper.countTotalMembers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long countTodayNewMembers() {
|
||||
return memberBasicInfoMapper.countTodayNewMembers();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1633,4 +1633,19 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
||||
.build();
|
||||
pileTransactionService.doCreatePileTransaction(transactionDTO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public java.math.BigDecimal getTodayTransactionAmount() {
|
||||
return pileBasicInfoMapper.getTodayTransactionAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public java.math.BigDecimal getTodayElectricity() {
|
||||
return pileBasicInfoMapper.getTodayElectricity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public java.math.BigDecimal getMonthlyAvgElectricity() {
|
||||
return pileBasicInfoMapper.getMonthlyAvgElectricity();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1304,4 +1304,24 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
||||
Set<String> set = new HashSet<>(list);
|
||||
return set.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long countTotalConnectors() {
|
||||
return pileConnectorInfoMapper.countTotalConnectors();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long countOnlinePiles() {
|
||||
return pileConnectorInfoMapper.countOnlinePiles();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long countDcPiles() {
|
||||
return pileConnectorInfoMapper.countDcPiles();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long countAcPiles() {
|
||||
return pileConnectorInfoMapper.countAcPiles();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,68 @@ public class BigDataOverviewVO {
|
||||
* 充电站数量
|
||||
*/
|
||||
private Long totalStations;
|
||||
|
||||
/**
|
||||
* 日增用户数
|
||||
*/
|
||||
private Long dailyNewUsers;
|
||||
|
||||
/**
|
||||
* 当日累计交易金额(元)
|
||||
*/
|
||||
private String todayTransactionAmount;
|
||||
|
||||
/**
|
||||
* 今日充电电量(kWh)
|
||||
*/
|
||||
private String todayElectricity;
|
||||
|
||||
/**
|
||||
* 月均充电电量(kWh)
|
||||
*/
|
||||
private String monthlyAvgElectricity;
|
||||
|
||||
/**
|
||||
* 充电枪总数
|
||||
*/
|
||||
private Long totalGuns;
|
||||
|
||||
/**
|
||||
* 在线充电桩数量
|
||||
*/
|
||||
private Long onlinePiles;
|
||||
|
||||
/**
|
||||
* 直流充电桩数量
|
||||
*/
|
||||
private Long onlineStations;
|
||||
|
||||
/**
|
||||
* 交流充电桩数量
|
||||
*/
|
||||
private Long onlineGuns;
|
||||
|
||||
/**
|
||||
* 累计碳减排量(吨)
|
||||
* = 累计充电量(kWh) × 0.5306 / 1000
|
||||
*/
|
||||
private String carbonReduction;
|
||||
|
||||
/**
|
||||
* 单次充电平均减碳量(kg)
|
||||
* = 累计碳减排量(kg) / 总订单数
|
||||
*/
|
||||
private String avgCarbonPerOrder;
|
||||
|
||||
/**
|
||||
* 节约燃油(升)
|
||||
* = 累计充电量(kWh) × 8 / 15
|
||||
*/
|
||||
private String fuelSaved;
|
||||
|
||||
/**
|
||||
* 相当于替代标准煤(吨)
|
||||
* = 累计充电量(kWh) × 0.000404
|
||||
*/
|
||||
private String standardCoalSaved;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user