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