<s:iterator value="packagePlateTbls" id="plateTbls"> <tr> <td class=‘td_date‘><s:property value="#plateTbls.plateName"/></td> <td class=‘td_date‘></td> <td class=‘td_date‘></td> <td class=‘td_date‘></td> </tr> <s:iterator value="membershipPackagesTblVOs" id="VO"> <s:if test="#VO.plateId==#plateTbls.plateId"> <tr> <td class=‘td_date‘></td> <td class=‘td_date‘><s:property value="#VO.projectName"/></td> <td class=‘td_date‘><s:property value="#VO.projectNo" /></td> <td class=‘td_date‘><s:property value="#VO.executionNumber"/></td> </tr> </s:if> </s:iterator> </s:iterator>此处循环2个list,判断plateId的值是否相等,如果相等就循环第二个list
时间: 2024-11-15 00:34:22