|
|
@ -8,15 +8,13 @@ |
|
|
|
<result column="place" jdbcType="VARCHAR" property="place" /> |
|
|
|
<result column="host" jdbcType="VARCHAR" property="host" /> |
|
|
|
<result column="participants" jdbcType="VARCHAR" property="participants" /> |
|
|
|
<result column="discussion_content" jdbcType="VARCHAR" property="discussionContent" /> |
|
|
|
<result column="meeting_minutes" jdbcType="VARCHAR" property="meetingMinutes" /> |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|
|
|
<result column="discussion_content" jdbcType="LONGVARCHAR" property="discussionContent" /> |
|
|
|
<result column="meeting_minutes" jdbcType="LONGVARCHAR" property="meetingMinutes" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|
|
@ -76,28 +74,9 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, start_time, end_time, place, host, participants, user_id, created_at, update_at, |
|
|
|
rec_status |
|
|
|
</sql> |
|
|
|
<sql id="Blob_Column_List"> |
|
|
|
discussion_content, meeting_minutes |
|
|
|
id, start_time, end_time, place, host, participants, discussion_content, meeting_minutes, |
|
|
|
user_id, created_at, update_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="ResultMapWithBLOBs"> |
|
|
|
select |
|
|
|
<if test="distinct"> |
|
|
|
distinct |
|
|
|
</if> |
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
, |
|
|
|
<include refid="Blob_Column_List" /> |
|
|
|
from t_conference_records |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
<if test="orderByClause != null"> |
|
|
|
order by ${orderByClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<if test="distinct"> |
|
|
@ -112,11 +91,9 @@ |
|
|
|
order by ${orderByClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs"> |
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
, |
|
|
|
<include refid="Blob_Column_List" /> |
|
|
|
from t_conference_records |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</select> |
|
|
@ -130,24 +107,25 @@ |
|
|
|
<include refid="Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|
|
|
insert into t_conference_records (id, start_time, end_time, |
|
|
|
place, host, participants, |
|
|
|
user_id, created_at, update_at, |
|
|
|
rec_status, discussion_content, meeting_minutes |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, |
|
|
|
#{place,jdbcType=VARCHAR}, #{host,jdbcType=VARCHAR}, #{participants,jdbcType=VARCHAR}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{discussionContent,jdbcType=LONGVARCHAR}, #{meetingMinutes,jdbcType=LONGVARCHAR} |
|
|
|
) |
|
|
|
<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> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|
|
|
<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="startTime != null"> |
|
|
|
start_time, |
|
|
|
</if> |
|
|
@ -163,6 +141,12 @@ |
|
|
|
<if test="participants != null"> |
|
|
|
participants, |
|
|
|
</if> |
|
|
|
<if test="discussionContent != null"> |
|
|
|
discussion_content, |
|
|
|
</if> |
|
|
|
<if test="meetingMinutes != null"> |
|
|
|
meeting_minutes, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
user_id, |
|
|
|
</if> |
|
|
@ -175,17 +159,8 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="discussionContent != null"> |
|
|
|
discussion_content, |
|
|
|
</if> |
|
|
|
<if test="meetingMinutes != null"> |
|
|
|
meeting_minutes, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
#{startTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -201,6 +176,12 @@ |
|
|
|
<if test="participants != null"> |
|
|
|
#{participants,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="discussionContent != null"> |
|
|
|
#{discussionContent,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="meetingMinutes != null"> |
|
|
|
#{meetingMinutes,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
#{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -213,12 +194,6 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="discussionContent != null"> |
|
|
|
#{discussionContent,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="meetingMinutes != null"> |
|
|
|
#{meetingMinutes,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultType="java.lang.Long"> |
|
|
@ -248,6 +223,12 @@ |
|
|
|
<if test="record.participants != null"> |
|
|
|
participants = #{record.participants,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.discussionContent != null"> |
|
|
|
discussion_content = #{record.discussionContent,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.meetingMinutes != null"> |
|
|
|
meeting_minutes = #{record.meetingMinutes,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -260,35 +241,11 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.discussionContent != null"> |
|
|
|
discussion_content = #{record.discussionContent,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.meetingMinutes != null"> |
|
|
|
meeting_minutes = #{record.meetingMinutes,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
</update> |
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|
|
|
update t_conference_records |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|
|
|
place = #{record.place,jdbcType=VARCHAR}, |
|
|
|
host = #{record.host,jdbcType=VARCHAR}, |
|
|
|
participants = #{record.participants,jdbcType=VARCHAR}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
update_at = #{record.updateAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
discussion_content = #{record.discussionContent,jdbcType=LONGVARCHAR}, |
|
|
|
meeting_minutes = #{record.meetingMinutes,jdbcType=LONGVARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
</update> |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_conference_records |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
@ -297,6 +254,8 @@ |
|
|
|
place = #{record.place,jdbcType=VARCHAR}, |
|
|
|
host = #{record.host,jdbcType=VARCHAR}, |
|
|
|
participants = #{record.participants,jdbcType=VARCHAR}, |
|
|
|
discussion_content = #{record.discussionContent,jdbcType=VARCHAR}, |
|
|
|
meeting_minutes = #{record.meetingMinutes,jdbcType=VARCHAR}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
update_at = #{record.updateAt,jdbcType=TIMESTAMP}, |
|
|
@ -305,7 +264,7 @@ |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
update t_conference_records |
|
|
|
<set> |
|
|
|
<if test="startTime != null"> |
|
|
@ -323,6 +282,12 @@ |
|
|
|
<if test="participants != null"> |
|
|
|
participants = #{participants,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="discussionContent != null"> |
|
|
|
discussion_content = #{discussionContent,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="meetingMinutes != null"> |
|
|
|
meeting_minutes = #{meetingMinutes,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -335,30 +300,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="discussionContent != null"> |
|
|
|
discussion_content = #{discussionContent,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="meetingMinutes != null"> |
|
|
|
meeting_minutes = #{meetingMinutes,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|
|
|
update t_conference_records |
|
|
|
set start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|
|
|
place = #{place,jdbcType=VARCHAR}, |
|
|
|
host = #{host,jdbcType=VARCHAR}, |
|
|
|
participants = #{participants,jdbcType=VARCHAR}, |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
discussion_content = #{discussionContent,jdbcType=LONGVARCHAR}, |
|
|
|
meeting_minutes = #{meetingMinutes,jdbcType=LONGVARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|
|
|
update t_conference_records |
|
|
|
set start_time = #{startTime,jdbcType=TIMESTAMP}, |
|
|
@ -366,6 +310,8 @@ |
|
|
|
place = #{place,jdbcType=VARCHAR}, |
|
|
|
host = #{host,jdbcType=VARCHAR}, |
|
|
|
participants = #{participants,jdbcType=VARCHAR}, |
|
|
|
discussion_content = #{discussionContent,jdbcType=VARCHAR}, |
|
|
|
meeting_minutes = #{meetingMinutes,jdbcType=VARCHAR}, |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|
|
|