岗位- AI问题业务逻辑完善

This commit is contained in:
2025-12-14 15:42:14 +08:00
parent 37766b1a05
commit e18371ddb8
15 changed files with 730 additions and 8 deletions

View File

@@ -0,0 +1,112 @@
<?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.vetti.hotake.mapper.HotakeAiInterviewQuestionsInfoMapper">
<resultMap type="HotakeAiInterviewQuestionsInfo" id="HotakeAiInterviewQuestionsInfoResult">
<result property="id" column="id" />
<result property="roleId" column="role_id" />
<result property="recruiterId" column="recruiter_id" />
<result property="questionTitle" column="question_title" />
<result property="overview" column="overview" />
<result property="focusType" column="focus_type" />
<result property="questionJson" column="question_json" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectHotakeAiInterviewQuestionsInfoVo">
select id, role_id, recruiter_id, question_title, overview, focus_type, question_json, del_flag, create_by, create_time, update_by, update_time, remark from hotake_ai_interview_questions_info
</sql>
<select id="selectHotakeAiInterviewQuestionsInfoList" parameterType="HotakeAiInterviewQuestionsInfo" resultMap="HotakeAiInterviewQuestionsInfoResult">
<include refid="selectHotakeAiInterviewQuestionsInfoVo"/>
<where>
<if test="roleId != null "> and role_id = #{roleId}</if>
<if test="recruiterId != null "> and recruiter_id = #{recruiterId}</if>
<if test="questionTitle != null and questionTitle != ''"> and question_title = #{questionTitle}</if>
<if test="overview != null and overview != ''"> and overview = #{overview}</if>
<if test="focusType != null and focusType != ''"> and focus_type = #{focusType}</if>
<if test="questionJson != null and questionJson != ''"> and question_json = #{questionJson}</if>
</where>
</select>
<select id="selectHotakeAiInterviewQuestionsInfoById" parameterType="Long" resultMap="HotakeAiInterviewQuestionsInfoResult">
<include refid="selectHotakeAiInterviewQuestionsInfoVo"/>
where id = #{id}
</select>
<insert id="insertHotakeAiInterviewQuestionsInfo" parameterType="HotakeAiInterviewQuestionsInfo" useGeneratedKeys="true" keyProperty="id">
insert into hotake_ai_interview_questions_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="roleId != null">role_id,</if>
<if test="recruiterId != null">recruiter_id,</if>
<if test="questionTitle != null">question_title,</if>
<if test="overview != null">overview,</if>
<if test="focusType != null">focus_type,</if>
<if test="questionJson != null">question_json,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="roleId != null">#{roleId},</if>
<if test="recruiterId != null">#{recruiterId},</if>
<if test="questionTitle != null">#{questionTitle},</if>
<if test="overview != null">#{overview},</if>
<if test="focusType != null">#{focusType},</if>
<if test="questionJson != null">#{questionJson},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateHotakeAiInterviewQuestionsInfo" parameterType="HotakeAiInterviewQuestionsInfo">
update hotake_ai_interview_questions_info
<trim prefix="SET" suffixOverrides=",">
<if test="roleId != null">role_id = #{roleId},</if>
<if test="recruiterId != null">recruiter_id = #{recruiterId},</if>
<if test="questionTitle != null">question_title = #{questionTitle},</if>
<if test="overview != null">overview = #{overview},</if>
<if test="focusType != null">focus_type = #{focusType},</if>
<if test="questionJson != null">question_json = #{questionJson},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteHotakeAiInterviewQuestionsInfoById" parameterType="Long">
delete from hotake_ai_interview_questions_info where id = #{id}
</delete>
<delete id="deleteHotakeAiInterviewQuestionsInfoByIds" parameterType="String">
delete from hotake_ai_interview_questions_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertHotakeAiInterviewQuestionsInfo">
insert into hotake_ai_interview_questions_info( id, role_id, recruiter_id, question_title, overview, focus_type, question_json, del_flag, create_by, create_time, update_by, update_time, remark,) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.roleId}, #{item.recruiterId}, #{item.questionTitle}, #{item.overview}, #{item.focusType}, #{item.questionJson}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark},)
</foreach>
</insert>
</mapper>

View File

@@ -34,6 +34,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="applicationDeadline" column="application_deadline" />
<result property="posted" column="posted" />
<result property="languages" column="languages" />
<result property="aiScreeningVideoFlag" column="ai_screening_video_flag" />
<result property="videoId" column="video_id" />
<result property="speechSpeed" column="speech_speed" />
<result property="dataType" column="data_type" />
<result property="operStep" column="oper_step" />
<result property="status" column="status" />
@@ -49,7 +54,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, uuid,recruiter_id, role_name,company_name,role_type, location_type, locations, applied, job_Level, job_type, job_experience, salary_start, salary_end, required_skills_json,
nice_to_have_skills_json, education_requirements_json, accept_equivalent_work_flag,
certifications_licenses_json, description_tone, about_role, responsibilities, role_benefits_json,
publishing_channels_json, publishing_schedule_date, publishing_schedule_time, application_deadline, posted, languages,data_type,
publishing_channels_json, publishing_schedule_date, publishing_schedule_time, application_deadline,
posted, languages,ai_screening_video_flag,video_id,speech_speed,data_type,
oper_step, status,del_flag, create_by, create_time, update_by, update_time, remark from hotake_roles_info
</sql>
@@ -128,6 +134,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="publishingScheduleTime != null">publishing_schedule_time,</if>
<if test="applicationDeadline != null">application_deadline,</if>
<if test="posted != null">posted,</if>
<if test="aiScreeningVideoFlag != null">ai_screening_video_flag,</if>
<if test="videoId != null">video_id,</if>
<if test="speechSpeed != null">speech_speed,</if>
<if test="languages != null">languages,</if>
<if test="dataType != null">data_type,</if>
<if test="operStep != null">oper_step,</if>
@@ -167,6 +178,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="publishingScheduleTime != null">#{publishingScheduleTime},</if>
<if test="applicationDeadline != null">#{applicationDeadline},</if>
<if test="posted != null">#{posted},</if>
<if test="aiScreeningVideoFlag != null">#{aiScreeningVideoFlag},</if>
<if test="videoId != null">#{videoId},</if>
<if test="speechSpeed != null">#{speechSpeed},</if>
<if test="languages != null">#{languages},</if>
<if test="dataType != null">#{dataType},</if>
<if test="operStep != null">#{operStep},</if>
@@ -209,6 +225,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="publishingScheduleTime != null">publishing_schedule_time = #{publishingScheduleTime},</if>
<if test="applicationDeadline != null">application_deadline = #{applicationDeadline},</if>
<if test="posted != null">posted = #{posted},</if>
<if test="aiScreeningVideoFlag != null">ai_screening_video_flag = #{aiScreeningVideoFlag},</if>
<if test="videoId != null">video_id = #{videoId},</if>
<if test="speechSpeed != null">speech_speed = #{speechSpeed},</if>
<if test="languages != null">languages = #{languages},</if>
<if test="dataType != null">data_type = #{dataType},</if>
<if test="operStep != null">oper_step = #{operStep},</if>
@@ -252,6 +273,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
publishing_schedule_time = #{publishingScheduleTime},
application_deadline = #{applicationDeadline},
posted = #{posted},
aiScreeningVideoFlag = #{ai_screening_video_flag},
videoId = #{video_id},
speech_speed = #{speechSpeed},
languages = #{languages},
data_type = #{dataType},
oper_step = #{operStep},