刘帅
2026-09-29 b55cd9aad0835a96a790e61f9f89edc2fae1be9f
cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/DataStatisticsController.java
@@ -600,19 +600,16 @@
    }
    private Map<String, Object> getTicketIncome(String time, Integer operatorId, Integer storeId) {
        List<Integer> userIds;
        List<Integer> storeIds;
        if (storeId != null) {
            userIds = listStatisticsAppUserIdsForStore(storeId);
            storeIds = Collections.singletonList(storeId);
        } else if (operatorId != null) {
            userIds = listStatisticsAppUserIds(operatorId);
            storeIds = listStatisticsStoreIds(operatorId, false);
        } else {
            userIds = listStatisticsAppUserIds(null);
            // 平台统计不限制 storeId,包含全国/城市通用门票等购买记录 storeId 为空的数据。
            storeIds = Collections.emptyList();
        }
        if (userIds == null) {
            userIds = new ArrayList<>();
        }
        // 活动服务对空集合会补充 -1,传入可变副本以兼容该历史实现。
        return pointMercharsClient.queryFee(new QueryDataFee(time, new ArrayList<>(userIds)));
        return pointMercharsClient.queryTicketFee(new QueryDataFee(time, new ArrayList<>(storeIds)));
    }
    /** 惠民卡采用支付、退款两条事实流水,赠送卡不计营收。 */