调整排序
This commit is contained in:
parent
aa7a87822a
commit
44b8a3e7e8
|
|
@ -41,6 +41,16 @@ public class ColumnService {
|
||||||
*/
|
*/
|
||||||
public PageObject<ColumnVO> queryColumn(Long parent, boolean needChildren, String keyword,
|
public PageObject<ColumnVO> queryColumn(Long parent, boolean needChildren, String keyword,
|
||||||
Long exclude, int page, int size, String orderBy, String direction) {
|
Long exclude, int page, int size, String orderBy, String direction) {
|
||||||
|
switch (orderBy) {
|
||||||
|
case "publishTime": {
|
||||||
|
orderBy = "publish_time";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "updateTime": {
|
||||||
|
orderBy = "update_time";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
List<Column> columns;
|
List<Column> columns;
|
||||||
try {
|
try {
|
||||||
columns = columnMapper.queryColumn(parent, keyword, exclude, orderBy, direction);
|
columns = columnMapper.queryColumn(parent, keyword, exclude, orderBy, direction);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue