ISysLogService.java 3.4 KB
Newer Older
苗卫卫 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
package com.boco.nbd.wios.log.service;


import com.boco.nbd.framework.persistence.IBaseDaoService;
import com.boco.nbd.wios.log.entity.po.*;
import com.boco.nbd.wios.log.entity.qo.SysLogQO;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * ISysLogService
 * @Author: ZQY
 * @Date: 2022/10/17
 **/
public interface ISysLogService extends IBaseDaoService<SysLogPO, SysLogQO, String> {

    /** ###################登录日志分割线######################### */

    /**
     * 根据时间用户统计日志
     *
     * @param start
     * @param end
     * @return
     * @throws DataAccessException
     */
     List<UserLogCountInfoPO> getUsersLoginStat(String start, String end)
            throws DataAccessException;


    /**
     * 根据用户ID查询日志详细信息
     *
     * @param start
     * @param end
     * @param userId
     * @return
     * @throws DataAccessException
     */
     List<SysLogInfoPO> getUsersLoginDetails(String start, String end, String userId) throws DataAccessException;


    /**
     * 根据时间角色统计日志
     *
     * @param start
     * @param end
     * @return
     * @throws DataAccessException
     */
    List<RoleLogCountInfoPO> getRolesLoginStat(String start, String end)
            throws DataAccessException;



    /**
     * 根据角色查询日志
     *
     * @param start
     * @param end
     * @param roleName
     * @return
     * @throws DataAccessException
     */
    List<SysLogInfoPO> getRolesLoginDetails(String start, String end, String roleName)
            throws DataAccessException;



    /** ###################访问日志统计分割线######################### */
    /**
     * 根据时间用户访问统计日志
     *
     * @param start
     * @param end
     * @return
     * @throws DataAccessException
     */
    List<UserLogCountInfoPO> countByUserDate(String start, String end) throws DataAccessException;


    /**
     * 根据用户ID查询访问日志详细信息
     *
     * @param start
     * @param end
     * @param userId
     * @return
     * @throws DataAccessException
     */
     List<SysLogInfoPO> selectLogInfoByUserIdDate(String start, String end, String userId)
            throws DataAccessException;


    /**
     * 根据时间角色统计访问日志
     *
     * @param start
     * @param end
     * @return
     * @throws DataAccessException
     */
     List<RoleLogCountInfoPO> countByRoleDate(String start, String end) throws DataAccessException;


    /**
     * 根据角色查询访问日志
     *
     * @param start
     * @param end
     * @param roleName
     * @return
     * @throws DataAccessException
     */
     List<SysLogInfoPO> selectByRoleDate(String start, String end, String roleName)
            throws DataAccessException;



    /** ###################模块访问日志统计分割线######################### */
    /**
     * 根据时间模块统计日志
     *
     * @param start
     * @param end
     * @return
     * @throws DataAccessException
     */
     List<ModuleLogCountInfoPO> countByModuleDate(String start, String end)
            throws DataAccessException;


    /**
     * 根据模块ID查询日志详细信息
     *
     * @param start
     * @param end
     * @param moduleId
     * @return
     * @throws DataAccessException
     */
     List<SysLogInfoPO> selectLogInfoByModuleIdDate(String start, String end, String moduleId)
            throws DataAccessException;
}