This commit is contained in:
parent
94851696ee
commit
7a10b1debf
|
@ -13,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectroomsVo">
|
||||
select bed, tips, price, imgUrl, imgUrl1 from 客房信息
|
||||
select bed, tips, price, imgUrl, imgUrl1 from rooms
|
||||
</sql>
|
||||
|
||||
<select id="selectroomsList" parameterType="rooms" resultMap="roomsResult">
|
||||
|
@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
<insert id="insertrooms" parameterType="rooms">
|
||||
insert into 客房信息
|
||||
insert into rooms
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="bed != null">bed,</if>
|
||||
<if test="tips != null">tips,</if>
|
||||
|
@ -51,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</insert>
|
||||
|
||||
<update id="updaterooms" parameterType="rooms">
|
||||
update 客房信息
|
||||
update rooms
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="tips != null">tips = #{tips},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
|
@ -62,11 +62,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</update>
|
||||
|
||||
<delete id="deleteroomsByBed" parameterType="String">
|
||||
delete from 客房信息 where bed = #{bed}
|
||||
delete from rooms where bed = #{bed}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteroomsByBeds" parameterType="String">
|
||||
delete from 客房信息 where bed in
|
||||
delete from rooms where bed in
|
||||
<foreach item="bed" collection="array" open="(" separator="," close=")">
|
||||
#{bed}
|
||||
</foreach>
|
||||
|
|
|
@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectticket_feeVo">
|
||||
select im1, im2 from 票价信息
|
||||
select im1, im2 from ticket_fee
|
||||
</sql>
|
||||
|
||||
<select id="selectticket_feeList" parameterType="ticket_fee" resultMap="ticket_feeResult">
|
||||
|
@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
<insert id="insertticket_fee" parameterType="ticket_fee">
|
||||
insert into 票价信息
|
||||
insert into ticket_fee
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="im1 != null">im1,</if>
|
||||
<if test="im2 != null">im2,</if>
|
||||
|
@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</insert>
|
||||
|
||||
<update id="updateticket_fee" parameterType="ticket_fee">
|
||||
update 票价信息
|
||||
update ticket_fee
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="im2 != null">im2 = #{im2},</if>
|
||||
</trim>
|
||||
|
@ -47,11 +47,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</update>
|
||||
|
||||
<delete id="deleteticket_feeByIm1" parameterType="String">
|
||||
delete from 票价信息 where im1 = #{im1}
|
||||
delete from ticket_fee where im1 = #{im1}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteticket_feeByIm1s" parameterType="String">
|
||||
delete from 票价信息 where im1 in
|
||||
delete from ticket_fee where im1 in
|
||||
<foreach item="im1" collection="array" open="(" separator="," close=")">
|
||||
#{im1}
|
||||
</foreach>
|
||||
|
|
Loading…
Reference in New Issue