Spring MVC页面列表的循环和判断

来源:互联网 发布:淘宝客服术语结束语 编辑:程序博客网 时间:2024/06/05 08:17
<table id="dataTable" class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th>序号</th>
                                            <th>提现单号</th>
                                            <th>提现金额</th>
                                            <th>帐号</th>
                                            <th>提现时间</th>
                                            <th>提现状态</th>
                                            <th>说明</th>
                                        </tr>
                                    </thead>
                                    
                                    <tbody>
                                    <c:choose>
                                    <c:when test="${listsize ==0 }">
                                                <tr>
                                                <td colspan="13">没有查询到相关信息.</td>
                                                </tr>
                                    </c:when>
                                    <c:otherwise>
                                    <c:forEach items="${list}" var="fund">
                                        <tr>
                                            <td>${fund.id}</td>
                                            <td>${fund.pay_number}</td>
                                            <td>${fund.pay_money}</td>
                                            <td>${fund.pay_account}</td>
                                            <td>${fund.reqs_time}</td>
                                            <td>
                                                <c:choose>
                                                    <c:when test="${fund.pay_status=='4'}">
                                                    待审核
                                                    </c:when>
                                                    <c:when test="${fund.pay_status=='3'}">
                                                    提现成功
                                                    </c:when>
                                                    <c:when test="${fund.pay_status=='2'}">
                                                    提现处理中
                                                    </c:when>
                                                    <c:when test="${fund.pay_status=='1'}">
                                                    提现失败
                                                    </c:when>
                                                    <c:when test="${fund.pay_status=='0'}">
                                                    审核失败
                                                    </c:when>
                                                </c:choose>
                                            </td>
                                            <td>${fund.refuse_reason}</td>
                                        </tr>
                                    </c:forEach>
                                    </c:otherwise>
                                    </c:choose>
                                    </tbody>
                                </table>
0 0