表初始化mapper
This commit is contained in:
@@ -0,0 +1,175 @@
|
||||
<?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.cool.store.mapper.HyPartnerInterviewPlanMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.model.entity.HyPartnerInterviewPlanDO">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="partner_line_id" jdbcType="BIGINT" property="partnerLineId" />
|
||||
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
|
||||
<result column="interview_date" jdbcType="DATE" property="interviewDate" />
|
||||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
||||
<result column="is_partner_interview" jdbcType="TINYINT" property="isPartnerInterview" />
|
||||
<result column="actual_start_time" jdbcType="TIMESTAMP" property="actualStartTime" />
|
||||
<result column="actual_end_time" jdbcType="TIMESTAMP" property="actualEndTime" />
|
||||
<result column="room_id" jdbcType="VARCHAR" property="roomId" />
|
||||
<result column="room_password" jdbcType="VARCHAR" property="roomPassword" />
|
||||
<result column="interviewer" jdbcType="VARCHAR" property="interviewer" />
|
||||
<result column="room_status" jdbcType="TINYINT" property="roomStatus" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, partner_line_id, partner_id, interview_date, start_time, end_time, is_partner_interview,
|
||||
actual_start_time, actual_end_time, room_id, room_password, interviewer, room_status,
|
||||
deleted, create_time, update_time
|
||||
</sql>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into hy_partner_interview_plan_${enterpriseId}
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="record.partnerLineId != null">
|
||||
partner_line_id,
|
||||
</if>
|
||||
<if test="record.partnerId != null">
|
||||
partner_id,
|
||||
</if>
|
||||
<if test="record.interviewDate != null">
|
||||
interview_date,
|
||||
</if>
|
||||
<if test="record.startTime != null">
|
||||
start_time,
|
||||
</if>
|
||||
<if test="record.endTime != null">
|
||||
end_time,
|
||||
</if>
|
||||
<if test="record.isPartnerInterview != null">
|
||||
is_partner_interview,
|
||||
</if>
|
||||
<if test="record.actualStartTime != null">
|
||||
actual_start_time,
|
||||
</if>
|
||||
<if test="record.actualEndTime != null">
|
||||
actual_end_time,
|
||||
</if>
|
||||
<if test="record.roomId != null">
|
||||
room_id,
|
||||
</if>
|
||||
<if test="record.roomPassword != null">
|
||||
room_password,
|
||||
</if>
|
||||
<if test="record.interviewer != null">
|
||||
interviewer,
|
||||
</if>
|
||||
<if test="record.roomStatus != null">
|
||||
room_status,
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="record.partnerLineId != null">
|
||||
#{record.partnerLineId},
|
||||
</if>
|
||||
<if test="record.partnerId != null">
|
||||
#{record.partnerId},
|
||||
</if>
|
||||
<if test="record.interviewDate != null">
|
||||
#{record.interviewDate},
|
||||
</if>
|
||||
<if test="record.startTime != null">
|
||||
#{record.startTime},
|
||||
</if>
|
||||
<if test="record.endTime != null">
|
||||
#{record.endTime},
|
||||
</if>
|
||||
<if test="record.isPartnerInterview != null">
|
||||
#{record.isPartnerInterview},
|
||||
</if>
|
||||
<if test="record.actualStartTime != null">
|
||||
#{record.actualStartTime},
|
||||
</if>
|
||||
<if test="record.actualEndTime != null">
|
||||
#{record.actualEndTime},
|
||||
</if>
|
||||
<if test="record.roomId != null">
|
||||
#{record.roomId},
|
||||
</if>
|
||||
<if test="record.roomPassword != null">
|
||||
#{record.roomPassword},
|
||||
</if>
|
||||
<if test="record.interviewer != null">
|
||||
#{record.interviewer},
|
||||
</if>
|
||||
<if test="record.roomStatus != null">
|
||||
#{record.roomStatus},
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
#{record.deleted},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
#{record.createTime},
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
#{record.updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective">
|
||||
update hy_partner_interview_plan_${enterpriseId}
|
||||
<set>
|
||||
<if test="record.partnerLineId != null">
|
||||
partner_line_id = #{record.partnerLineId},
|
||||
</if>
|
||||
<if test="record.partnerId != null">
|
||||
partner_id = #{record.partnerId},
|
||||
</if>
|
||||
<if test="record.interviewDate != null">
|
||||
interview_date = #{record.interviewDate},
|
||||
</if>
|
||||
<if test="record.startTime != null">
|
||||
start_time = #{record.startTime},
|
||||
</if>
|
||||
<if test="record.endTime != null">
|
||||
end_time = #{record.endTime},
|
||||
</if>
|
||||
<if test="record.isPartnerInterview != null">
|
||||
is_partner_interview = #{record.isPartnerInterview},
|
||||
</if>
|
||||
<if test="record.actualStartTime != null">
|
||||
actual_start_time = #{record.actualStartTime},
|
||||
</if>
|
||||
<if test="record.actualEndTime != null">
|
||||
actual_end_time = #{record.actualEndTime},
|
||||
</if>
|
||||
<if test="record.roomId != null">
|
||||
room_id = #{record.roomId},
|
||||
</if>
|
||||
<if test="record.roomPassword != null">
|
||||
room_password = #{record.roomPassword},
|
||||
</if>
|
||||
<if test="record.interviewer != null">
|
||||
interviewer = #{record.interviewer},
|
||||
</if>
|
||||
<if test="record.roomStatus != null">
|
||||
room_status = #{record.roomStatus},
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
deleted = #{record.deleted},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime},
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
update_time = #{record.updateTime},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user