From 5b72b3af976f2e3061d2bfd4f183ee0136d3f260 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Wed, 24 Jan 2024 16:30:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E5=AD=98=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A7=92=E8=89=B2=E5=90=8D=E7=A7=B0=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/youlai/system/service/impl/SysRoleServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/youlai/system/service/impl/SysRoleServiceImpl.java b/src/main/java/com/youlai/system/service/impl/SysRoleServiceImpl.java index 46123c4a..bfc82c7a 100644 --- a/src/main/java/com/youlai/system/service/impl/SysRoleServiceImpl.java +++ b/src/main/java/com/youlai/system/service/impl/SysRoleServiceImpl.java @@ -105,7 +105,7 @@ public class SysRoleServiceImpl extends ServiceImpl impl long count = this.count(new LambdaQueryWrapper() .ne(roleId != null, SysRole::getId, roleId) .and(wrapper -> - wrapper.eq(SysRole::getCode, roleCode).or().eq(SysRole::getName, roleCode) + wrapper.eq(SysRole::getCode, roleCode).or().eq(SysRole::getName, roleForm.getName()) )); Assert.isTrue(count == 0, "角色名称或角色编码重复,请检查!");