|
|
@ -44,6 +44,7 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn |
|
|
|
queryWrapper.eq("column_name", column.getColumnName()); |
|
|
|
queryWrapper.eq("column_name", column.getColumnName()); |
|
|
|
queryWrapper.eq("level", column.getLevel()); |
|
|
|
queryWrapper.eq("level", column.getLevel()); |
|
|
|
queryWrapper.eq("site_id", column.getSiteId()); |
|
|
|
queryWrapper.eq("site_id", column.getSiteId()); |
|
|
|
|
|
|
|
queryWrapper.eq("deleted", 1); |
|
|
|
SysColumn sysColumn = mapper.selectOne(queryWrapper); |
|
|
|
SysColumn sysColumn = mapper.selectOne(queryWrapper); |
|
|
|
if (sysColumn != null) { |
|
|
|
if (sysColumn != null) { |
|
|
|
if (column.getId() != null) { |
|
|
|
if (column.getId() != null) { |
|
|
@ -93,9 +94,9 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<SysColumn> listWithTreeMenuVisible(PaginationColumnReqVO column) { |
|
|
|
public List<SysColumn> listWithTreeMenuVisible(PaginationColumnReqVO column) { |
|
|
|
|
|
|
|
|
|
|
|
if(column.getRole()==null){ |
|
|
|
if (column.getRole() == null) { |
|
|
|
|
|
|
|
|
|
|
|
}else if (column.getRole()!=null||column.getRole().equals("admin") || ObjectUtil.isNotNull(column.isIsadmin()) || column.isIsadmin()){ |
|
|
|
} else if (column.getRole() != null || column.getRole().equals("admin") || ObjectUtil.isNotNull(column.isIsadmin()) || column.isIsadmin()) { |
|
|
|
throw new IllegalArgumentException("参数名不能包含admin"); |
|
|
|
throw new IllegalArgumentException("参数名不能包含admin"); |
|
|
|
} |
|
|
|
} |
|
|
|
//查询所有栏目
|
|
|
|
//查询所有栏目
|
|
|
@ -147,14 +148,14 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R getsTheSubColumn(Integer pid, String ids) { |
|
|
|
public R getsTheSubColumn(Integer pid, String ids) { |
|
|
|
|
|
|
|
|
|
|
|
List<SysColumn> getsTheSubColumn = baseMapper.getsTheSubColumn(pid, ids,null); |
|
|
|
List<SysColumn> getsTheSubColumn = baseMapper.getsTheSubColumn(pid, ids, null); |
|
|
|
return R.success(TreeStructureUtils.buildTree(getsTheSubColumn, pid)); |
|
|
|
return R.success(TreeStructureUtils.buildTree(getsTheSubColumn, pid)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R getsSublevelColumnsUnderALevel(Integer parentId, String ids) { |
|
|
|
public R getsSublevelColumnsUnderALevel(Integer parentId, String ids) { |
|
|
|
|
|
|
|
|
|
|
|
List<SysColumn> getsTheSubColumn = baseMapper.getsTheSubColumn(parentId, ids,null); |
|
|
|
List<SysColumn> getsTheSubColumn = baseMapper.getsTheSubColumn(parentId, ids, null); |
|
|
|
List<SysColumn> buildTree = TreeStructureUtils.buildTree(getsTheSubColumn, parentId); |
|
|
|
List<SysColumn> buildTree = TreeStructureUtils.buildTree(getsTheSubColumn, parentId); |
|
|
|
return R.success(buildTree); |
|
|
|
return R.success(buildTree); |
|
|
|
} |
|
|
|
} |
|
|
@ -166,8 +167,8 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R getSubColumn(Integer parentId, String ids,Integer isSort) { |
|
|
|
public R getSubColumn(Integer parentId, String ids, Integer isSort) { |
|
|
|
List<SysColumn> getsTheSubColumn = baseMapper.getsTheSubColumn(parentId, ids,isSort); |
|
|
|
List<SysColumn> getsTheSubColumn = baseMapper.getsTheSubColumn(parentId, ids, isSort); |
|
|
|
return R.success(TreeStructureUtils.forMethod(getsTheSubColumn)); |
|
|
|
return R.success(TreeStructureUtils.forMethod(getsTheSubColumn)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|