|
|
@@ -58,7 +58,6 @@ public abstract class AbstractListHandler extends AbstractHandler { |
|
|
|
List<SwMap> listData; |
|
|
|
SqlPara sqlPara = buildDataSql(); |
|
|
|
|
|
|
|
|
|
|
|
String sort = params.readString("sort"); |
|
|
|
String order = params.readString("order"); |
|
|
|
String sql; |
|
|
@@ -73,7 +72,11 @@ public abstract class AbstractListHandler extends AbstractHandler { |
|
|
|
listData = queryData(sql, sqlPara); |
|
|
|
|
|
|
|
afterQuery(listData); |
|
|
|
return SwListData.create(listData, sqlPara.rows); |
|
|
|
if (sqlPara.page <= 1) { |
|
|
|
return SwListData.create(listData, sqlPara.rows); |
|
|
|
} else { |
|
|
|
return SwListData.create(listData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected List<SwMap> queryData(String sql, SqlPara sqlPara) { |
|
|
|