jpa 分页和查询
来源:互联网 发布:数据库域 编辑:程序博客网 时间:2024/05/04 09:21
DetachedCriteria dc = noteDao.createDetachedCriteria();
dc.add(Restrictions.eq("delFlag",'0'));
dc.add(Restrictions.eq("typeId",0L));
return noteDao.find(page, dc);
}
jsp :
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").attr("action","${ctx}/sitesmanage/pic/picMonthStatistics");
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/sitesmanage/pic/picMonthStatistics">照片月统计管理</a></li>
</ul>
<form:form id="searchForm" action="${ctx}/sitesmanage/pic/picMonthStatistics" method="post" class="breadcrumb form-search">
<%-- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<input id="orderBy" name="orderBy" type="hidden" value="${page.orderBy}"/> --%>
<div>
<label>分 类:</label>
<tags:treeselect id="type" name="typeId" value="${type.id}" labelName="typeName" labelValue="${type.name}"
title="分类" url="/sitesmanage/type/treeData" cssClass="required" allowClear="true"/>
<label class="control-label">年 份:</label>
<input id="year" name="year" type="text" value="${year}" readonly="readonly" maxlength="20" class="Wdate required"onclick="WdatePicker({dateFmt:'yyyy'});"/>
</div>
<div>
<label class="control-label">开始月份:</label>
<select id="startMonth" name="startMonth" >
</select>
<label class="control-label">结束月份:</label>
<select id="endMonth" name="endMonth" ></select>
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" onclick="return page();"/>
<!-- <input id="btnExport" class="btn btn-primary" type="button" value="导出"/> -->
</div>
</form:form>
<tags:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead><tr><th>分类</th><th>年份</th><th>月份</th><th>数量</th></thead>
<tbody>
<c:forEach items="${page}" var="date">
<tr>
<td style="display:none">${date[1]}</td>
<td>${date[1]}</td>
<td>${date[2]}</td>
<td>${date[3]}</td>
<td>${date[4]}</td>
</tr>
</c:forEach>
</tbody>
</table>
controller:
Page<Picture> page =picService.getPics(new Page<Picture>(request, response), picture, start,end,id);
- jpa 分页和查询
- jpa条件查询和分页
- JPA 分页查询Pageable
- jpa hibernate分页查询
- SpringData JPA分页查询
- 使用Easy-UI 和SSH JPA 按条件查询分页
- spring data jpa 分页查询
- spring data jpa分页查询
- SpringData JPA查询分页demo
- SpringData JPA查询分页demo
- JPA多条件查询+分页
- spring data jpa 分页查询
- JPA entityManager 实现 分页查询
- 【spring data jpa】带有条件的查询后分页和不带条件查询后分页实现
- 【spring data jpa】带有条件的查询后分页和不带条件查询后分页实现
- Spring jpa data多条件分页查询
- jpa之PagingAndSortingRepository带分页查询
- spring data jpa 条件分页查询
- String s=new String("123")创建了几个对象?
- VB.NET 串口异步访问
- 电脑内存常见问题处理方法
- 水仙
- MinGW 编译ffmpeg 1.2.1 的H.264 decoder
- jpa 分页和查询
- UBI文件系统简介
- xcode 制作静态库
- java 装饰器模式
- 利用金山毒霸开启免费wife共享
- 水仙花数多种代码(只是总结)
- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is no
- Ubuntu下配置samba实现文件夹共享
- 计算机视觉、模式识别、机器学习常用牛人主页链接