action中:
//得到id
for(int i=0;i<list.size();i++){
Object[] c=(Object[])list.get(i);
String cid=String.valueOf(c[0]);
//总借款笔数
int countnumber=zzlorderservice.getCount("select count(*) from ZzlOrder where zzlCustomer.id="+cid);
countmap.put(cid,countnumber);
}
jsp页面:
<c:forEach var="list"
items="${list}"
varStatus="xxl" begin="0">
<tr>
<td>
<c:forEach var="countmap" items="${countmap}" varStatus="xxl" begin="0">
<c:if test="${countmap.key==list[0]}">
${countmap.value}笔
</c:if>
</c:forEach>
</td>
</c:forEach>
//得到id
jsp页面:
转载请注明出处:http://blog.sina.com.cn/xilexu
最后
以上就是执着帆布鞋最近收集整理的关于利用Map集合中的键值对可以查询完…的全部内容,更多相关利用Map集合中内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复