فهرست منبع

分頁查詢錯誤

huangxingxing 1 سال پیش
والد
کامیت
90033ea32e

+ 2 - 2
src/main/java/com/miniframe/bisiness/system/D00000Service.java

@@ -34,7 +34,7 @@ public class D00000Service extends D00000BaseModel implements ExecProcessFlow {
 			DNodeSQLBuilder.Criteria sc1 =sb.createCriteria();
 			sc1.andNameLike("%"+searchtag+"%");
 		}
-		Long count = projectDao.countByExample(sb);
+		int count = projectDao.selectCountByExample(sb);
 		sb.setOrderByClause("id ASC");
 
 		XIUtils.pageSet(page,size);
@@ -52,7 +52,7 @@ public class D00000Service extends D00000BaseModel implements ExecProcessFlow {
 			rows.add(row);
 		}
 		this.getD_d00000().setRows(rows);
-		this.getD_d00000().setTotal(count.intValue());
+		this.getD_d00000().setTotal(count);
 	}
 	
 	/**

+ 2 - 2
src/main/java/com/miniframe/bisiness/system/D00003Service.java

@@ -57,7 +57,7 @@ public class D00003Service extends D00003BaseModel implements ExecProcessFlow {
 		}
 
 
-		Long count = projectDao.countByExample(sb);
+		int count = projectDao.selectCountByExample(sb);
 //		sb.setOrderByClause("id");
 		sb.setOrderByClause("time desc");
 
@@ -76,7 +76,7 @@ public class D00003Service extends D00003BaseModel implements ExecProcessFlow {
 			rows.add(row);
 		}
 		this.getD_d00003().setRows(rows);
-		this.getD_d00003().setTotal(count.intValue());
+		this.getD_d00003().setTotal(count);
 	}
 	
 	/**