1.job表添加pass和passReason字典
2.修改企业es排序,未发布放最上面
This commit is contained in:
@@ -239,7 +239,7 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
int pageSize = esJobSearch.getPageSize() == null ? 10 : esJobSearch.getPageSize();
|
||||
pageSize = Math.min(pageSize, 50); // 限制最大条数
|
||||
int from = current * pageSize;
|
||||
wrapper.orderByAsc(ESJobDocument::getId);
|
||||
wrapper.orderByAsc(ESJobDocument::getIsPublish);//按照未发布放最上面
|
||||
wrapper.limit(from, pageSize);
|
||||
}else{
|
||||
wrapper.limit(esJobSearch.getPageSize());
|
||||
|
||||
Reference in New Issue
Block a user