修复数据大屏订单来源比例接口Bug

This commit is contained in:
wenhui 2022-03-15 17:58:32 +08:00
parent 4cd3d35b23
commit 8ef88e78ce

View File

@ -408,7 +408,7 @@ public class XhpcDataBigScreenServiceImpl implements XhpcDataBigScreenService {
*/ */
private OrderRatio getOrderRatio(List<String> tenantIdList, List<Long> chargingStationIdList) { private OrderRatio getOrderRatio(List<String> tenantIdList, List<Long> chargingStationIdList) {
Long totalCount = xhpcHistoryOrderMapper.selectCountByTenantIdsAndChargingStationIds(tenantIdList, null); Long totalCount = xhpcHistoryOrderMapper.selectCountByTenantIdsAndChargingStationIds(tenantIdList, chargingStationIdList);
OrderRatio orderRatio = new OrderRatio(); OrderRatio orderRatio = new OrderRatio();
orderRatio.setTotalCount(totalCount); orderRatio.setTotalCount(totalCount);
Long stClientNumber = xhpcHistoryOrderMapper.selectOrderCountBy(tenantIdList, chargingStationIdList, UserTypeUtil.COMMUNIT_TYPE, null); Long stClientNumber = xhpcHistoryOrderMapper.selectOrderCountBy(tenantIdList, chargingStationIdList, UserTypeUtil.COMMUNIT_TYPE, null);