@Service @Transactional public class AdminServiceImpl extends BaseService<Admin,Long> implements AdminService
| 构造器和说明 |
|---|
AdminServiceImpl(AdminMapper mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
countUnreadMessages(Long userId)
查询用户未读消息数量
|
String[] |
defaultLoginSelectProperties()
登录查询属性列表 默认登录查询参数:id,username,nickName,gender,avatarUrl,mobile,lastLoginDate,lastLoginIp,enabled,expired,locked,credentialsExpired,extraData,createdTime
|
LoginUser |
loadUserByUserIdentity(String identity,
Object identityValue,
String[] selectProperties,
boolean checkEnabled)
根据用户唯一标识查询用户
|
LoginUser |
loadUserByUsername(String username)
根据用户名查询用户
注意:需加载用户roles和permissions
|
LoginUser |
loadUserByUsername(String username,
String[] selectProperties,
boolean checkEnabled)
根据用户名查询用户
|
List<Map<String,Object>> |
loadUserPermissions(Long userId)
加载用户权限
|
List<Map<String,Object>> |
loadUserRoles(Long userId)
加载用户角色
|
int |
updateLastLoginData(String loginIp,
Long userId)
更新最后登录时间
|
batchInsertTable, count, countByCondition, deleteByCondition, deleteByIds, deleteByPrimaryKey, executeSql, existsWithPrimaryKey, getJdbcTemplate, insert, insertList, insertListIgnoreConflict, insertSelective, insertSelectiveListIgnoreConflict, insertTable, insertTable, queryForList, queryForList, queryForMap, queryForObject, queryForSingleColumn, select, selectAll, selectByCondition, selectByConditionForOffsetAndLimit, selectByConditionForStartPage, selectByConditionForStartPage, selectByIds, selectByPrimaryKey, selectFirst, selectFirstByCondition, selectForStartPage, selectOne, updateByCondition, updateByConditionSelective, updateByPrimaryKey, updateByPrimaryKeySelective, updateTable, wrapCondition, wrapCondition, wrapCondition, wrapCondition, wrapCondition, wrapPageRowBounds, wrapPageRowBoundsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchInsertTable, count, countByCondition, deleteByCondition, deleteByIds, deleteByPrimaryKey, executeSql, existsWithPrimaryKey, getJdbcTemplate, insert, insertList, insertListIgnoreConflict, insertSelective, insertSelectiveListIgnoreConflict, insertTable, insertTable, queryForList, queryForList, queryForMap, queryForObject, queryForSingleColumn, select, selectAll, selectByCondition, selectByConditionForOffsetAndLimit, selectByConditionForStartPage, selectByConditionForStartPage, selectByIds, selectByPrimaryKey, selectFirst, selectFirstByCondition, selectForStartPage, selectOne, updateByCondition, updateByConditionSelective, updateByPrimaryKey, updateByPrimaryKeySelective, updateTable, wrapCondition, wrapCondition@Autowired public AdminServiceImpl(AdminMapper mapper)
public LoginUser loadUserByUsername(String username)
IUserLoginServiceloadUserByUsername 在接口中 IUserLoginService<Long>public LoginUser loadUserByUsername(String username, String[] selectProperties, boolean checkEnabled)
IUserLoginServiceloadUserByUsername 在接口中 IUserLoginService<Long>selectProperties - 查询的参数列表checkEnabled - 是否检查启用和禁用状态
注意:需加载用户roles和permissionspublic LoginUser loadUserByUserIdentity(String identity, Object identityValue, String[] selectProperties, boolean checkEnabled)
IUserLoginServiceloadUserByUserIdentity 在接口中 IUserLoginService<Long>identity - 可以是 username,id,openidselectProperties - 查询的参数列表checkEnabled - 是否检查启用和禁用状态
注意:需加载用户roles和permissionspublic int countUnreadMessages(Long userId)
IUserLoginServicecountUnreadMessages 在接口中 IUserLoginService<Long>public List<Map<String,Object>> loadUserRoles(Long userId)
IUserLoginServiceloadUserRoles 在接口中 IUserLoginService<Long>public List<Map<String,Object>> loadUserPermissions(Long userId)
IUserLoginServiceloadUserPermissions 在接口中 IUserLoginService<Long>public int updateLastLoginData(String loginIp, Long userId)
IUserLoginServiceupdateLastLoginData 在接口中 IUserLoginService<Long>loginIp - 登录ip地址public String[] defaultLoginSelectProperties()
IUserLoginServicedefaultLoginSelectProperties 在接口中 IUserLoginService<Long>Copyright © 2020. All rights reserved.