0.7.1 修改新版本gaea引入带来的语法规范问题
This commit is contained in:
@@ -21,8 +21,8 @@ allprojects {
|
|||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
ext {
|
ext {
|
||||||
version '0.7.0'
|
version '0.7.1'
|
||||||
gaea_version = '0.11.0'
|
gaea_version = '0.13.0'
|
||||||
spring_version = "2.3.0.RELEASE"
|
spring_version = "2.3.0.RELEASE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class UserApp(
|
|||||||
|
|
||||||
override fun add(command: UserCmd): HttpMessage {
|
override fun add(command: UserCmd): HttpMessage {
|
||||||
return this.safeExecute("查询重复用户信息出错, 用户信息: ${serializer.serialize(command)}") {
|
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)
|
if (list.count() == 0)
|
||||||
it.from(super.add(command))
|
it.from(super.add(command))
|
||||||
else {
|
else {
|
||||||
@@ -54,8 +54,8 @@ class UserApp(
|
|||||||
@GetMapping("/{name}/forgot")
|
@GetMapping("/{name}/forgot")
|
||||||
fun forgot(@PathVariable name: String): HttpMessage {
|
fun forgot(@PathVariable name: String): HttpMessage {
|
||||||
return this.safeExecute("遗忘用户密码出现异常") {
|
return this.safeExecute("遗忘用户密码出现异常") {
|
||||||
val users = this.query?.list(mapOf(Pair("name", name)), UserView::class.java)
|
val users = this.query.list(mapOf(Pair("name", name)), UserView::class.java)
|
||||||
if (users != null && users.isNotEmpty()) {
|
if (users.isNotEmpty()) {
|
||||||
it.load((this.service as IUserService).forgotPassword(users[0].id))
|
it.load((this.service as IUserService).forgotPassword(users[0].id))
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user