概述
Action
public String orderManageList(){
log.debug("come in orderManageList!");
try {
//声明分页插件
PageBounds pageBounds = new PageBounds(page, pageSize);
//检索信息
List<PaltformOrder> orderManageList = orderManageService.findOrderManageList(orderstatus, pageBounds);
//遍历orderno
for(PaltformOrder pt : orderManageList){
pt.setPalt(orderManageService.orderDetail(pt.getOrderno()));
}
//集合
PageList pageList = (PageList) orderManageList;
pageHelper = new PageHelper(pageList);
log.debug(JSON.toJSONString(pageHelper));
//palt=orderManageService.orderDetail("146059987847156");
int shopId=SessionUtil.sessionShopId();
creditManageDto=creditManageService.selectCreditBasic(shopId);
} catch (Exception e) {
log.error("检索详细异常信息:" + e,e);
}
log.debug("leave orderManageList!");
return "orderManageList";
}
JSP
<s:iterator value="pageHelper.pageList" var="order"
status="status">
<table class="table table-primary table-goods table-order">
<thead>
<tr>
<td colspan="6">
<span><s:property value="createTime"/></span>
<span>订单号:<s:property value="orderno"/></span>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<!--
<label class="checkbox-inline">
<input type="checkbox" ">
</label>
-->
</td>
<td
width="50%">
<s:iterator value="palt" id="pt" var="p">
<div class="goods2">
<div class="left">
<a href="javascript:void(0);">
<img src="<s:property value="imgPath"/>" alt="<s:property value="goodsName"/>">
</a>
</div>
<div class="right">
<span> </span>
<div><a href="goods/findGoodsById?goodsId=${p.goodsid}"><span class="text-orange"><s:property value="goodsName"/></span></a></div>
</div>
</div>
</s:iterator>
</td>
<td width="10%">数量:<s:property value="num"/></td>
<td width="10%">
<div>总额:<span class="text-orange" id="cc"><s:property value="totalmoney"/></span></div>
</td>
<td width="20%">
<div>
<div>
<s:if test="#order.orderstatus==1">未付款</s:if>
<s:elseif test="#order.orderstatus==2">已付款</s:elseif>
<s:elseif test="#order.orderstatus==3">已发货</s:elseif>
<s:else>已收货</s:else>
</div>
<div><a href="javascript:void(0);" οnclick="orderDetail('<s:property value="orderno"/>')">订单详情</a></div>
</div>
</td>
<td width="10%">
<s:if test="#order.orderstatus==1">
<a href="javascript:void(0);" id="aa${orderno}" οnclick="updateStatus('<s:property value="orderno"/>','<s:property value="goodsid"/>','<s:property value="shopid"/>','2','<s:property value="totalmoney"/>')" class="btn btn-warning">确认付款</a>
</s:if>
<s:if test="#order.orderstatus==3">
<a href="javascript:void(0);" id="" οnclick="updateStatus('<s:property value="orderno"/>','<s:property value="goodsid"/>','<s:property value="shopid"/>','4','<s:property value="totalmoney"/>')" class="btn btn-warning">确认收货</a>
</s:if>
<a href="javascript:void(0);" style="margin-top:8px;" id="del" οnclick="delOrder('<s:property value="poid"/>')" class="btn btn-warning">删除订单</a>
</td>
</tr>
</tbody>
</table>
</s:iterator>
最后
以上就是陶醉大炮为你收集整理的s标签遍历中的遍历的全部内容,希望文章能够帮你解决s标签遍历中的遍历所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复