diff --git a/src/main/java/cokr/xit/base/file/service/FileQuery.java b/src/main/java/cokr/xit/base/file/service/FileQuery.java index 968946a..237e1bb 100644 --- a/src/main/java/cokr/xit/base/file/service/FileQuery.java +++ b/src/main/java/cokr/xit/base/file/service/FileQuery.java @@ -57,4 +57,9 @@ public class FileQuery extends QueryRequest { this.fileIDs = fileIDs; return self(); } + + @Override + public String getOrderBy() { + return ifEmpty(super.getOrderBy(), () -> "INF_TYPE, INF_KEY, SRT_ORD"); + } } \ No newline at end of file diff --git a/src/main/java/cokr/xit/base/file/service/bean/FileBean.java b/src/main/java/cokr/xit/base/file/service/bean/FileBean.java index 9522e2d..0c468a1 100644 --- a/src/main/java/cokr/xit/base/file/service/bean/FileBean.java +++ b/src/main/java/cokr/xit/base/file/service/bean/FileBean.java @@ -59,7 +59,7 @@ public class FileBean extends AbstractComponent { * @return 파일 정보 목록 */ public List getFileList(FileQuery req) { - return fileMapper.getFileList(req.setOrderBy("INF_TYPE, INF_KEY, SRT_ORD")); + return fileMapper.getFileList(req); } /**주어진 관계 정보의 파일 정보들을 반환한다.
@@ -73,7 +73,6 @@ public class FileBean extends AbstractComponent { new FileQuery() .setInfoType(infoType) .setInfoKeys(infoKeys) - .setOrderBy("INF_TYPE, INF_KEY, SRT_ORD") ); }