fix: 修复查询默认组织sql not in 为空问题

pull/14/head
Carina 4 years ago
parent b9508755c2
commit 41274e1527

@ -271,7 +271,11 @@ public class SysOrgRestController extends BaseRestController<SysOrg, SysOrgModel
}
// 排除父节点ID
wrapper.notIn(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), genOrgIdSet);
if(CollUtil.isNotEmpty(genOrgIdSet)){
wrapperByEmpty.in(
FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), genOrgIdSet);
}
// 获得子节点组织
List<SysOrg> childList = IService.findList(wrapper);
if(CollUtil.isNotEmpty(childList)){

Loading…
Cancel
Save