123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?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.oa.mapper.CmcContractMeetingMapper">
-
- <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
- <result property="meetingId" column="meeting_id" />
- <result property="contractId" column="contract_id" />
- <result property="meetingTime" column="meeting_time" />
- <result property="hostId" column="host_id" />
- <result property="place" column="place" />
- <result property="users" column="users" />
- <result property="conclusion" column="conclusion" />
- <result property="document" column="document" />
- <result property="commentTime" column="comment_time" />
- </resultMap>
-
- <sql id="selectCmcContractMeetingVo">
- select meeting_id, contract_id, meeting_time, host_id, place, users, conclusion, document, comment_time from cmc_contract_meeting
- </sql>
-
- <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
- <include refid="selectCmcContractMeetingVo"/>
- <where>
- <if test="contractId != null and contractId != ''"> and contract_id = #{contractId}</if>
- <if test="meetingTime != null "> and meeting_time = #{meetingTime}</if>
- <if test="hostId != null "> and host_id = #{hostId}</if>
- <if test="place != null and place != ''"> and place = #{place}</if>
- <if test="users != null and users != ''"> and users = #{users}</if>
- <if test="conclusion != null and conclusion != ''"> and conclusion = #{conclusion}</if>
- <if test="document != null and document != ''"> and document = #{document}</if>
- <if test="commentTime != null "> and comment_time = #{commentTime}</if>
- </where>
- </select>
-
- <select id="selectCmcContractMeetingByContractId" parameterType="String" resultMap="CmcContractMeetingResult">
- <include refid="selectCmcContractMeetingVo"/>
- where contract_id = #{contractId}
- </select>
-
- <insert id="insertCmcContractMeeting" parameterType="CmcContractMeeting">
- insert into cmc_contract_meeting
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="meetingId != null">meeting_id,</if>
- <if test="contractId != null">contract_id,</if>
- <if test="meetingTime != null">meeting_time,</if>
- <if test="hostId != null">host_id,</if>
- <if test="place != null">place,</if>
- <if test="users != null">users,</if>
- <if test="conclusion != null">conclusion,</if>
- <if test="document != null">document,</if>
- <if test="commentTime != null">comment_time,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="meetingId != null">#{meetingId},</if>
- <if test="contractId != null">#{contractId},</if>
- <if test="meetingTime != null">#{meetingTime},</if>
- <if test="hostId != null">#{hostId},</if>
- <if test="place != null">#{place},</if>
- <if test="users != null">#{users},</if>
- <if test="conclusion != null">#{conclusion},</if>
- <if test="document != null">#{document},</if>
- <if test="commentTime != null">#{commentTime},</if>
- </trim>
- </insert>
-
- <update id="updateCmcContractMeeting" parameterType="CmcContractMeeting">
- update cmc_contract_meeting
- <trim prefix="SET" suffixOverrides=",">
- <if test="contractId != null">contract_id = #{contractId},</if>
- <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
- <if test="hostId != null">host_id = #{hostId},</if>
- <if test="place != null">place = #{place},</if>
- <if test="users != null">users = #{users},</if>
- <if test="conclusion != null">conclusion = #{conclusion},</if>
- <if test="document != null">document = #{document},</if>
- <if test="commentTime != null">comment_time = #{commentTime},</if>
- </trim>
- where meeting_id = #{meetingId}
- </update>
-
- <delete id="deleteCmcContractMeetingByContractId" parameterType="String">
- delete from cmc_contract_meeting where contract_id = #{contractId}
- </delete>
-
- <delete id="deleteCmcContractMeetingByContractIds" parameterType="String">
- delete from cmc_contract_meeting where contract_id in
- <foreach item="contractId" collection="array" open="(" separator="," close=")">
- #{contractId}
- </foreach>
- </delete>
- </mapper>
|