mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
style: 换行
This commit is contained in:
parent
3019093dc3
commit
8a0105cfa4
@ -54,10 +54,9 @@ public class EsSearchServiceImpl implements SearchService {
|
||||
buildSearchCondition(condition, searchBuilder);
|
||||
// 排序
|
||||
if (!StringUtils.isBlank(condition.getSort())) {
|
||||
searchBuilder.sort(o ->
|
||||
o.field(f -> f.field(StringUtils
|
||||
.underlineToCamel(condition.getSort().split(" ")[0]))
|
||||
.order(SortOrder.Desc))
|
||||
searchBuilder.sort(o -> o.field(f -> f
|
||||
.field(StringUtils.underlineToCamel(condition.getSort().split(" ")[0]))
|
||||
.order(SortOrder.Desc))
|
||||
);
|
||||
}
|
||||
// 分页
|
||||
|
Loading…
x
Reference in New Issue
Block a user