所有超级接口:
com.baomidou.mybatisplus.core.mapper.BaseMapper<ApiLog>, com.baomidou.mybatisplus.core.mapper.Mapper<ApiLog>

public interface ApiLogMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<ApiLog>
日志管理 Mapper 接口
从以下版本开始:
1.0.0
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    insert(ApiLog entity)
    因为 mybatis plus 有配置租户条件,然后如果要记录登录日志,这里插入日志的时候就不能判断当然登录用户是否有租户信息 所以要重写一下 mybatis plus 的默认插入方法

    从接口继承的方法 com.baomidou.mybatisplus.core.mapper.BaseMapper

    delete, deleteBatchIds, deleteById, deleteById, deleteByMap, exists, selectBatchIds, selectBatchIds, selectById, selectByMap, selectByMap, selectCount, selectList, selectList, selectList, selectList, selectMaps, selectMaps, selectMaps, selectMaps, selectMapsPage, selectObjs, selectObjs, selectOne, selectOne, selectPage, update, update, updateById
  • 方法详细资料

    • insert

      @InterceptorIgnore(tenantLine="true") int insert(ApiLog entity)
      因为 mybatis plus 有配置租户条件,然后如果要记录登录日志,这里插入日志的时候就不能判断当然登录用户是否有租户信息 所以要重写一下 mybatis plus 的默认插入方法
      指定者:
      insert 在接口中 com.baomidou.mybatisplus.core.mapper.BaseMapper<ApiLog>
      参数:
      entity - 日志实体类
      返回:
      int
      从以下版本开始:
      1.0.0