1.添加用户投诉岗位
2.管理员对企业和岗位下架
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
<result property="code" column="code" />
|
||||
<result property="jobAddress" column="job_address" />
|
||||
<result property="reviewStatus" column="review_status" />
|
||||
<result property="jobStatus" column="job_status" />
|
||||
|
||||
<association property="companyVo" resultMap="CompanyResult"/>
|
||||
<association property="jobContactList" resultMap="JomContactResult"/>
|
||||
@@ -137,7 +138,7 @@
|
||||
job_title, min_salary, max_salary, education, experience, company_name, job_location,
|
||||
job_location_area_code, posting_date, vacancies, latitude, longitude, "view", company_id,
|
||||
is_hot, is_urgent, apply_num, description, is_publish, data_source, job_url, remark, del_flag,
|
||||
create_by, create_time, row_id, job_category,job_type,job_address
|
||||
create_by, create_time, row_id, job_category,job_type,job_address,job_status
|
||||
) VALUES
|
||||
<foreach collection="list" item="job" separator=",">
|
||||
(
|
||||
@@ -146,7 +147,7 @@
|
||||
#{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId},
|
||||
#{job.isHot}, #{job.isUrgent}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource},
|
||||
#{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime},
|
||||
#{job.rowId}, #{job.jobCategory},#{job.jobType},#{job.jobAddress}
|
||||
#{job.rowId}, #{job.jobCategory},#{job.jobType},#{job.jobAddress},#{job.jobStatus}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
@@ -206,6 +207,7 @@
|
||||
<if test="isHot != null "> and is_hot = #{isHot}</if>
|
||||
<if test="applyNum != null "> and apply_num = #{applyNum}</if>
|
||||
<if test="code != null "> and company_id in(select company_id from company where code=#{code})</if>
|
||||
<if test="jobStatus != null "> and job_status = #{jobStatus}</if>
|
||||
<if test="compensation!=null ">
|
||||
<if test="compensation==0 ">
|
||||
and min_salary < 1750
|
||||
@@ -254,6 +256,7 @@
|
||||
<if test="isHot != null "> and is_hot = #{isHot}</if>
|
||||
<if test="applyNum != null "> and apply_num = #{applyNum}</if>
|
||||
<if test="isPublish != null "> and is_publish = #{isPublish}</if>
|
||||
<if test="jobStatus != null "> and job_status = #{jobStatus}</if>
|
||||
<if test="countyIds!=null and countyIds.size!=0">
|
||||
and job_location_area_code in <foreach collection="countyIds" index="item" close=")" open="(">
|
||||
#{item}
|
||||
@@ -292,10 +295,10 @@
|
||||
</select>
|
||||
<select id="selectAllJob" resultMap="JobEsResult">
|
||||
SELECT j.*,c.industry,c.scale,c.nature as company_nature,c.code,c.description as company_description,c.name,c.company_id,t.contact_person,t.contact_person_phone,jc.contact_person as job_contact_person,jc.contact_person_phone as job_contact_person_phone FROM job as j
|
||||
left join company as c on c.company_id = j.company_id and j.del_flag='0' and c.del_flag='0'
|
||||
left join company as c on c.company_id = j.company_id and j.del_flag='0' and c.del_flag='0' and c.company_status='0'
|
||||
LEFT JOIN (SELECT t1.*, ROW_NUMBER() OVER (PARTITION BY t1.company_id ORDER BY t1.id) AS rn FROM company_contact AS t1 WHERE t1.del_flag = '0' ) AS t ON t.company_id = j.company_id AND t.rn = 1
|
||||
LEFT JOIN (SELECT jc1.*, ROW_NUMBER() OVER(PARTITION BY jc1.job_id ORDER BY jc1.id) rn FROM job_contact jc1 WHERE jc1.del_flag='0') jc ON jc.job_id = j.job_id AND jc.rn=1
|
||||
WHERE j.del_flag = '0' limit #{offset},#{batchSize}
|
||||
WHERE j.del_flag = '0' and job_status='0' limit #{offset},#{batchSize}
|
||||
</select>
|
||||
<select id="selectAllInsertRowWork" resultType="com.ruoyi.cms.domain.RowWork">
|
||||
select Id, TaskId, TaskName, Std_class, SF, ZCMC, Aca112, Acb22a, Aac011, Acb240,
|
||||
@@ -420,4 +423,17 @@
|
||||
ORDER BY match_level ASC, login_date DESC
|
||||
LIMIT (SELECT vacancies FROM shz.job WHERE job_id = #{jobId})
|
||||
</select>
|
||||
|
||||
<update id="updateStatus" parameterType="Job">
|
||||
update job set job_status=#{jobStatus},update_time=#{updateTime},update_by=#{updateBy} where job_id=#{jobId} and del_flag='0'
|
||||
</update>
|
||||
|
||||
<update id="updateBatchDownStatus">
|
||||
update job set job_status='1', update_time = NOW() where del_flag='0' and company_id=#{companyId} and job_status='0'
|
||||
</update>
|
||||
|
||||
<update id="updateBatchUpStatus">
|
||||
update job set job_status='0', update_time = NOW() where del_flag='0' and company_id=#{companyId} and job_status='1'
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user