update 规范不公开方法访问控制修饰符为private

feature/model
Yjoioooo 2 years ago
parent 51a558d690
commit c55157dce0

@ -293,7 +293,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
* @param newAncestors ID
* @param oldAncestors ID
*/
public void updateDeptChildren(Long deptId, String newAncestors, String oldAncestors) {
private void updateDeptChildren(Long deptId, String newAncestors, String oldAncestors) {
List<SysDept> children = baseMapper.selectList(new LambdaQueryWrapper<SysDept>()
.apply(DataBaseHelper.findInSet(deptId, "ancestors")));
List<SysDept> list = new ArrayList<>();

@ -335,7 +335,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
* @param parentId ID
* @return String
*/
public List<SysMenu> getChildPerms(List<SysMenu> list, int parentId) {
private List<SysMenu> getChildPerms(List<SysMenu> list, int parentId) {
List<SysMenu> returnList = new ArrayList<>();
for (SysMenu t : list) {
// 一、根据传入的某个父节点ID,遍历该父节点的所有子节点

@ -291,7 +291,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
*
* @param role
*/
public int insertRoleMenu(SysRoleBo role) {
private int insertRoleMenu(SysRoleBo role) {
int rows = 1;
// 新增用户与角色管理
List<SysRoleMenu> list = new ArrayList<SysRoleMenu>();
@ -312,7 +312,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
*
* @param role
*/
public int insertRoleDept(SysRoleBo role) {
private int insertRoleDept(SysRoleBo role) {
int rows = 1;
// 新增角色与部门(数据权限)管理
List<SysRoleDept> list = new ArrayList<SysRoleDept>();

@ -214,7 +214,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
* @param packageId id
* @return id
*/
public Long createTenantRole(String tenantId, Long packageId) {
private Long createTenantRole(String tenantId, Long packageId) {
// 获取租户套餐
SysTenantPackage tenantPackage = sysTenantPackageMapper.selectById(packageId);
if (ObjectUtil.isNull(tenantPackage)) {

@ -403,7 +403,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
* @param user
* @param clear
*/
public void insertUserRole(SysUserBo user, boolean clear) {
private void insertUserRole(SysUserBo user, boolean clear) {
this.insertUserRole(user.getUserId(), user.getRoleIds(), clear);
}
@ -413,7 +413,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
* @param user
* @param clear
*/
public void insertUserPost(SysUserBo user, boolean clear) {
private void insertUserPost(SysUserBo user, boolean clear) {
Long[] posts = user.getPostIds();
if (ArrayUtil.isNotEmpty(posts)) {
if (clear) {
@ -438,7 +438,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
* @param roleIds
* @param clear
*/
public void insertUserRole(Long userId, Long[] roleIds, boolean clear) {
private void insertUserRole(Long userId, Long[] roleIds, boolean clear) {
if (ArrayUtil.isNotEmpty(roleIds)) {
// 判断是否具有此角色的操作权限
List<SysRoleVo> roles = roleMapper.selectRoleList(new LambdaQueryWrapper<>());

Loading…
Cancel
Save