|
@@ -6,8 +6,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="IntegralShopPic" id="IntegralShopPicResult">
|
|
<resultMap type="IntegralShopPic" id="IntegralShopPicResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
- <result property="imgName" column="img_name" />
|
|
|
|
- <result property="imgUrl" column="img_url" />
|
|
|
|
|
|
+ <result property="name" column="name" />
|
|
|
|
+ <result property="url" column="url" />
|
|
<result property="imgStatus" column="img_status" />
|
|
<result property="imgStatus" column="img_status" />
|
|
<result property="stationId" column="station_id" />
|
|
<result property="stationId" column="station_id" />
|
|
<result property="stationName" column="station_name" />
|
|
<result property="stationName" column="station_name" />
|
|
@@ -15,14 +15,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIntegralShopPicVo">
|
|
<sql id="selectIntegralShopPicVo">
|
|
- select id, img_name, img_url, img_status, station_id, station_name, parent_id from integral_shop_pic
|
|
|
|
|
|
+ select id, name, url, img_status, station_id, station_name, parent_id from integral_shop_pic
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectIntegralShopPicList" parameterType="IntegralShopPic" resultMap="IntegralShopPicResult">
|
|
<select id="selectIntegralShopPicList" parameterType="IntegralShopPic" resultMap="IntegralShopPicResult">
|
|
<include refid="selectIntegralShopPicVo"/>
|
|
<include refid="selectIntegralShopPicVo"/>
|
|
<where>
|
|
<where>
|
|
- <if test="imgName != null and imgName != ''"> and img_name like concat('%', #{imgName}, '%')</if>
|
|
|
|
- <if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
|
|
|
|
|
|
+ <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
+ <if test="url != null and url != ''"> and url = #{url}</if>
|
|
<if test="imgStatus != null and imgStatus != ''"> and img_status = #{imgStatus}</if>
|
|
<if test="imgStatus != null and imgStatus != ''"> and img_status = #{imgStatus}</if>
|
|
<if test="stationId != null "> and station_id = #{stationId}</if>
|
|
<if test="stationId != null "> and station_id = #{stationId}</if>
|
|
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
@@ -38,16 +38,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<insert id="insertIntegralShopPic" parameterType="IntegralShopPic" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertIntegralShopPic" parameterType="IntegralShopPic" useGeneratedKeys="true" keyProperty="id">
|
|
insert into integral_shop_pic
|
|
insert into integral_shop_pic
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="imgName != null">img_name,</if>
|
|
|
|
- <if test="imgUrl != null">img_url,</if>
|
|
|
|
|
|
+ <if test="name != null">name,</if>
|
|
|
|
+ <if test="url != null">url,</if>
|
|
<if test="imgStatus != null">img_status,</if>
|
|
<if test="imgStatus != null">img_status,</if>
|
|
<if test="stationId != null">station_id,</if>
|
|
<if test="stationId != null">station_id,</if>
|
|
<if test="stationName != null">station_name,</if>
|
|
<if test="stationName != null">station_name,</if>
|
|
<if test="parentId != null">parent_id,</if>
|
|
<if test="parentId != null">parent_id,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
- <if test="imgName != null">#{imgName},</if>
|
|
|
|
- <if test="imgUrl != null">#{imgUrl},</if>
|
|
|
|
|
|
+ <if test="name != null">#{name},</if>
|
|
|
|
+ <if test="url != null">#{url},</if>
|
|
<if test="imgStatus != null">#{imgStatus},</if>
|
|
<if test="imgStatus != null">#{imgStatus},</if>
|
|
<if test="stationId != null">#{stationId},</if>
|
|
<if test="stationId != null">#{stationId},</if>
|
|
<if test="stationName != null">#{stationName},</if>
|
|
<if test="stationName != null">#{stationName},</if>
|
|
@@ -58,8 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<update id="updateIntegralShopPic" parameterType="IntegralShopPic">
|
|
<update id="updateIntegralShopPic" parameterType="IntegralShopPic">
|
|
update integral_shop_pic
|
|
update integral_shop_pic
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="imgName != null">img_name = #{imgName},</if>
|
|
|
|
- <if test="imgUrl != null">img_url = #{imgUrl},</if>
|
|
|
|
|
|
+ <if test="name != null">name = #{name},</if>
|
|
|
|
+ <if test="url != null">url = #{url},</if>
|
|
<if test="imgStatus != null">img_status = #{imgStatus},</if>
|
|
<if test="imgStatus != null">img_status = #{imgStatus},</if>
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
<if test="stationName != null">station_name = #{stationName},</if>
|
|
<if test="stationName != null">station_name = #{stationName},</if>
|
|
@@ -78,5 +78,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
|
|
+ <delete id="deleteIntegralShopPic" parameterType="IntegralShopPic">
|
|
|
|
+ delete from integral_shop_pic
|
|
|
|
+ <where>
|
|
|
|
+ <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
+ <if test="url != null and url != ''"> and url = #{url}</if>
|
|
|
|
+ <if test="imgStatus != null and imgStatus != ''"> and img_status = #{imgStatus}</if>
|
|
|
|
+ <if test="stationId != null "> and station_id = #{stationId}</if>
|
|
|
|
+ <if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
|
|
+ <if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
|
+ </where>
|
|
|
|
+ </delete>
|
|
</mapper>
|
|
</mapper>
|