fix: 部门管理数据查询排除掉del_flag 不等于 0 的数据
This commit is contained in:
+4
-7
@@ -266,14 +266,11 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
|||||||
}
|
}
|
||||||
//根据部门id获取所负责部门
|
//根据部门id获取所负责部门
|
||||||
String[] codeArr = this.getMyDeptParentOrgCode(departIds);
|
String[] codeArr = this.getMyDeptParentOrgCode(departIds);
|
||||||
if(codeArr == null){
|
for (String s : codeArr) {
|
||||||
codeArr = new String[0];
|
query.or().likeRight(SysDepart::getOrgCode, s);
|
||||||
}
|
}
|
||||||
for(int i=0;i<codeArr.length;i++){
|
|
||||||
query.or().likeRight(SysDepart::getOrgCode,codeArr[i]);
|
|
||||||
}
|
|
||||||
query.eq(SysDepart::getDelFlag, CommonConstant.DEL_FLAG_0.toString());
|
|
||||||
}
|
}
|
||||||
|
query.eq(SysDepart::getDelFlag, CommonConstant.DEL_FLAG_0.toString());
|
||||||
query.like(SysDepart::getDepartName, keyWord);
|
query.like(SysDepart::getDepartName, keyWord);
|
||||||
//update-begin--Author:huangzhilin Date:20140417 for:[bugfree号]组织机构搜索回显优化--------------------
|
//update-begin--Author:huangzhilin Date:20140417 for:[bugfree号]组织机构搜索回显优化--------------------
|
||||||
SysDepartTreeModel model ;
|
SysDepartTreeModel model ;
|
||||||
|
|||||||
Reference in New Issue
Block a user