1.job表添加pass和passReason字典

2.修改企业es排序,未发布放最上面
This commit is contained in:
sh
2026-01-28 17:41:40 +08:00
parent 6f08d63278
commit 5146b4e221
5 changed files with 27 additions and 6 deletions

View File

@@ -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());