From e476fe6f5d92c441caf8d47f3cd71ae3dbea054e Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 21 Apr 2020 19:50:36 +0800 Subject: [PATCH] =?UTF-8?q?Long=E7=B1=BB=E5=9E=8B=E6=AF=94=E8=BE=83?= =?UTF-8?q?=E7=9B=B8=E7=AD=89=E9=97=AE=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/system/SysUserController.java | 2 +- ruoyi-generator/src/main/resources/vm/java/domain.java.vm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java index 148937235..b4d46e1d4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -192,7 +192,7 @@ public class SysUserController extends BaseController user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt())); if (userService.resetUserPwd(user) > 0) { - if (ShiroUtils.getUserId() == user.getUserId()) + if (ShiroUtils.getUserId().longValue() == user.getUserId().longValue()) { ShiroUtils.setSysUser(userService.selectUserById(user.getUserId())); } diff --git a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm index 468714e5e..76e51b030 100644 --- a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm +++ b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm @@ -1,5 +1,8 @@ package ${packageName}.domain; +#foreach ($import in $importList) +import ${import}; +#end import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; @@ -8,9 +11,6 @@ import com.ruoyi.common.core.domain.BaseEntity; #elseif($table.tree) import com.ruoyi.common.core.domain.TreeEntity; #end -#foreach ($import in $importList) -import ${import}; -#end /** * ${functionName}对象 ${tableName}