|
@@ -93,7 +93,9 @@ public class NoveltySearchRecordService extends ServiceImpl<RetrieveRecordMapper
|
|
|
String orderByField = orderDTO.getOrderBy();
|
|
|
boolean isTrue = orderDTO.getOrderType() == 0;
|
|
|
String column = this.getColumns(orderByField);
|
|
|
- queryWrapper.orderBy(orderByField != null && !orderByField.isEmpty(), isTrue, column);
|
|
|
+ if (column != null && !column.isEmpty() && !column.equals("")) {
|
|
|
+ queryWrapper.orderBy(orderByField != null && !orderByField.isEmpty(), isTrue, column);
|
|
|
+ }
|
|
|
} else {
|
|
|
queryWrapper.orderBy(true, false, "create_time");
|
|
|
}
|