mirror of https://gitee.com/stylefeng/roses
【7.1.6】【statistics】整理
parent
236b6ddda3
commit
3b8075093d
|
@ -21,6 +21,7 @@ import cn.stylefeng.roses.kernel.system.modular.home.entity.InterfaceStatistics;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.home.mapper.InterfaceStatisticsMapper;
|
import cn.stylefeng.roses.kernel.system.modular.home.mapper.InterfaceStatisticsMapper;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.home.service.HomePageService;
|
import cn.stylefeng.roses.kernel.system.modular.home.service.HomePageService;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.statistic.entity.SysStatisticsCount;
|
import cn.stylefeng.roses.kernel.system.modular.statistic.entity.SysStatisticsCount;
|
||||||
|
import cn.stylefeng.roses.kernel.system.modular.statistic.service.SysStatisticsCountService;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.user.entity.SysUserOrg;
|
import cn.stylefeng.roses.kernel.system.modular.user.entity.SysUserOrg;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.user.service.SysUserOrgService;
|
import cn.stylefeng.roses.kernel.system.modular.user.service.SysUserOrgService;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
@ -62,6 +63,9 @@ public class HomePageServiceImpl extends ServiceImpl<InterfaceStatisticsMapper,
|
||||||
@Resource(name = "requestCountCacheApi")
|
@Resource(name = "requestCountCacheApi")
|
||||||
private CacheOperatorApi<Map<Long, Integer>> requestCountCacheApi;
|
private CacheOperatorApi<Map<Long, Integer>> requestCountCacheApi;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private SysStatisticsCountService sysStatisticsCountService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<LogRecordDTO> getDynamicList(LogManagerRequest logManagerRequest) {
|
public List<LogRecordDTO> getDynamicList(LogManagerRequest logManagerRequest) {
|
||||||
List<LogRecordDTO> logRecordDTOS = logManagerApi.findList(logManagerRequest);
|
List<LogRecordDTO> logRecordDTOS = logManagerApi.findList(logManagerRequest);
|
||||||
|
@ -158,6 +162,9 @@ public class HomePageServiceImpl extends ServiceImpl<InterfaceStatisticsMapper,
|
||||||
|
|
||||||
// todo
|
// todo
|
||||||
ArrayList<SysStatisticsCount> sysStatisticsCounts = new ArrayList<>();
|
ArrayList<SysStatisticsCount> sysStatisticsCounts = new ArrayList<>();
|
||||||
|
|
||||||
|
// todo
|
||||||
|
this.sysStatisticsCountService.saveBatch(sysStatisticsCounts);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,10 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* 接口统计内存缓存
|
* 接口统计内存缓存
|
||||||
*
|
*
|
||||||
|
* 缓存的key是用户ID,缓存的value是Map<Long, Integer>
|
||||||
|
*
|
||||||
|
* map的key是statUrlId,value是次数
|
||||||
|
*
|
||||||
* @author xixiaowei
|
* @author xixiaowei
|
||||||
* @date 2022/2/9 16:36
|
* @date 2022/2/9 16:36
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue