支付
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
<?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.zhwl.ticket.mapper.ZdyTicketUnavailableHolidayMapper">
|
||||
|
||||
<resultMap type="ZdyTicketUnavailableHoliday" id="ZdyTicketUnavailableHolidayResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="ticketId" column="ticket_id"/>
|
||||
<result property="holidayId" column="holiday_id"/>
|
||||
<result property="beginTime" column="begin_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="holidayDict" column="holiday_dict"/>
|
||||
<result property="holidayType" column="holiday_type"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZdyTicketUnavailableHolidayVo">
|
||||
select id, ticket_id, holiday_id, begin_time, end_time,holiday_dict,holiday_type
|
||||
from zdy_ticket_unavailable_holiday
|
||||
</sql>
|
||||
|
||||
<select id="selectZdyTicketUnavailableHolidayList" parameterType="ZdyTicketUnavailableHoliday"
|
||||
resultMap="ZdyTicketUnavailableHolidayResult">
|
||||
<include refid="selectZdyTicketUnavailableHolidayVo"/>
|
||||
<where>
|
||||
<if test="ticketId != null ">
|
||||
and ticket_id = #{ticketId}
|
||||
</if>
|
||||
<if test="holidayId != null ">
|
||||
and holiday_id = #{holidayId}
|
||||
</if>
|
||||
<if test="beginTime != null ">
|
||||
and begin_time = #{beginTime}
|
||||
</if>
|
||||
<if test="endTime != null ">
|
||||
and end_time = #{endTime}
|
||||
</if>
|
||||
<if test="holidayDict != null ">
|
||||
and holiday_dict = #{holidayDict}
|
||||
</if>
|
||||
<if test="holidayType != null ">
|
||||
and holiday_type = #{holidayType}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectZdyTicketUnavailableHolidayById" parameterType="Long"
|
||||
resultMap="ZdyTicketUnavailableHolidayResult">
|
||||
<include refid="selectZdyTicketUnavailableHolidayVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertZdyTicketUnavailableHoliday" parameterType="ZdyTicketUnavailableHoliday" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into zdy_ticket_unavailable_holiday
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="ticketId != null">ticket_id,
|
||||
</if>
|
||||
<if test="holidayId != null">holiday_id,
|
||||
</if>
|
||||
<if test="beginTime != null">begin_time,
|
||||
</if>
|
||||
<if test="endTime != null">end_time,
|
||||
</if>
|
||||
<if test="holidayDict != null">holiday_dict,
|
||||
</if>
|
||||
<if test="holidayType != null">holiday_type,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="ticketId != null">#{ticketId},
|
||||
</if>
|
||||
<if test="holidayId != null">#{holidayId},
|
||||
</if>
|
||||
<if test="beginTime != null">#{beginTime},
|
||||
</if>
|
||||
<if test="endTime != null">#{endTime},
|
||||
</if>
|
||||
<if test="holidayDict != null">#{holidayDict},
|
||||
</if>
|
||||
<if test="holidayType != null">#{holidayType},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZdyTicketUnavailableHoliday" parameterType="ZdyTicketUnavailableHoliday">
|
||||
update zdy_ticket_unavailable_holiday
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="ticketId != null">ticket_id =
|
||||
#{ticketId},
|
||||
</if>
|
||||
<if test="holidayId != null">holiday_id =
|
||||
#{holidayId},
|
||||
</if>
|
||||
<if test="beginTime != null">begin_time =
|
||||
#{beginTime},
|
||||
</if>
|
||||
<if test="endTime != null">end_time =
|
||||
#{endTime},
|
||||
</if>
|
||||
<if test="holidayDict != null">holiday_dict =
|
||||
#{holidayDict},
|
||||
</if>
|
||||
<if test="holidayType != null">holiday_type =
|
||||
#{holidayType},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZdyTicketUnavailableHolidayById" parameterType="Long">
|
||||
delete
|
||||
from zdy_ticket_unavailable_holiday
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZdyTicketUnavailableHolidayByIds" parameterType="String">
|
||||
delete from zdy_ticket_unavailable_holiday where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteZdyTicketUnavailableHolidayByTicketId" parameterType="Long">
|
||||
delete
|
||||
from zdy_ticket_unavailable_holiday
|
||||
where ticket_id = #{ticketId}
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user