Complete core functions #9

Merged
FatttSnake merged 171 commits from FatttSnake into dev 2024-02-23 11:56:35 +08:00
Showing only changes of commit 929c01f98f - Show all commits

View File

@@ -154,8 +154,8 @@ object UserConverter {
avatar = userUpdateParam.avatar
email = userUpdateParam.email
}
roles = userUpdateParam.roleIds?.map { Role().apply { id = it } }
groups = userUpdateParam.groupIds?.map { Group().apply { id = it } }
roles = if (userUpdateParam.id != 0L) userUpdateParam.roleIds?.map { Role().apply { id = it } } else null
groups = if (userUpdateParam.id != 0L) userUpdateParam.groupIds?.map { Group().apply { id = it } } else null
}
fun userPageToUserWithRoleInfoPageVo(userPage: IPage<User>) = PageVo(