mirror of
https://gitee.com/elegant_wings/xiongan-meeting.git
synced 2025-06-22 00:19:37 +08:00
74 lines
3.1 KiB
XML
74 lines
3.1 KiB
XML
![]() |
<?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.ics.admin.mapper.meeting.CustomerTicketMapper">
|
||
|
|
||
|
<resultMap type="com.ics.admin.domain.meeting.CustomerTicket" id="CustomerTicketResult">
|
||
|
<result property="id" column="id" />
|
||
|
<result property="customerId" column="customer_id" />
|
||
|
<result property="ticketId" column="ticket_id" />
|
||
|
<result property="num" column="num" />
|
||
|
<result property="isVerification" column="is_verification" />
|
||
|
<result property="createTime" column="create_time" />
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectCustomerTicketVo">
|
||
|
SELECT id, customer_id, ticket_id, num, is_verification, create_time FROM tb_customer_ticket
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectCustomerTicketList" parameterType="CustomerTicket" resultMap="CustomerTicketResult">
|
||
|
<include refid="selectCustomerTicketVo"/>
|
||
|
<where>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectCustomerTicketById" parameterType="Long" resultMap="CustomerTicketResult">
|
||
|
<include refid="selectCustomerTicketVo"/>
|
||
|
WHERE id = #{id}
|
||
|
</select>
|
||
|
|
||
|
<insert id="insertCustomerTicket" parameterType="CustomerTicket">
|
||
|
INSERT INTO tb_customer_ticket
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null ">id,</if>
|
||
|
<if test="customerId != null ">customer_id,</if>
|
||
|
<if test="ticketId != null ">ticket_id,</if>
|
||
|
<if test="num != null ">num,</if>
|
||
|
<if test="isVerification != null ">is_verification,</if>
|
||
|
<if test="createTime != null ">create_time,</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null ">#{id},</if>
|
||
|
<if test="customerId != null ">#{customerId},</if>
|
||
|
<if test="ticketId != null ">#{ticketId},</if>
|
||
|
<if test="num != null ">#{num},</if>
|
||
|
<if test="isVerification != null ">#{isVerification},</if>
|
||
|
<if test="createTime != null ">#{createTime},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateCustomerTicket" parameterType="CustomerTicket">
|
||
|
UPDATE tb_customer_ticket
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="customerId != null ">customer_id = #{customerId},</if>
|
||
|
<if test="ticketId != null ">ticket_id = #{ticketId},</if>
|
||
|
<if test="num != null ">num = #{num},</if>
|
||
|
<if test="isVerification != null ">is_verification = #{isVerification},</if>
|
||
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||
|
</trim>
|
||
|
WHERE id = #{id}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteCustomerTicketById" parameterType="Long">
|
||
|
DELETE FROM tb_customer_ticket WHERE id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteCustomerTicketByIds" parameterType="String">
|
||
|
DELETE FROM tb_customer_ticket where id in
|
||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||
|
#{id}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
|
||
|
</mapper>
|