파일 조회 시 정렬 수정

master
mjkhan21 1 year ago
parent 5dddf12ad3
commit a1f59ce8cc

@ -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");
}
}

@ -59,7 +59,7 @@ public class FileBean extends AbstractComponent {
* @return
*/
public List<DataObject> getFileList(FileQuery req) {
return fileMapper.getFileList(req.setOrderBy("INF_TYPE, INF_KEY, SRT_ORD"));
return fileMapper.getFileList(req);
}
/** .<br />
@ -73,7 +73,6 @@ public class FileBean extends AbstractComponent {
new FileQuery()
.setInfoType(infoType)
.setInfoKeys(infoKeys)
.setOrderBy("INF_TYPE, INF_KEY, SRT_ORD")
);
}

Loading…
Cancel
Save