1.添加用户投诉岗位

2.管理员对企业和岗位下架
This commit is contained in:
chenshaohua
2026-07-09 18:32:38 +08:00
parent 9f3260ab8d
commit ee167ddc86
28 changed files with 770 additions and 7 deletions

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.AppUserJobComplaintMapper">
<resultMap type="AppUserJobComplaint" id="AppUserJobComplaintResult">
<id column="id" property="id"/>
<result column="user_id" property="userId"/>
<result column="job_id" property="jobId"/>
<result column="complaint_type" property="complaintType"/>
<result column="complaint_content" property="complaintContent"/>
<result column="evidence_url" property="evidenceUrl"/>
<result column="contact_phone" property="contactPhone"/>
<result column="complaint_status" property="complaintStatus"/>
<result column="handle_user_id" property="handleUserId"/>
<result column="handle_content" property="handleContent"/>
<result column="handle_time" property="handleTime"/>
<result column="del_flag" property="delFlag"/>
<result column="create_by" property="createBy"/>
<result column="create_time" property="createTime"/>
<result column="update_by" property="updateBy"/>
<result column="update_time" property="updateTime"/>
<result column="remark" property="remark"/>
</resultMap>
<sql id="selectAppUserJobComplaintVo">
select id, user_id, job_id, complaint_type, complaint_content, evidence_url, contact_phone,
complaint_status, handle_user_id, handle_content, handle_time, del_flag,
create_by, create_time, update_by, update_time, remark
from app_user_job_complaint
</sql>
<select id="selectAppUserJobComplaintList" resultMap="AppUserJobComplaintResult">
<include refid="selectAppUserJobComplaintVo"/>
<where>
del_flag = '0'
<if test="userId != null">
and user_id = #{userId}
</if>
<if test="jobId != null">
and job_id = #{jobId}
</if>
<if test="complaintType != null">
and complaint_type = #{complaintType}
</if>
<if test="complaintStatus != null">
and complaint_status = #{complaintStatus}
</if>
<if test="handleUserId != null">
and handle_user_id = #{handleUserId}
</if>
<if test="params.beginTime != null and params.beginTime != ''">
and create_time &gt;= #{params.beginTime}
</if>
<if test="params.endTime != null and params.endTime != ''">
and create_time &lt;= #{params.endTime}
</if>
</where>
order by create_time desc
</select>
<select id="selectAppUserJobComplaintById" resultMap="AppUserJobComplaintResult">
<include refid="selectAppUserJobComplaintVo"/>
where id = #{id} and del_flag = '0'
</select>
<select id="selectExistComplaint" resultMap="AppUserJobComplaintResult">
<include refid="selectAppUserJobComplaintVo"/>
where user_id = #{userId} and job_id = #{jobId} and del_flag = '0'
</select>
</mapper>

View File

@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="legalPerson" column="legal_person" />
<result property="legalIdCard" column="legal_id_card" />
<result property="legalPhone" column="legal_phone" />
<result property="companyStatus" column="company_status" />
</resultMap>
@@ -166,4 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select a.* from COMPANY a inner join job b on a.company_id=b.company_id and b.job_id=#{jobId} limit 1
</select>
<update id="updateStatus" parameterType="Company">
update COMPANY set company_status=#{companyStatus},update_time=#{updateTime},update_by=#{updateBy} where company_id=#{companyId} and del_flag='0'
</update>
</mapper>

View File

@@ -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 &lt; 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>