|
|
@@ -17,15 +17,17 @@
|
|
|
<result column="title" property="title" jdbcType="VARCHAR"/>
|
|
|
<result column="subtitle" property="subtitle" jdbcType="VARCHAR"/>
|
|
|
<result column="image_url" property="imageUrl" jdbcType="VARCHAR"/>
|
|
|
- <result column="path_url" property="pathUrl" jdbcType="VARCHAR"/>
|
|
|
+ <result column="product_id" property="productId" jdbcType="INTEGER"/>
|
|
|
<result column="remark" property="remark" jdbcType="VARCHAR"/>
|
|
|
<result column="rank" property="rank" jdbcType="INTEGER"/>
|
|
|
+ <result column="image2_url" property="image2Url" jdbcType="VARCHAR"/>
|
|
|
+ <result column="product2_id" property="product2Id" jdbcType="INTEGER"/>
|
|
|
<!--generatedEnd-->
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--generatedStart-->
|
|
|
- id, del_flag, update_time, update_user, create_time, create_user, user_id, mini_id, store_id, status_flag, type_flag, title, subtitle, image_url, path_url, remark, rank <!--generatedEnd-->
|
|
|
+ id, del_flag, update_time, update_user, create_time, create_user, user_id, mini_id, store_id, status_flag, type_flag, title, subtitle, image_url, product_id, remark, rank, image2_url, product2_id <!--generatedEnd-->
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
@@ -87,8 +89,8 @@
|
|
|
<if test="imageUrl!= null">
|
|
|
image_url,
|
|
|
</if>
|
|
|
- <if test="pathUrl!= null">
|
|
|
- path_url,
|
|
|
+ <if test="productId!= null">
|
|
|
+ product_id,
|
|
|
</if>
|
|
|
<if test="remark!= null">
|
|
|
remark,
|
|
|
@@ -96,6 +98,12 @@
|
|
|
<if test="rank!= null">
|
|
|
rank,
|
|
|
</if>
|
|
|
+ <if test="image2Url!= null">
|
|
|
+ image2_url,
|
|
|
+ </if>
|
|
|
+ <if test="product2Id!= null">
|
|
|
+ product2_id,
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -142,8 +150,8 @@
|
|
|
<if test="imageUrl != null">
|
|
|
#{imageUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pathUrl != null">
|
|
|
- #{pathUrl,jdbcType=VARCHAR},
|
|
|
+ <if test="productId != null">
|
|
|
+ #{productId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="remark != null">
|
|
|
#{remark,jdbcType=VARCHAR},
|
|
|
@@ -151,6 +159,12 @@
|
|
|
<if test="rank != null">
|
|
|
#{rank,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="image2Url != null">
|
|
|
+ #{image2Url,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="product2Id != null">
|
|
|
+ #{product2Id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -201,8 +215,8 @@
|
|
|
<if test="imageUrl != null">
|
|
|
image_url= #{imageUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pathUrl != null">
|
|
|
- path_url= #{pathUrl,jdbcType=VARCHAR},
|
|
|
+ <if test="productId != null">
|
|
|
+ product_id= #{productId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="remark != null">
|
|
|
remark= #{remark,jdbcType=VARCHAR},
|
|
|
@@ -210,6 +224,12 @@
|
|
|
<if test="rank != null">
|
|
|
rank= #{rank,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="image2Url != null">
|
|
|
+ image2_url= #{image2Url,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="product2Id != null">
|
|
|
+ product2_id= #{product2Id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</set>
|
|
|
WHERE
|
|
|
@@ -271,8 +291,8 @@
|
|
|
<if test="record.imageUrl != null and !"".equals(record.imageUrl)">
|
|
|
AND image_url = #{record.imageUrl}
|
|
|
</if>
|
|
|
- <if test="record.pathUrl != null and !"".equals(record.pathUrl)">
|
|
|
- AND path_url = #{record.pathUrl}
|
|
|
+ <if test="record.productId != null and !"".equals(record.productId)">
|
|
|
+ AND product_id = #{record.productId}
|
|
|
</if>
|
|
|
<if test="record.remark != null and !"".equals(record.remark)">
|
|
|
AND remark = #{record.remark}
|
|
|
@@ -280,6 +300,12 @@
|
|
|
<if test="record.rank != null and !"".equals(record.rank)">
|
|
|
AND rank = #{record.rank}
|
|
|
</if>
|
|
|
+ <if test="record.image2Url != null and !"".equals(record.image2Url)">
|
|
|
+ AND image2_url = #{record.image2Url}
|
|
|
+ </if>
|
|
|
+ <if test="record.product2Id != null and !"".equals(record.product2Id)">
|
|
|
+ AND product2_id = #{record.product2Id}
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
@@ -290,8 +316,10 @@
|
|
|
OR title LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR subtitle LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR image_url LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR path_url LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR product_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR image2_url LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR product2_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
<!--generatedEnd-->
|
|
|
</trim>
|
|
|
</if>
|
|
|
@@ -387,8 +415,8 @@
|
|
|
<if test="imageUrl != null and !"".equals(imageUrl)">
|
|
|
AND image_url = #{imageUrl}
|
|
|
</if>
|
|
|
- <if test="pathUrl != null and !"".equals(pathUrl)">
|
|
|
- AND path_url = #{pathUrl}
|
|
|
+ <if test="productId != null and !"".equals(productId)">
|
|
|
+ AND product_id = #{productId}
|
|
|
</if>
|
|
|
<if test="remark != null and !"".equals(remark)">
|
|
|
AND remark = #{remark}
|
|
|
@@ -396,6 +424,12 @@
|
|
|
<if test="rank != null and !"".equals(rank)">
|
|
|
AND rank = #{rank}
|
|
|
</if>
|
|
|
+ <if test="image2Url != null and !"".equals(image2Url)">
|
|
|
+ AND image2_url = #{image2Url}
|
|
|
+ </if>
|
|
|
+ <if test="product2Id != null and !"".equals(product2Id)">
|
|
|
+ AND product2_id = #{product2Id}
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
@@ -406,8 +440,10 @@
|
|
|
OR title LIKE concat('%',#{searchKey},'%')
|
|
|
OR subtitle LIKE concat('%',#{searchKey},'%')
|
|
|
OR image_url LIKE concat('%',#{searchKey},'%')
|
|
|
- OR path_url LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR product_id LIKE concat('%',#{searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR image2_url LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR product2_id LIKE concat('%',#{searchKey},'%')
|
|
|
<!--generatedEnd-->
|
|
|
</trim>
|
|
|
</if>
|
|
|
@@ -499,8 +535,8 @@
|
|
|
<if test="imageUrl != null and !"".equals(imageUrl)">
|
|
|
AND image_url = #{imageUrl}
|
|
|
</if>
|
|
|
- <if test="pathUrl != null and !"".equals(pathUrl)">
|
|
|
- AND path_url = #{pathUrl}
|
|
|
+ <if test="productId != null and !"".equals(productId)">
|
|
|
+ AND product_id = #{productId}
|
|
|
</if>
|
|
|
<if test="remark != null and !"".equals(remark)">
|
|
|
AND remark = #{remark}
|
|
|
@@ -508,6 +544,12 @@
|
|
|
<if test="rank != null and !"".equals(rank)">
|
|
|
AND rank = #{rank}
|
|
|
</if>
|
|
|
+ <if test="image2Url != null and !"".equals(image2Url)">
|
|
|
+ AND image2_url = #{image2Url}
|
|
|
+ </if>
|
|
|
+ <if test="product2Id != null and !"".equals(product2Id)">
|
|
|
+ AND product2_id = #{product2Id}
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</where>
|
|
|
LIMIT 1
|