修改查机关树方法

This commit is contained in:
zhouxy 2026-01-13 13:58:30 +08:00
parent 761af9d5f2
commit fef887909e
2 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class GzaiccodeServiceImpl extends ServiceImpl<GzaiccodeMapper, Gzaiccode
@Override
public void flushCache() {
List<CascadeTreeNode> list = getList("3");
List<CascadeTreeNode> list = getList(null);
List<CascadeTreeNode> resultList = new ArrayList<>();
if(CollectionUtils.isNotEmpty(list)){
resultList = addChild(list);

View File

@ -29,7 +29,8 @@
select orgUnitID as id, orgUnitName as label, orgNumber as value, parentID as SPARENTCODE, '' as shortname
from cxaicorg.t_orgunits
where orgNumber like '15%'
<if test="parentid != null and parentid != ''">
and unittype = '1' and deleted = '0'
<if test="parentid != null and parentid != ''">
and parentID = #{parentid}
</if>
<if test="slevel != null and slevel != -99">