|
@@ -58,7 +58,6 @@ public abstract class AbstractListHandler extends AbstractHandler { |
|
|
List<SwMap> listData; |
|
|
List<SwMap> listData; |
|
|
SqlPara sqlPara = buildDataSql(); |
|
|
SqlPara sqlPara = buildDataSql(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String sort = params.readString("sort"); |
|
|
String sort = params.readString("sort"); |
|
|
String order = params.readString("order"); |
|
|
String order = params.readString("order"); |
|
|
String sql; |
|
|
String sql; |
|
@@ -73,7 +72,11 @@ public abstract class AbstractListHandler extends AbstractHandler { |
|
|
listData = queryData(sql, sqlPara); |
|
|
listData = queryData(sql, sqlPara); |
|
|
|
|
|
|
|
|
afterQuery(listData); |
|
|
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) { |
|
|
protected List<SwMap> queryData(String sql, SqlPara sqlPara) { |
|
|