1
13693261870
2024-11-27 63f04d92a2376a6272d0ad61358475d527f26a2d
se-modules/se-system/src/main/java/com/se/system/controller/IndexController.java
@@ -62,7 +62,7 @@
    @Log(title = "新增用户统计", businessType = BusinessType.OTHER)
    @GetMapping("/newUserCount")
    public Map<String, Object> newUserCount(Integer day) {
        if (null == day || day < 1) day = 7;
        if (null == day || day < 1) day = 15;
        if (day > 365) day = 365;
        Map<String, Object> map = new HashMap<>();
@@ -84,10 +84,13 @@
    // ⑤用户统计排行(活跃用户):以一定时间段内的登录时间或登录次数排名,展示前五名的用户信息
    @Log(title = "用户统计排行", businessType = BusinessType.OTHER)
    @GetMapping("/userCountList")
    public Map<String, Object> userCountList() {
        Map<String, Object> map = new HashMap<>();
    public List<Map<String, Object>> userCountList(Integer day, Integer amount) {
        if (null == day || day < 1) day = 15;
        if (day > 365) day = 365;
        if (null == amount) amount = 5;
        if (amount > 100) amount = 100;
        return map;
        return indexService.userCountList(day, amount);
    }
    // ⑥常用系统展示/各系统访问信息:基于用户访问次数排名,展示前五个系统的排名