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

@@ -401,6 +401,7 @@ public class CmsJobController extends BaseController
* @throws Exception
*/
@PostMapping("/downloadModel")
@ApiOperation("岗位批量上传模板下载")
public void downloadModel(HttpServletRequest request, HttpServletResponse response)throws Exception{
String name = "模板.xlsx";
String pathFile="/data/downloadmodel/"+name;

View File

@@ -162,4 +162,13 @@ public class ESJobDocument
@ApiModelProperty("公司信息")
@IndexField(fieldType = FieldType.TEXT)
private String companyVoJson;
@ApiModelProperty("是否发布 0未发布 1发布")
private Integer isPublish;
@ApiModelProperty("是否通过 0通过,1不通过")
private String pass;
@ApiModelProperty("是否通过原因")
private String passReason;
}

View File

@@ -198,4 +198,10 @@ public class Job extends BaseEntity
@TableField(exist = false)
@ApiModelProperty("申请人列表")
private List<AppUser> applyUsers;
@ApiModelProperty("是否通过 0通过,1不通过")
private String pass;
@ApiModelProperty("是否通过原因")
private String passReason;
}

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