|
|
@@ -404,21 +404,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where product_id = #{productId}
|
|
|
</update>
|
|
|
<update id="batchModify">
|
|
|
- <foreach collection="productId" separator=";" item="item">
|
|
|
- update fs_store_product_scrm set
|
|
|
- <if test="goodsStatus != null">
|
|
|
- is_show = #{goodsStatus},
|
|
|
- </if>
|
|
|
- <if test="goodsIsShow != null">
|
|
|
- is_display = #{goodsIsShow},
|
|
|
- </if>
|
|
|
- <if test="companyIds != null and companyIds != ''">
|
|
|
- company_ids = #{companyIds}
|
|
|
- </if>
|
|
|
- <if test="isAudit != null and isAudit != ''">
|
|
|
- is_audit = #{isAudit}
|
|
|
- </if>
|
|
|
- where product_id = #{item}
|
|
|
+ update fs_store_product_scrm
|
|
|
+ <set>
|
|
|
+ <if test="goodsStatus != null">
|
|
|
+ is_show = #{goodsStatus},
|
|
|
+ </if>
|
|
|
+ <if test="goodsIsShow != null">
|
|
|
+ is_display = #{goodsIsShow},
|
|
|
+ </if>
|
|
|
+ <if test="companyIds != null and companyIds != ''">
|
|
|
+ company_ids = #{companyIds},
|
|
|
+ </if>
|
|
|
+ <if test="isAudit != null and isAudit != ''">
|
|
|
+ is_audit = #{isAudit}
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where product_id in
|
|
|
+ <foreach collection="productId" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|