Complete core functions #9
@@ -84,7 +84,12 @@ class UserServiceImpl(
|
||||
PageUtil.setPageSort(userGetParam, userIdsPage, OrderItem.asc("id"))
|
||||
|
||||
val userIdsIPage =
|
||||
baseMapper.selectPage(userIdsPage,userGetParam?.searchType ?: "ALL", userGetParam?.searchValue, userGetParam?.searchRegex ?: false)
|
||||
baseMapper.selectPage(
|
||||
userIdsPage,
|
||||
userGetParam?.searchType ?: "ALL",
|
||||
userGetParam?.searchValue,
|
||||
userGetParam?.searchRegex ?: false
|
||||
)
|
||||
val userPage = Page<User>(userIdsIPage.current, userIdsIPage.size, userIdsIPage.total)
|
||||
if (userIdsIPage.total > 0) {
|
||||
userPage.setRecords(baseMapper.selectListWithRoleInfoByIds(userIdsIPage.records))
|
||||
@@ -171,6 +176,10 @@ class UserServiceImpl(
|
||||
oldGroupList.toSet().let { addGroupIds.removeAll(it) }
|
||||
|
||||
baseMapper.updateById(user)
|
||||
baseMapper.update(
|
||||
KtUpdateWrapper(User()).eq(User::id, user.id).set(User::expiration, user.expiration)
|
||||
.set(User::credentialsExpiration, user.credentialsExpiration)
|
||||
)
|
||||
|
||||
user.userInfo?.let { userInfo ->
|
||||
userInfoService.getOne(
|
||||
|
||||
Reference in New Issue
Block a user