//工程银行付款
List<Bankpayapply> list = bankpayapplyService.getAll(filter);
// 付款基数记录条数
int countPayBase = paybaseService.getCountByProName(getRequest()
.getParameter("Q_bpaProjectName_S_EQ"));
//本页应该显示基数的记录条数
int start = filter.getPagingBean().getPageSize() - list.size();
List<Paybase> paybases = null;
if (start > 0) {
//基数分页的开始标记
int first = filter.getPagingBean().getFirstResult()
- filter.getPagingBean().getTotalItems();
paybases = paybaseService.getByProName(getRequest().getParameter(
//基数分页的开始标记
"Q_bpaProjectName_S_EQ"), first > 0 ? first : 0, start);
}
// List<Paybase>
// paybases=paybaseService.getByProName(getRequest().getParameter("Q_bpaProjectName_S_EQ"));
Type type = new TypeToken<List<Bankpayapply>>() {
}.getType();
StringBuffer buff = new StringBuffer("{success:true,'totalCounts':")
//总记录数
.append(filter.getPagingBean().getTotalItems() + countPayBase)
.append(",result:");
java,两表程序合并分页,非sql
最新推荐文章于 2022-03-18 12:16:58 发布