|
|
@ -4,6 +4,8 @@ |
|
|
|
<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="task_start_time" jdbcType="TIMESTAMP" property="taskStartTime" /> |
|
|
|
<result column="task_end_time" jdbcType="TIMESTAMP" property="taskEndTime" /> |
|
|
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> |
|
|
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> |
|
|
|
<result column="place" jdbcType="VARCHAR" property="place" /> |
|
|
@ -75,8 +77,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, task_id, start_time, end_time, place, host, participants, discussion_content, |
|
|
|
meeting_minutes, user_id, created_at, update_at, rec_status |
|
|
|
id, task_id, task_start_time, task_end_time, 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 |
|
|
@ -109,26 +111,35 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
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}) |
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> |
|
|
|
SELECT LAST_INSERT_ID() |
|
|
|
</selectKey> |
|
|
|
insert into t_conference_records (task_id, task_start_time, task_end_time, |
|
|
|
start_time, end_time, place, |
|
|
|
host, participants, discussion_content, |
|
|
|
meeting_minutes, user_id, created_at, |
|
|
|
update_at, rec_status) |
|
|
|
values (#{taskId,jdbcType=BIGINT}, #{taskStartTime,jdbcType=TIMESTAMP}, #{taskEndTime,jdbcType=TIMESTAMP}, |
|
|
|
#{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="taskStartTime != null"> |
|
|
|
task_start_time, |
|
|
|
</if> |
|
|
|
<if test="taskEndTime != null"> |
|
|
|
task_end_time, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
start_time, |
|
|
|
</if> |
|
|
@ -164,12 +175,15 @@ |
|
|
|
</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="taskStartTime != null"> |
|
|
|
#{taskStartTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="taskEndTime != null"> |
|
|
|
#{taskEndTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
#{startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -220,6 +234,12 @@ |
|
|
|
<if test="record.taskId != null"> |
|
|
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.taskStartTime != null"> |
|
|
|
task_start_time = #{record.taskStartTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="record.taskEndTime != null"> |
|
|
|
task_end_time = #{record.taskEndTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="record.startTime != null"> |
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -262,6 +282,8 @@ |
|
|
|
update t_conference_records |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
task_id = #{record.taskId,jdbcType=BIGINT}, |
|
|
|
task_start_time = #{record.taskStartTime,jdbcType=TIMESTAMP}, |
|
|
|
task_end_time = #{record.taskEndTime,jdbcType=TIMESTAMP}, |
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|
|
|
place = #{record.place,jdbcType=VARCHAR}, |
|
|
@ -283,6 +305,12 @@ |
|
|
|
<if test="taskId != null"> |
|
|
|
task_id = #{taskId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="taskStartTime != null"> |
|
|
|
task_start_time = #{taskStartTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="taskEndTime != null"> |
|
|
|
task_end_time = #{taskEndTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -322,6 +350,8 @@ |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
update t_conference_records |
|
|
|
set task_id = #{taskId,jdbcType=BIGINT}, |
|
|
|
task_start_time = #{taskStartTime,jdbcType=TIMESTAMP}, |
|
|
|
task_end_time = #{taskEndTime,jdbcType=TIMESTAMP}, |
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|
|
|
place = #{place,jdbcType=VARCHAR}, |
|
|
|