|
|
@ -3,6 +3,7 @@ |
|
|
|
<mapper namespace="com.ccsens.tcm.persist.mapper.ConferenceRecordsMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="task_id" jdbcType="BIGINT" property="taskId" /> |
|
|
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> |
|
|
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> |
|
|
|
<result column="place" jdbcType="VARCHAR" property="place" /> |
|
|
@ -74,8 +75,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, start_time, end_time, place, host, participants, discussion_content, meeting_minutes, |
|
|
|
user_id, created_at, update_at, rec_status |
|
|
|
id, task_id, start_time, end_time, place, host, participants, discussion_content, |
|
|
|
meeting_minutes, user_id, created_at, update_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -108,24 +109,26 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> |
|
|
|
SELECT LAST_INSERT_ID() |
|
|
|
</selectKey> |
|
|
|
insert into t_conference_records (start_time, end_time, place, |
|
|
|
host, participants, discussion_content, |
|
|
|
meeting_minutes, user_id, created_at, |
|
|
|
update_at, rec_status) |
|
|
|
values (#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{place,jdbcType=VARCHAR}, |
|
|
|
#{host,jdbcType=VARCHAR}, #{participants,jdbcType=VARCHAR}, #{discussionContent,jdbcType=VARCHAR}, |
|
|
|
#{meetingMinutes,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
insert into t_conference_records (id, task_id, start_time, |
|
|
|
end_time, place, host, |
|
|
|
participants, discussion_content, meeting_minutes, |
|
|
|
user_id, created_at, update_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{place,jdbcType=VARCHAR}, #{host,jdbcType=VARCHAR}, |
|
|
|
#{participants,jdbcType=VARCHAR}, #{discussionContent,jdbcType=VARCHAR}, #{meetingMinutes,jdbcType=VARCHAR}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> |
|
|
|
SELECT LAST_INSERT_ID() |
|
|
|
</selectKey> |
|
|
|
insert into t_conference_records |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
|
id, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
start_time, |
|
|
|
</if> |
|
|
@ -161,6 +164,12 @@ |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
#{taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
#{startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -208,6 +217,9 @@ |
|
|
|
<if test="record.id != null"> |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.taskId != null"> |
|
|
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.startTime != null"> |
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -249,6 +261,7 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_conference_records |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|
|
|
place = #{record.place,jdbcType=VARCHAR}, |
|
|
@ -267,6 +280,9 @@ |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
update t_conference_records |
|
|
|
<set> |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id = #{taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -305,7 +321,8 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
update t_conference_records |
|
|
|
set start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
set task_id = #{taskId,jdbcType=BIGINT}, |
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|
|
|
place = #{place,jdbcType=VARCHAR}, |
|
|
|
host = #{host,jdbcType=VARCHAR}, |
|
|
|