|
|
@@ -316,12 +316,11 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|
|
@Override
|
|
|
public List<Tree<String>> treeAllParam(Map param) {
|
|
|
QueryWrapper<SysOrg> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.lambda().orderByDesc(SysOrg::getSortCode);
|
|
|
if (ObjectUtil.isNotEmpty(param.get("category")))
|
|
|
{
|
|
|
queryWrapper.lambda().eq(SysOrg::getCategory, param.get("category"));
|
|
|
}
|
|
|
-// queryWrapper.lambda().eq(SysOrg::getIsResourceaccount, "0");
|
|
|
+ queryWrapper.lambda().orderByAsc(SysOrg::getSortCode);
|
|
|
List<SysOrg> collegeList = this.list(queryWrapper);
|
|
|
List<TreeNode<String>> treeNodeList = collegeList.stream().map(org ->
|
|
|
new TreeNode<>(org.getId(), org.getParentId(),
|