Class LoginInfoServiceImpl
java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<LoginInfoMapper,LoginInfo>
cn.sinozg.applet.biz.system.service.impl.LoginInfoServiceImpl
- All Implemented Interfaces:
FrameworkLoginLogService,LoginInfoService,com.baomidou.mybatisplus.extension.repository.IRepository<LoginInfo>,com.baomidou.mybatisplus.extension.service.IService<LoginInfo>
@Service
public class LoginInfoServiceImpl
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<LoginInfoMapper,LoginInfo>
implements LoginInfoService, FrameworkLoginLogService
系统访问记录 服务实现类
- Since:
- 2022-09-14 12:51:35
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate cn.sinozg.applet.common.properties.AppValueprivate final org.slf4j.Loggerprivate LoginInfoMapperFields inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
baseMapperFields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncn.sinozg.applet.biz.system.vo.response.LoginAgentResponsevoid清空系统登录日志intdeleteLoginInfoByIds(List<String> infoIds) 批量删除系统登录日志voidinsertLoginInfo(cn.sinozg.applet.biz.system.vo.response.LoginAgentResponse agent, String username, String loginKey, String type, boolean success, String message) 新增系统登录日志list(LoginInfoPageListRequest loginInfo) 查询系统登录日志集合cn.sinozg.applet.common.core.base.BasePageResponse<List<LoginInfoPageListResponse>>selectLoginInfoPage(cn.sinozg.applet.common.core.base.PagingRequest page, LoginInfoPageListRequest loginInfo) 查询系统登录日志集合private voidsetTenantId(LoginInfoPageListRequest loginInfo) 设置租户Methods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchByIdMethods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateByIdMethods inherited from interface com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
Field Details
-
app
private cn.sinozg.applet.common.properties.AppValue app -
loginInfoMapper
-
log
private final org.slf4j.Logger log
-
-
Constructor Details
-
LoginInfoServiceImpl
public LoginInfoServiceImpl()
-
-
Method Details
-
browserInfo
public cn.sinozg.applet.biz.system.vo.response.LoginAgentResponse browserInfo()- Specified by:
browserInfoin interfaceFrameworkLoginLogService
-
insertLoginInfo
public void insertLoginInfo(cn.sinozg.applet.biz.system.vo.response.LoginAgentResponse agent, String username, String loginKey, String type, boolean success, String message) 新增系统登录日志- Specified by:
insertLoginInfoin interfaceFrameworkLoginLogService
-
selectLoginInfoPage
public cn.sinozg.applet.common.core.base.BasePageResponse<List<LoginInfoPageListResponse>> selectLoginInfoPage(cn.sinozg.applet.common.core.base.PagingRequest page, LoginInfoPageListRequest loginInfo) 查询系统登录日志集合- Specified by:
selectLoginInfoPagein interfaceLoginInfoService- Parameters:
loginInfo- 访问日志对象page- 分页对象- Returns:
- 登录记录集合
-
list
Description copied from interface:LoginInfoService查询系统登录日志集合- Specified by:
listin interfaceLoginInfoService- Parameters:
loginInfo- 查询参数- Returns:
- 集合
-
deleteLoginInfoByIds
批量删除系统登录日志- Specified by:
deleteLoginInfoByIdsin interfaceLoginInfoService- Parameters:
infoIds- 需要删除的登录日志ID- Returns:
- 删除成功条数
-
cleanLoginInfo
public void cleanLoginInfo()清空系统登录日志- Specified by:
cleanLoginInfoin interfaceLoginInfoService
-
setTenantId
设置租户- Parameters:
loginInfo- 查询信息
-