From a1f59ce8cc78a9cb5a1cb2d19e71b0890164c9d6 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 18 Aug 2023 18:41:44 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=8B=9C=20=EC=A0=95=EB=A0=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/base/file/service/FileQuery.java | 5 +++++ src/main/java/cokr/xit/base/file/service/bean/FileBean.java | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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") ); }