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

pull/14/head
Carina 3 years ago
parent 292b1a135d
commit b9508755c2

@ -243,10 +243,13 @@ public class SysOrgRestController extends BaseRestController<SysOrg, SysOrgModel
}
QueryWrapper<SysOrg> wrapperByEmpty = queryBuilder.build();
wrapperByEmpty.in(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), genOrgIdSet);
// 如果传入ID 则不包含自身
if(CollUtil.isNotEmpty(genOrgIdSet)){
wrapperByEmpty.in(
FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), genOrgIdSet);
} // 如果传入ID 则不包含自身
if(StringUtils.isNotEmpty(id)){
wrapperByEmpty.notIn(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), id);
wrapperByEmpty.notIn(
FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), id);
}
// 获得父节点组织

@ -44,7 +44,7 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
/**
*
*
*
* @author Parker
* @date 202151810:53:27

Loading…
Cancel
Save