페이징 관련 버그 수정

master
mjkhan21 2 years ago
parent 915df356a1
commit 0241fece79

@ -18,11 +18,7 @@ public interface Pageable {
* @return
*/
static int getPageNum(Map<String, ?> map) {
try {
return Convert.toInt(map.get("pageNum"));
} catch (Exception e) {
return 1;
}
return Convert.toInt(map != null && map.containsKey("pageNum") ? map.get("pageNum") : null);
}
/** Map .<br />
@ -31,11 +27,7 @@ public interface Pageable {
* @return
*/
static int getFetchSize(Map<String, ?> map) {
try {
return Convert.toInt(map.get("fetchSize"));
} catch (Exception e) {
return 0;
}
return Convert.toInt(map != null && map.containsKey("fetchSize") ? map.get("fetchSize") : null);
}
/** Map .<br />

Loading…
Cancel
Save