自定义树控件只显示父节点,子节点无法展开 (此处还原不可再改) /issues/I4HZAL

pull/3201/head
zhangdaiscott 2021-11-16 21:17:17 +08:00
parent 8bae42049c
commit 7a1d4cda96
1 changed files with 3 additions and 1 deletions

View File

@ -126,9 +126,11 @@
<select id="queryTreeList" parameterType="Object" resultType="org.jeecg.modules.system.model.TreeSelectModel">
select ${text} as "title",
${code} as "key",
<!-- udapte-begin-author:taoyan date:20211115 for: 自定义树控件只显示父节点,子节点无法展开 (此处还原不可再改) /issues/I4HZAL -->
<if test="hasChildField != null and hasChildField != ''">
${hasChildField} as "isLeaf",
(case when ${hasChildField} = '1' then 0 else 1 end) as isLeaf,
</if>
<!-- udapte-end-author:taoyan date:20211115 for: 自定义树控件只显示父节点,子节点无法展开 (此处还原不可再改) /issues/I4HZAL -->
${pidField} as parentId
from ${table}
where