邀请面试业务逻辑完善

This commit is contained in:
2025-12-18 23:40:06 +08:00
parent efc6c6e5a9
commit d89be3848a
12 changed files with 307 additions and 53 deletions

View File

@@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="HotakeMeetingCalendarDetail" id="HotakeMeetingCalendarDetailResult">
<result property="id" column="id" />
<result property="meetingId" column="meeting_id" />
<result property="userId" column="user_id" />
<result property="candidateId" column="candidate_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
@@ -17,14 +17,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectHotakeMeetingCalendarDetailVo">
select id, meeting_id, user_id, del_flag, create_by, create_time, update_by, update_time, remark from hotake_meeting_calendar_detail
select id, meeting_id, candidate_id, del_flag, create_by, create_time, update_by, update_time, remark from hotake_meeting_calendar_detail
</sql>
<select id="selectHotakeMeetingCalendarDetailList" parameterType="HotakeMeetingCalendarDetail" resultMap="HotakeMeetingCalendarDetailResult">
<include refid="selectHotakeMeetingCalendarDetailVo"/>
<where>
<if test="meetingId != null "> and meeting_id = #{meetingId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="candidateId != null "> and candidate_id = #{candidateId}</if>
</where>
</select>
@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into hotake_meeting_calendar_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="meetingId != null">meeting_id,</if>
<if test="userId != null">user_id,</if>
<if test="candidateId != null">candidate_id,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
@@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="meetingId != null">#{meetingId},</if>
<if test="userId != null">#{userId},</if>
<if test="candidateId != null">#{candidateId},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update hotake_meeting_calendar_detail
<trim prefix="SET" suffixOverrides=",">
<if test="meetingId != null">meeting_id = #{meetingId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="candidateId != null">candidate_id = #{candidateId},</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>
@@ -88,9 +88,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<insert id="batchInsertHotakeMeetingCalendarDetail">
insert into hotake_meeting_calendar_detail( id, meeting_id, user_id, del_flag, create_by, create_time, update_by, update_time, remark) values
insert into hotake_meeting_calendar_detail( id, meeting_id, candidate_id, del_flag, create_by, create_time, update_by, update_time, remark) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.meetingId}, #{item.userId}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
( #{item.id}, #{item.meetingId}, #{item.candidateId}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
</foreach>
</insert>
</mapper>

View File

@@ -6,12 +6,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="HotakeMeetingCalendarInfo" id="HotakeMeetingCalendarInfoResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="recruiterId" column="recruiter_id" />
<result property="roleApplyId" column="role_apply_id" />
<result property="compName" column="comp_name" />
<result property="meetingName" column="meeting_name" />
<result property="meetingDate" column="meeting_date" />
<result property="times" column="times" />
<result property="status" column="status" />
<result property="messageVia" column="message_via" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
@@ -21,13 +23,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectHotakeMeetingCalendarInfoVo">
select id, user_id, comp_name, meeting_name, meeting_date, times, status, del_flag, create_by, create_time, update_by, update_time, remark from hotake_meeting_calendar_info
select id, recruiter_id,role_apply_id, comp_name, meeting_name, meeting_date, times, status,message_via,
del_flag, create_by, create_time, update_by, update_time, remark from hotake_meeting_calendar_info
</sql>
<select id="selectHotakeMeetingCalendarInfoList" parameterType="HotakeMeetingCalendarInfo" resultMap="HotakeMeetingCalendarInfoResult">
<include refid="selectHotakeMeetingCalendarInfoVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="recruiterId != null "> and recruiter_id = #{recruiterId}</if>
<if test="roleApplyId != null "> and role_apply_id = #{roleApplyId}</if>
<if test="compName != null and compName != ''"> and comp_name like concat('%', #{compName}, '%')</if>
<if test="meetingName != null and meetingName != ''"> and meeting_name like concat('%', #{meetingName}, '%')</if>
<if test="meetingDate != null and meetingDate != ''"> and meeting_date = #{meetingDate}</if>
@@ -44,12 +48,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertHotakeMeetingCalendarInfo" parameterType="HotakeMeetingCalendarInfo" useGeneratedKeys="true" keyProperty="id">
insert into hotake_meeting_calendar_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="recruiterId != null">recruiter_id,</if>
<if test="roleApplyId != null">role_apply_id,</if>
<if test="compName != null">comp_name,</if>
<if test="meetingName != null">meeting_name,</if>
<if test="meetingDate != null">meeting_date,</if>
<if test="times != null">times,</if>
<if test="status != null">status,</if>
<if test="messageVia != null">message_via,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
@@ -58,12 +64,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="recruiterId != null">#{recruiterId},</if>
<if test="roleApplyId != null">#{roleApplyId},</if>
<if test="compName != null">#{compName},</if>
<if test="meetingName != null">#{meetingName},</if>
<if test="meetingDate != null">#{meetingDate},</if>
<if test="times != null">#{times},</if>
<if test="status != null">#{status},</if>
<if test="messageVia != null">#{messageVia},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
@@ -76,12 +84,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateHotakeMeetingCalendarInfo" parameterType="HotakeMeetingCalendarInfo">
update hotake_meeting_calendar_info
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="recruiterId != null">recruiter_id = #{recruiterId},</if>
<if test="roleApplyId != null">role_apply_id = #{roleApplyId},</if>
<if test="compName != null">comp_name = #{compName},</if>
<if test="meetingName != null">meeting_name = #{meetingName},</if>
<if test="meetingDate != null">meeting_date = #{meetingDate},</if>
<if test="times != null">times = #{times},</if>
<if test="status != null">status = #{status},</if>
<if test="messageVia != null">message_via = #{messageVia},</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>
@@ -104,9 +114,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<insert id="batchInsertHotakeMeetingCalendarInfo">
insert into hotake_meeting_calendar_info( id, user_id, comp_name, meeting_name, meeting_date, times, status, del_flag, create_by, create_time, update_by, update_time, remark) values
insert into hotake_meeting_calendar_info( id, recruiter_id,role_apply_id, comp_name, meeting_name, meeting_date, times,
status, message_via,del_flag, create_by, create_time, update_by, update_time, remark) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.userId}, #{item.compName}, #{item.meetingName}, #{item.meetingDate}, #{item.times}, #{item.status}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
( #{item.id}, #{item.recruiterId},#{item.roleApplyId}, #{item.compName}, #{item.meetingName},
#{item.meetingDate}, #{item.times}, #{item.status},#{item.messageVia} ,#{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
</foreach>
</insert>
</mapper>