java,两表程序合并分页,非sql
//工程银行付款 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:");