修改数据大屏总人数统计
This commit is contained in:
parent
d59212d23b
commit
c42cea4f1c
@ -33,6 +33,12 @@ public interface XhpcHistoryOrderMapper {
|
||||
@Param("userType") Integer userType,
|
||||
@Param("currentTime") String currentTime);
|
||||
|
||||
//社区用户统计
|
||||
Long xhpcCommunityPersonnelSum();
|
||||
|
||||
//B端用户统计
|
||||
Long xhpcCustomersPersonnelSum();
|
||||
|
||||
/**
|
||||
* query total electric quantity by multiple tenant or multiple charging station
|
||||
*
|
||||
|
||||
@ -123,8 +123,8 @@ public class XhpcDataBigScreenServiceImpl implements XhpcDataBigScreenService {
|
||||
Long appUserCount = xhpcAppUserMapper.selectTotalCountByTenantIdAndCurrentTime(tenantIdsStr, null);
|
||||
List<Long> chargingStationIdList = xhpcChargingStationMapper.selectChargingStationIds(tenantIdsStr);
|
||||
//(0 C端用户 1 流量方用户 2社区用户 3B端用户)
|
||||
Long communityUserCount = xhpcHistoryOrderMapper.selectUserTotalCountByTenantIdsAndChargingStationIdsAndUserTypeAndCurrentTime(tenantIdsStr, chargingStationIdList, UserTypeUtil.COMMUNIT_TYPE, null);
|
||||
Long customerUserCount = xhpcHistoryOrderMapper.selectUserTotalCountByTenantIdsAndChargingStationIdsAndUserTypeAndCurrentTime(tenantIdsStr, chargingStationIdList, UserTypeUtil.CUSTOMERS_TYPE, null);
|
||||
Long communityUserCount = xhpcHistoryOrderMapper.xhpcCommunityPersonnelSum();
|
||||
Long customerUserCount = xhpcHistoryOrderMapper.xhpcCustomersPersonnelSum();
|
||||
return R.ok(appUserCount + communityUserCount + customerUserCount);
|
||||
|
||||
//judge care param function
|
||||
|
||||
@ -163,6 +163,14 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="xhpcCommunityPersonnelSum" resultType="long">
|
||||
select count(community_personnel_id) from xhpc_community_personnel where del_flag =0
|
||||
</select>
|
||||
<select id="xhpcCustomersPersonnelSum" resultType="long">
|
||||
select count(customers_personnel_id) from xhpc_customers_personnel where del_flag =0
|
||||
</select>
|
||||
|
||||
<select id="selectOrderTrendByTenantIdsAndChargingStationIds" resultType="java.util.Map">
|
||||
SELECT
|
||||
`current_time`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user