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);
|
buildSearchCondition(condition, searchBuilder);
|
||||||
// 排序
|
// 排序
|
||||||
if (!StringUtils.isBlank(condition.getSort())) {
|
if (!StringUtils.isBlank(condition.getSort())) {
|
||||||
searchBuilder.sort(o ->
|
searchBuilder.sort(o -> o.field(f -> f
|
||||||
o.field(f -> f.field(StringUtils
|
.field(StringUtils.underlineToCamel(condition.getSort().split(" ")[0]))
|
||||||
.underlineToCamel(condition.getSort().split(" ")[0]))
|
.order(SortOrder.Desc))
|
||||||
.order(SortOrder.Desc))
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// 分页
|
// 分页
|
||||||
|
Loading…
x
Reference in New Issue
Block a user