List deviceList = deviceService.fetchLinks(deviceService.query(Cnd.where("parentId", "=", id)),"dict"
关联查询对应的dict有数据。但是在页面遍历的时候现实不了。
${o.dict.name}不显示,不能这样写吗?
<% for(o in obj){
%>
<tr data-tt-id="${o.id}" data-tt-parent-id="${o.parentId}" data-tt-branch="${o.hasChildren}">
<td>${o.deviceNo!}</td>
<td>${o.deviceName!}</td>
<td>${o.deviceIdCode!}</td>
<td>${o.dict.name! }</td>
<td>${o.deviceModel!}</td>
<td>${o.deviceSite!}</td>
<td>${o.deviceManager!}</td>
<td>${o.deviceInstalDate!}</td>
<td>${o.remark!}</td>
<td>