style: 换行

This commit is contained in:
xiongxiaoyang 2022-05-29 05:52:49 +08:00
parent 3019093dc3
commit 8a0105cfa4

View File

@ -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))
); );
} }
// 分页 // 分页