岗位表添加字段
This commit is contained in:
@@ -2,6 +2,7 @@ package com.ruoyi.cms.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.entity.Company;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -176,4 +177,13 @@ public class ESJobDocument
|
||||
|
||||
@ApiModelProperty("岗位特征:(行政、后勤、管理、技术、销售等字典job_feature添加)")
|
||||
private String jobFeature;
|
||||
|
||||
@Excel(name = "专业要求")
|
||||
private String majorRequire;
|
||||
|
||||
@ApiModelProperty("工作性质")
|
||||
private String workNature;
|
||||
|
||||
@ApiModelProperty("薪酬类型")
|
||||
private String salaryType;
|
||||
}
|
||||
|
||||
@@ -257,6 +257,15 @@ public class Job extends BaseEntity
|
||||
@ApiModelProperty("岗位特征:(行政、后勤、管理、技术、销售等字典job_feature添加)")
|
||||
private String jobFeature;
|
||||
|
||||
@Excel(name = "专业要求")
|
||||
private String majorRequire;
|
||||
|
||||
@ApiModelProperty("工作性质")
|
||||
private String workNature;
|
||||
|
||||
@ApiModelProperty("薪酬类型")
|
||||
private String salaryType;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("户外招聘会岗位审核状态")
|
||||
private String fairReviewStatus;
|
||||
|
||||
@@ -43,4 +43,6 @@ public interface CompanyMapper extends BaseMapper<Company>
|
||||
List<CompanyMissedOutdoorFairVO> selectMissedOutdoorFairList(@Param("companyId") Long companyId);
|
||||
|
||||
public List<Company> selectCompanyCleanList(CompanySearch company);
|
||||
|
||||
List<Company> selectCompanyByNameList(@Param("nameList") List<String> list);
|
||||
}
|
||||
|
||||
@@ -84,4 +84,7 @@ public interface JobMapper extends BaseMapper<Job> {
|
||||
|
||||
//根据企业id批量下架架岗位
|
||||
public void updateBatchDownStatus(@Param("companyId") Long companyId);
|
||||
|
||||
//根据名称查询企业
|
||||
List<Job> selectJobByMatchKeyList(@Param("keyList") List<String> list);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,15 @@ public class VacancyLongConverter implements Converter<Long> {
|
||||
*/
|
||||
@Override
|
||||
public Long convertToJavaData(ReadCellData<?> cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) {
|
||||
String source = cellData.getStringValue();
|
||||
String source = null;
|
||||
CellDataTypeEnum cellType = cellData.getType();
|
||||
if (CellDataTypeEnum.NUMBER.equals(cellType)) {
|
||||
source = cellData.getNumberValue().toPlainString();
|
||||
} else if (CellDataTypeEnum.STRING.equals(cellType)) {
|
||||
source = cellData.getStringValue();
|
||||
} else if (CellDataTypeEnum.BOOLEAN.equals(cellType)) {
|
||||
source = cellData.getBooleanValue().toString();
|
||||
}
|
||||
return extractVacancyNum(source);
|
||||
}
|
||||
|
||||
|
||||
@@ -395,4 +395,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="selectCompanyByNameList" resultMap="baseCompanyResult">
|
||||
SELECT company_id,name,code,industry,company_nature,scale,company_status
|
||||
FROM company
|
||||
WHERE del_flag='0' and name IN
|
||||
<foreach collection="nameList" item="name" open="(" separator="," close=")">
|
||||
#{name}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -465,4 +465,24 @@
|
||||
update job set job_status='0', update_time = NOW() where del_flag='0' and company_id=#{companyId} and job_status='1'
|
||||
</update>
|
||||
|
||||
<select id="selectJobByMatchKeyList" resultType="com.ruoyi.cms.domain.Job">
|
||||
SELECT t2.* FROM job t2
|
||||
WHERE t2.del_flag='0'
|
||||
AND CONCAT(
|
||||
COALESCE(t2.company_name, ''),
|
||||
'|',
|
||||
COALESCE(t2.job_title, ''),
|
||||
'|',
|
||||
COALESCE(CAST(t2.vacancies AS VARCHAR), ''),
|
||||
'|',
|
||||
COALESCE(CAST(t2.min_salary AS VARCHAR), ''),
|
||||
'|',
|
||||
COALESCE(CAST(t2.max_salary AS VARCHAR), '')
|
||||
)
|
||||
IN
|
||||
<foreach collection="keyList" item="k" open="(" separator="," close=")">
|
||||
#{k}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user