随笔 - 103,  文章 - 0,  评论 - 1,  阅读 - 16万
depts   positions   服务器返回的list 


<#list depts as entity>
<#if entity_index = 0>第一个
'[{"id":${entity.deptId},"pid":0,"status":1,"name":"${entity.deptName}"},'+
</#if >
'{"id":${entity.deptId},"pid":0,"status":1,"name":"${entity.deptName}"},' +
</#list>



<#list positions as entity>
<#if entity_has_next>
'{"id":${entity.id},"pid":${entity.deptid},"status":1,"name":"${entity.name}"},' +
<#else >最后一个
'{"id":${entity.id},"pid":${entity.deptid},"status":1,"name":"${entity.name}"}]');
</#if>
</#list>
posted on   独醉笑清风  阅读(7790)  评论(0编辑  收藏  举报
努力加载评论中...
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示