This commit is contained in:
alittlekang 2024-12-08 22:04:14 +08:00
parent 94851696ee
commit 7a10b1debf
2 changed files with 10 additions and 10 deletions

View File

@ -13,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectroomsVo"> <sql id="selectroomsVo">
select bed, tips, price, imgUrl, imgUrl1 from 客房信息 select bed, tips, price, imgUrl, imgUrl1 from rooms
</sql> </sql>
<select id="selectroomsList" parameterType="rooms" resultMap="roomsResult"> <select id="selectroomsList" parameterType="rooms" resultMap="roomsResult">
@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<insert id="insertrooms" parameterType="rooms"> <insert id="insertrooms" parameterType="rooms">
insert into 客房信息 insert into rooms
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="bed != null">bed,</if> <if test="bed != null">bed,</if>
<if test="tips != null">tips,</if> <if test="tips != null">tips,</if>
@ -51,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert> </insert>
<update id="updaterooms" parameterType="rooms"> <update id="updaterooms" parameterType="rooms">
update 客房信息 update rooms
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="tips != null">tips = #{tips},</if> <if test="tips != null">tips = #{tips},</if>
<if test="price != null">price = #{price},</if> <if test="price != null">price = #{price},</if>
@ -62,11 +62,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update> </update>
<delete id="deleteroomsByBed" parameterType="String"> <delete id="deleteroomsByBed" parameterType="String">
delete from 客房信息 where bed = #{bed} delete from rooms where bed = #{bed}
</delete> </delete>
<delete id="deleteroomsByBeds" parameterType="String"> <delete id="deleteroomsByBeds" parameterType="String">
delete from 客房信息 where bed in delete from rooms where bed in
<foreach item="bed" collection="array" open="(" separator="," close=")"> <foreach item="bed" collection="array" open="(" separator="," close=")">
#{bed} #{bed}
</foreach> </foreach>

View File

@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectticket_feeVo"> <sql id="selectticket_feeVo">
select im1, im2 from 票价信息 select im1, im2 from ticket_fee
</sql> </sql>
<select id="selectticket_feeList" parameterType="ticket_fee" resultMap="ticket_feeResult"> <select id="selectticket_feeList" parameterType="ticket_fee" resultMap="ticket_feeResult">
@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<insert id="insertticket_fee" parameterType="ticket_fee"> <insert id="insertticket_fee" parameterType="ticket_fee">
insert into 票价信息 insert into ticket_fee
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="im1 != null">im1,</if> <if test="im1 != null">im1,</if>
<if test="im2 != null">im2,</if> <if test="im2 != null">im2,</if>
@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert> </insert>
<update id="updateticket_fee" parameterType="ticket_fee"> <update id="updateticket_fee" parameterType="ticket_fee">
update 票价信息 update ticket_fee
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="im2 != null">im2 = #{im2},</if> <if test="im2 != null">im2 = #{im2},</if>
</trim> </trim>
@ -47,11 +47,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update> </update>
<delete id="deleteticket_feeByIm1" parameterType="String"> <delete id="deleteticket_feeByIm1" parameterType="String">
delete from 票价信息 where im1 = #{im1} delete from ticket_fee where im1 = #{im1}
</delete> </delete>
<delete id="deleteticket_feeByIm1s" parameterType="String"> <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=")"> <foreach item="im1" collection="array" open="(" separator="," close=")">
#{im1} #{im1}
</foreach> </foreach>