优化grid分页控件,增加可自定义参数而不被纳入自动生成的where语句中

This commit is contained in:
smallchill 2017-09-19 18:04:39 +08:00
parent 292115e90d
commit 99bd886e77

View File

@ -123,9 +123,7 @@ public abstract class BaseGridFactory implements IGrid {
}
for (String key : map.keySet()) {
if (key.startsWith(SqlKeyword.TOINT) || key.startsWith(SqlKeyword.IT) || key.startsWith(SqlKeyword.F_IT)) {
map.put(key.replace(SqlKeyword.SKIP, ""), Convert.toInt(map.get(key)));
} else {
map.put(key.replace(SqlKeyword.SKIP, ""), map.get(key));
map.put(key, Convert.toInt(map.get(key)));
}
}
map.put(Const.ORDER_BY_STR, Func.isAllEmpty(sort, order) ? "" : (sort + " " + order));