Use flyway to initialize sqlite database

This commit is contained in:
2023-12-14 14:03:09 +08:00
parent e309ac67b6
commit 17bfb2feb4
24 changed files with 174 additions and 18 deletions

View File

@@ -49,11 +49,14 @@ class SysLogServiceImpl(
it.operateUsername =
it.operateUserId?.let { it1 -> userService.getOne(it1)?.username }
}
val userIds = sysLogIPage.records.map { it.operateUserId }
userService.list(KtQueryWrapper(User()).select(User::id, User::username).`in`(User::id, userIds)).forEach { user ->
sysLogIPage.records.forEach {
if (it.operateUserId == user.id) {
it.operateUsername = user.username
if (sysLogIPage.records.isNotEmpty()) {
val userIds = sysLogIPage.records.map { it.operateUserId }
userService.list(KtQueryWrapper(User()).select(User::id, User::username).`in`(User::id, userIds)).forEach { user ->
sysLogIPage.records.forEach {
if (it.operateUserId == user.id) {
it.operateUsername = user.username
}
}
}
}