zhangchao
2024-08-28 d8cc1b75c7590ea3a7e65f61c0f07b131fef0ca0
src/main/java/com/zy/system/controller/HomeController.java
@@ -1,6 +1,6 @@
package com.zy.system.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.core.annotations.ManagerAuth;
import com.core.common.Arith;
import com.core.common.R;
@@ -31,9 +31,9 @@
    @RequestMapping("/top")
    @ManagerAuth
    public R top(){
        int logTotal = operateLogService.selectCount(new EntityWrapper<>());
        int logTotal = operateLogService.count(new QueryWrapper<>());
        int logWeek = operateLogService.selectCountByCurrentWeek();
        int userTotal = userService.selectCount(new EntityWrapper<>());
        int userTotal = userService.count(new QueryWrapper<>());
        int loginWeek = userLoginService.selectCountByCurrentWeek();
        Map<String, Object> result = new HashMap<>();