Pageable 버그 수정

master
mjkhan21 2 years ago
parent 5c47d8c195
commit 915df356a1

@ -107,30 +107,30 @@ public abstract class AbstractEntity {
this.removedAt = removedAt; this.removedAt = removedAt;
} }
/** . /** . .
* @return * @return
* <ul><li> true</li> * <ul><li> true</li>
* <li> false</li> * <li> () false</li>
* </ul> * </ul>
*/ */
public boolean inUse() { public boolean inUse() {
return "Y".equals(getUseYN()); return "Y".equals(getUseYN());
} }
/** . /** . .
* @return * @return
* <ul><li> Y</li> * <ul><li> Y</li>
* <li> N</li> * <li> () N</li>
* </ul> * </ul>
*/ */
public String getUseYN() { public String getUseYN() {
return useYN; return useYN;
} }
/** . /** . .
* @param useYN * @param useYN
* <ul><li> Y</li> * <ul><li> Y</li>
* <li> N</li> * <li> () N</li>
* </ul> * </ul>
*/ */
public void setUseYN(String useYN) { public void setUseYN(String useYN) {

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

Loading…
Cancel
Save