优化grid分页控件,增加可自定义参数而不被纳入自动生成的where语句中
This commit is contained in:
parent
292115e90d
commit
99bd886e77
|
|
@ -123,9 +123,7 @@ public abstract class BaseGridFactory implements IGrid {
|
||||||
}
|
}
|
||||||
for (String key : map.keySet()) {
|
for (String key : map.keySet()) {
|
||||||
if (key.startsWith(SqlKeyword.TOINT) || key.startsWith(SqlKeyword.IT) || key.startsWith(SqlKeyword.F_IT)) {
|
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)));
|
map.put(key, Convert.toInt(map.get(key)));
|
||||||
} else {
|
|
||||||
map.put(key.replace(SqlKeyword.SKIP, ""), map.get(key));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map.put(Const.ORDER_BY_STR, Func.isAllEmpty(sort, order) ? "" : (sort + " " + order));
|
map.put(Const.ORDER_BY_STR, Func.isAllEmpty(sort, order) ? "" : (sort + " " + order));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user