0.7.1 修改新版本gaea引入带来的语法规范问题

This commit is contained in:
2021-05-25 15:13:08 +08:00
parent 65ced3febe
commit 48d761e79c
2 changed files with 5 additions and 5 deletions

View File

@@ -21,8 +21,8 @@ allprojects {
subprojects {
ext {
version '0.7.0'
gaea_version = '0.11.0'
version '0.7.1'
gaea_version = '0.13.0'
spring_version = "2.3.0.RELEASE"
}

View File

@@ -28,7 +28,7 @@ class UserApp(
override fun add(command: UserCmd): HttpMessage {
return this.safeExecute("查询重复用户信息出错, 用户信息: ${serializer.serialize(command)}") {
val list = this.query!!.list(mapOf(Pair("name", command.name)), UserView::class.java)
val list = this.query.list(mapOf(Pair("name", command.name)), UserView::class.java)
if (list.count() == 0)
it.from(super.add(command))
else {
@@ -54,8 +54,8 @@ class UserApp(
@GetMapping("/{name}/forgot")
fun forgot(@PathVariable name: String): HttpMessage {
return this.safeExecute("遗忘用户密码出现异常") {
val users = this.query?.list(mapOf(Pair("name", name)), UserView::class.java)
if (users != null && users.isNotEmpty()) {
val users = this.query.list(mapOf(Pair("name", name)), UserView::class.java)
if (users.isNotEmpty()) {
it.load((this.service as IUserService).forgotPassword(users[0].id))
} else {