|
|
@@ -253,6 +253,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contraindications != null and contraindications != ''">contraindications ,</if>
|
|
|
<if test="precautions != null and precautions != ''">precautions ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">is_audit ,</if>
|
|
|
+ <if test="appIds != null and appIds != ''">app_ids, </if>
|
|
|
<if test="storeId != null and storeId != ''">store_id ,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -317,6 +318,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contraindications != null and contraindications != ''">#{contraindications} ,</if>
|
|
|
<if test="precautions != null and precautions != ''">#{precautions} ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">#{isAudit} ,</if>
|
|
|
+ <if test="appIds != null and appIds != ''">#{appIds}, </if>
|
|
|
<if test="storeId != null and storeId != ''">#{storeId} ,</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -386,7 +388,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="precautions != null and precautions != ''">precautions = #{precautions} ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">is_audit = #{isAudit} ,</if>
|
|
|
<if test="storeId != null and storeId != ''">store_id = #{storeId} ,</if>
|
|
|
-
|
|
|
+ <if test="appIds != null and appIds != ''">app_ids = #{appIds}, </if>
|
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
|
</update>
|
|
|
@@ -444,6 +446,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test='config.isAudit == "1" '>
|
|
|
and fsp.is_audit = '1'
|
|
|
</if>
|
|
|
+ <if test = 'param.appId != null and param.appId != ""'>
|
|
|
+ and ((FIND_IN_SET(#{param.appId}, fsp.app_ids) > 0))
|
|
|
+ </if>
|
|
|
and fsp.is_best=1 and fsp.is_display=1 order by fsp.sort desc,fsp.product_id desc
|
|
|
</select>
|
|
|
<select id="bulkCopyFsStoreProductByIds" resultMap="FsStoreProductResult">
|
|
|
@@ -468,6 +473,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test='config.isAudit == "1"'>
|
|
|
and p.is_audit = '1'
|
|
|
</if>
|
|
|
+ <if test='appId != null and appId != "" '>
|
|
|
+ and ((FIND_IN_SET(#{appId}, p.app_ids) > 0))
|
|
|
+ </if>
|
|
|
and p.is_new=1 and p.is_display=1 order by p.sort desc limit #{count}
|
|
|
</select>
|
|
|
<select id="selectFsStoreProductHotQuery" resultType="com.fs.hisStore.vo.FsStoreProductListQueryVO">
|
|
|
@@ -479,6 +487,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test='config.isAudit == "1" '>
|
|
|
and p.is_audit = '1'
|
|
|
</if>
|
|
|
+ <if test='appId != null and appId != "" '>
|
|
|
+ and ((FIND_IN_SET(#{appId}, p.app_ids) > 0))
|
|
|
+ </if>
|
|
|
and p.is_hot=1 and p.is_display=1 order by p.sort desc limit #{count}
|
|
|
</select>
|
|
|
<select id="selectFsStoreProductGoodListQuery" resultType="com.fs.hisStore.vo.FsStoreProductListQueryVO">
|
|
|
@@ -490,6 +501,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test='config.isAudit == "1" '>
|
|
|
and p.is_audit = '1'
|
|
|
</if>
|
|
|
+ <if test = 'param.appId != null and param.appId != ""'>
|
|
|
+ and ((FIND_IN_SET(#{param.appId}, p.app_ids) > 0))
|
|
|
+ </if>
|
|
|
and p.is_good=1 and p.is_display=1 order by p.sort desc
|
|
|
</select>
|
|
|
|