|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.framework.recovery.mapper.RecSaleInfoMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="RecSaleInfo" id="RecSaleInfoResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="saleName" column="sale_name" />
|
|
@@ -15,15 +15,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateDate" column="update_date" />
|
|
|
<result property="catalog" column="catalog" />
|
|
|
+ <result property="images" column="images" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectRecSaleInfoVo">
|
|
|
- select id, sale_name,catalog, sale_price, market, store_id, create_by, create_date, update_by, update_date from rec_sale_info
|
|
|
+ select id, sale_name,catalog, sale_price, market, store_id, create_by, create_date, update_by, update_date, images from rec_sale_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectRecSaleInfoList" parameterType="RecSaleInfo" resultMap="RecSaleInfoResult">
|
|
|
<include refid="selectRecSaleInfoVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="saleName != null and saleName != ''"> and sale_name like concat('%', #{saleName}, '%')</if>
|
|
|
<if test="salePrice != null and salePrice != ''"> and sale_price = #{salePrice}</if>
|
|
|
<if test="market != null and market != ''"> and market = #{market}</if>
|
|
@@ -31,9 +32,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createDate != null "> and create_date = #{createDate}</if>
|
|
|
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
|
|
<if test="catalog != null "> and catalog = #{catalog}</if>
|
|
|
+ <if test="images != null "> and images = #{images}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectRecSaleInfoById" parameterType="Long" resultMap="RecSaleInfoResult">
|
|
|
<include refid="selectRecSaleInfoVo"/>
|
|
|
where id = #{id}
|
|
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateDate != null">update_date,</if>
|
|
|
<if test="catalog != null">catalog,</if>
|
|
|
+ <if test="images != null">images,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -64,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateDate != null">#{updateDate},</if>
|
|
|
<if test="catalog != null">#{catalog},</if>
|
|
|
+ <if test="images != null">#{images},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -79,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateDate != null">update_date = #{updateDate},</if>
|
|
|
<if test="catalog != null">update_date = #{catalog},</if>
|
|
|
+ <if test="images != null">images = #{images},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -88,9 +93,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteRecSaleInfoByIds" parameterType="String">
|
|
|
- delete from rec_sale_info where id in
|
|
|
+ delete from rec_sale_info where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-</mapper>
|
|
|
+</mapper>
|