diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/DeptMapper.java b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/DeptMapper.java index ee30b207..1b3905d8 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/DeptMapper.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/DeptMapper.java @@ -53,6 +53,6 @@ public interface DeptMapper extends BaseMapper { * @param ids * @return */ - List getDeptNames(String[] ids); + List getDeptNames(Long[] ids); } diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/RoleMapper.java b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/RoleMapper.java index 2bb448a2..66b1b73d 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/RoleMapper.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/RoleMapper.java @@ -54,7 +54,7 @@ public interface RoleMapper extends BaseMapper { * @param ids * @return */ - List getRoleNames(String[] ids); + List getRoleNames(Long[] ids); /** * 获取角色名 diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/DeptServiceImpl.java b/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/DeptServiceImpl.java index 23c0bcf7..e0fbada4 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/DeptServiceImpl.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/DeptServiceImpl.java @@ -52,7 +52,7 @@ public class DeptServiceImpl extends ServiceImpl implements ID @Override public List getDeptNames(String deptIds) { - return baseMapper.getDeptNames(Func.toStrArray(deptIds)); + return baseMapper.getDeptNames(Func.toLongArray(deptIds)); } @Override diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java b/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java index 97396344..4f2a835c 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java @@ -123,7 +123,7 @@ public class RoleServiceImpl extends ServiceImpl implements IR @Override public List getRoleNames(String roleIds) { - return baseMapper.getRoleNames(Func.toStrArray(roleIds)); + return baseMapper.getRoleNames(Func.toLongArray(roleIds)); } @Override