|
@@ -8,6 +8,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="recordId" column="record_id" />
|
|
<result property="recordId" column="record_id" />
|
|
<result property="conferenceRoomOrderId" column="conference_room_order_id" />
|
|
<result property="conferenceRoomOrderId" column="conference_room_order_id" />
|
|
<result property="recordContent" column="record_content" />
|
|
<result property="recordContent" column="record_content" />
|
|
|
|
+ <result property="audioUrl" column="audio_url" />
|
|
|
|
+ <result property="userId" column="user_id" />
|
|
|
|
+ <result property="avatar" column="avatar" />
|
|
|
|
+ <result property="nickName" column="nick_name" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
@@ -15,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMeetingRecordsVo">
|
|
<sql id="selectMeetingRecordsVo">
|
|
- select record_id, conference_room_order_id, record_content, create_time, update_by, update_time, remark from meeting_records
|
|
|
|
|
|
+ select record_id, conference_room_order_id,audio_url, record_content, user_id, avatar, nick_name, create_time, update_by, update_time, remark from meeting_records
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectMeetingRecordsList" parameterType="MeetingRecords" resultMap="MeetingRecordsResult">
|
|
<select id="selectMeetingRecordsList" parameterType="MeetingRecords" resultMap="MeetingRecordsResult">
|
|
@@ -23,31 +27,49 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<where>
|
|
<where>
|
|
<if test="conferenceRoomOrderId != null "> and conference_room_order_id = #{conferenceRoomOrderId}</if>
|
|
<if test="conferenceRoomOrderId != null "> and conference_room_order_id = #{conferenceRoomOrderId}</if>
|
|
<if test="recordContent != null and recordContent != ''"> and record_content = #{recordContent}</if>
|
|
<if test="recordContent != null and recordContent != ''"> and record_content = #{recordContent}</if>
|
|
|
|
+ <if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
+ <if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if>
|
|
|
|
+ <if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ order by create_time
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectMeetingRecordsByConferenceRoomOrderId" parameterType="Long" resultMap="MeetingRecordsResult">
|
|
|
|
+ <include refid="selectMeetingRecordsVo"/>
|
|
|
|
+ where conference_room_order_id = #{conferenceRoomOrderId} limit 1
|
|
|
|
+ </select>
|
|
<select id="selectMeetingRecordsByRecordId" parameterType="Long" resultMap="MeetingRecordsResult">
|
|
<select id="selectMeetingRecordsByRecordId" parameterType="Long" resultMap="MeetingRecordsResult">
|
|
<include refid="selectMeetingRecordsVo"/>
|
|
<include refid="selectMeetingRecordsVo"/>
|
|
where record_id = #{recordId}
|
|
where record_id = #{recordId}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertMeetingRecords" parameterType="MeetingRecords" useGeneratedKeys="true" keyProperty="recordId">
|
|
<insert id="insertMeetingRecords" parameterType="MeetingRecords" useGeneratedKeys="true" keyProperty="recordId">
|
|
insert into meeting_records
|
|
insert into meeting_records
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="conferenceRoomOrderId != null">conference_room_order_id,</if>
|
|
|
|
|
|
+ <if test="recordId != null and recordId != ''">record_id,</if>
|
|
|
|
+ <if test="conferenceRoomOrderId != null ">conference_room_order_id,</if>
|
|
<if test="recordContent != null">record_content,</if>
|
|
<if test="recordContent != null">record_content,</if>
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
|
|
|
+ <if test="audioUrl != null and audioUrl != ''">audio_url,</if>
|
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
|
+ <if test="avatar != null">avatar,</if>
|
|
|
|
+ <if test="nickName != null and nickName != ''">nick_name,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
|
+ create_time
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="recordId != null and recordId != ''">#{recordId},</if>
|
|
<if test="conferenceRoomOrderId != null">#{conferenceRoomOrderId},</if>
|
|
<if test="conferenceRoomOrderId != null">#{conferenceRoomOrderId},</if>
|
|
<if test="recordContent != null">#{recordContent},</if>
|
|
<if test="recordContent != null">#{recordContent},</if>
|
|
- <if test="createTime != null">#{createTime},</if>
|
|
|
|
|
|
+ <if test="audioUrl != null and audioUrl != ''">#{audioUrl},</if>
|
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
|
+ <if test="avatar != null">#{avatar},</if>
|
|
|
|
+ <if test="nickName != null and nickName != ''">#{nickName},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
+ sysdate()
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -56,15 +78,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="conferenceRoomOrderId != null">conference_room_order_id = #{conferenceRoomOrderId},</if>
|
|
<if test="conferenceRoomOrderId != null">conference_room_order_id = #{conferenceRoomOrderId},</if>
|
|
<if test="recordContent != null">record_content = #{recordContent},</if>
|
|
<if test="recordContent != null">record_content = #{recordContent},</if>
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
|
+ <if test="audioUrl != null and audioUrl != ''">audio_url =#{audioUrl},</if>
|
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
|
+ <if test="avatar != null">avatar = #{avatar},</if>
|
|
|
|
+ <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
+ create_time = sysdate(),
|
|
</trim>
|
|
</trim>
|
|
where record_id = #{recordId}
|
|
where record_id = #{recordId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
- <delete id="deleteMeetingRecordsByRecordId" parameterType="Long">
|
|
|
|
|
|
+ <delete id="deleteMeetingRecordsByRecordId" parameterType="String">
|
|
delete from meeting_records where record_id = #{recordId}
|
|
delete from meeting_records where record_id = #{recordId}
|
|
</delete>
|
|
</delete>
|
|
|
|
|