|
@@ -0,0 +1,134 @@
|
|
|
+<?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.ruoyi.branch.mapper.TBranchMeetingMgrMapper">
|
|
|
+
|
|
|
+ <resultMap type="TBranchMeetingMgr" id="TBranchMeetingMgrResult">
|
|
|
+ <result property="meetingId" column="meeting_id" />
|
|
|
+ <result property="meetingType" column="meeting_type" />
|
|
|
+ <result property="meetingTime" column="meeting_time" />
|
|
|
+ <result property="meetingVenue" column="meeting_venue" />
|
|
|
+ <result property="host" column="host" />
|
|
|
+ <result property="recorder" column="recorder" />
|
|
|
+ <result property="participants" column="participants" />
|
|
|
+ <result property="absentees" column="absentees" />
|
|
|
+ <result property="attendees" column="attendees" />
|
|
|
+ <result property="mainTopics" column="main_topics" />
|
|
|
+ <result property="resolutionsFormed" column="resolutions_formed" />
|
|
|
+ <result property="remarks" column="remarks" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTBranchMeetingMgrVo">
|
|
|
+ select meeting_id, meeting_type, meeting_time, meeting_venue, host, recorder, participants, absentees, attendees, main_topics, resolutions_formed, remarks, del_flag, create_by, create_time, update_by, update_time from t_branch_meeting_mgr
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTBranchMeetingMgrList" parameterType="TBranchMeetingMgr" resultMap="TBranchMeetingMgrResult">
|
|
|
+ <include refid="selectTBranchMeetingMgrVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="meetingId != null "> and meeting_id = #{meetingId}</if>
|
|
|
+ <if test="meetingType != null and meetingType != ''"> and meeting_type = #{meetingType}</if>
|
|
|
+ <if test="meetingTime != null "> and meeting_time = #{meetingTime}</if>
|
|
|
+ <if test="meetingVenue != null and meetingVenue != ''"> and meeting_venue = #{meetingVenue}</if>
|
|
|
+ <if test="host != null and host != ''"> and host = #{host}</if>
|
|
|
+ <if test="recorder != null and recorder != ''"> and recorder = #{recorder}</if>
|
|
|
+ <if test="participants != null and participants != ''"> and participants = #{participants}</if>
|
|
|
+ <if test="absentees != null and absentees != ''"> and absentees = #{absentees}</if>
|
|
|
+ <if test="attendees != null and attendees != ''"> and attendees = #{attendees}</if>
|
|
|
+ <if test="mainTopics != null and mainTopics != ''"> and main_topics = #{mainTopics}</if>
|
|
|
+ <if test="resolutionsFormed != null and resolutionsFormed != ''"> and resolutions_formed = #{resolutionsFormed}</if>
|
|
|
+ <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
+ and del_flag = 0
|
|
|
+ </where>
|
|
|
+ order by meeting_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTBranchMeetingMgrByMeetingId" parameterType="Long" resultMap="TBranchMeetingMgrResult">
|
|
|
+ <include refid="selectTBranchMeetingMgrVo"/>
|
|
|
+ where meeting_id = #{meetingId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTBranchMeetingMgr" parameterType="TBranchMeetingMgr">
|
|
|
+ <selectKey keyProperty="meetingId" resultType="long" order="BEFORE">
|
|
|
+ SELECT seq_t_branch_meeting_mgr.NEXTVAL as meetingId FROM DUAL
|
|
|
+ </selectKey>
|
|
|
+ insert into t_branch_meeting_mgr
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="meetingId != null">meeting_id,</if>
|
|
|
+ <if test="meetingType != null">meeting_type,</if>
|
|
|
+ <if test="meetingTime != null">meeting_time,</if>
|
|
|
+ <if test="meetingVenue != null">meeting_venue,</if>
|
|
|
+ <if test="host != null">host,</if>
|
|
|
+ <if test="recorder != null">recorder,</if>
|
|
|
+ <if test="participants != null">participants,</if>
|
|
|
+ <if test="absentees != null">absentees,</if>
|
|
|
+ <if test="attendees != null">attendees,</if>
|
|
|
+ <if test="mainTopics != null">main_topics,</if>
|
|
|
+ <if test="resolutionsFormed != null">resolutions_formed,</if>
|
|
|
+ <if test="remarks != null">remarks,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="meetingId != null">#{meetingId},</if>
|
|
|
+ <if test="meetingType != null">#{meetingType},</if>
|
|
|
+ <if test="meetingTime != null">#{meetingTime},</if>
|
|
|
+ <if test="meetingVenue != null">#{meetingVenue},</if>
|
|
|
+ <if test="host != null">#{host},</if>
|
|
|
+ <if test="recorder != null">#{recorder},</if>
|
|
|
+ <if test="participants != null">#{participants},</if>
|
|
|
+ <if test="absentees != null">#{absentees},</if>
|
|
|
+ <if test="attendees != null">#{attendees},</if>
|
|
|
+ <if test="mainTopics != null">#{mainTopics},</if>
|
|
|
+ <if test="resolutionsFormed != null">#{resolutionsFormed},</if>
|
|
|
+ <if test="remarks != null">#{remarks},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTBranchMeetingMgr" parameterType="TBranchMeetingMgr">
|
|
|
+ update t_branch_meeting_mgr
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="meetingType != null">meeting_type = #{meetingType},</if>
|
|
|
+ <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
|
|
|
+ <if test="meetingVenue != null">meeting_venue = #{meetingVenue},</if>
|
|
|
+ <if test="host != null">host = #{host},</if>
|
|
|
+ <if test="recorder != null">recorder = #{recorder},</if>
|
|
|
+ <if test="participants != null">participants = #{participants},</if>
|
|
|
+ <if test="absentees != null">absentees = #{absentees},</if>
|
|
|
+ <if test="attendees != null">attendees = #{attendees},</if>
|
|
|
+ <if test="mainTopics != null">main_topics = #{mainTopics},</if>
|
|
|
+ <if test="resolutionsFormed != null">resolutions_formed = #{resolutionsFormed},</if>
|
|
|
+ <if test="remarks != null">remarks = #{remarks},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where meeting_id = #{meetingId}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteTBranchMeetingMgrByMeetingId" parameterType="Long">
|
|
|
+ update t_branch_meeting_mgr set del_flag = 2 where meeting_id = #{meetingId}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteTBranchMeetingMgrByMeetingIds" parameterType="String">
|
|
|
+ update t_branch_meeting_mgr set del_flag = 2 where meeting_id in
|
|
|
+ <foreach item="meetingId" collection="array" open="(" separator="," close=")">
|
|
|
+ #{meetingId}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|