|
|
|
@ -2,6 +2,7 @@ package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ISysDashboardService;
|
|
|
|
|
import cn.estsh.i3plus.core.apiservice.dao.ISysLogSystemDao;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoIgnoreLog;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.common.Pager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.HqlPack;
|
|
|
|
@ -51,18 +52,21 @@ public class SysDashboardService implements ISysDashboardService {
|
|
|
|
|
private SysUserRepository sysUserRDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询组织个数")
|
|
|
|
|
public long getSysOrganizeCount() {
|
|
|
|
|
return sysOrganizeRDao.listCount();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "获取部门数量")
|
|
|
|
|
public long getSysDepartmentCount() {
|
|
|
|
|
return sysDepartmentRDao.listCount();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询用户登录日志",notes = "查询用户登录日志")
|
|
|
|
|
public List<SysUser> findSysUserLoginLog(Integer size) {
|
|
|
|
|
StringBuffer orderString = new StringBuffer();
|
|
|
|
@ -72,6 +76,7 @@ public class SysDashboardService implements ISysDashboardService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询操作日志",notes = "查询最新的几条操作日志")
|
|
|
|
|
public List findNewSysLogOperateSize(Integer size) {
|
|
|
|
|
Pager page = new Pager();
|
|
|
|
@ -84,6 +89,7 @@ public class SysDashboardService implements ISysDashboardService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询操异常日志",notes = "查询最新的几条异常日志")
|
|
|
|
|
public List findNewSysLogExceptionSize(Integer size) {
|
|
|
|
|
Pager page = new Pager();
|
|
|
|
@ -96,18 +102,21 @@ public class SysDashboardService implements ISysDashboardService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询系统日志",notes = "查询系统日志各级别占比")
|
|
|
|
|
public Map findSysLogSystempByLevel(String startTime, String endTime) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询系统日志",notes = "查询系统日志平均执行时间")
|
|
|
|
|
public Map querySysLogSystemAvgExecuteTime(String startTime, String endTime) {
|
|
|
|
|
return sysLogSystemDao.querySysLogSystemAvgExecuteTime(startTime,endTime);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@AnnoIgnoreLog
|
|
|
|
|
@ApiOperation(value = "查询系统日志",notes = "查询各模块系统日志数量")
|
|
|
|
|
public Map querySysLogSystemByLevel(String startTime, String endTime) {
|
|
|
|
|
return sysLogSystemDao.querySysLogSystemByLevel(startTime,endTime);
|
|
|
|
|