|
|
@@ -25,10 +25,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="icgCoupons" column="icg_coupons" />
|
|
|
<result property="icgUrl" column="icg_url" />
|
|
|
<result property="icgMark" column="icg_mark" />
|
|
|
+ <result property="templateId" column="template_id" />
|
|
|
+ <result property="closeSingleLink" column="close_single_link" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductPackageVo">
|
|
|
- select package_id, title, descs, content, img_url,images, products, money, pay_money, company_id, dept_id,pay_type,limit_count,cate_id,sort,status,icg_enable,icg_month,icg_coupons,icg_url,icg_mark,template_id from fs_store_product_package
|
|
|
+ select package_id, title, descs, content, img_url,images, products, money, pay_money, company_id, dept_id,pay_type,limit_count,cate_id,sort,status,icg_enable,icg_month,icg_coupons,icg_url,icg_mark,template_id,close_single_link from fs_store_product_package
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductPackageList" parameterType="FsStoreProductPackage" resultMap="FsStoreProductPackageResult">
|
|
|
@@ -86,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="icgUrl != null">icg_url,</if>
|
|
|
<if test="icgMark != null">icg_mark,</if>
|
|
|
<if test="templateId != null">template_id,</if>
|
|
|
+ <if test="closeSingleLink != null">close_single_link,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="packageId != null">#{packageId},</if>
|
|
|
@@ -110,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="icgUrl != null">#{icgUrl},</if>
|
|
|
<if test="icgMark != null">#{icgMark},</if>
|
|
|
<if test="templateId != null">#{templateId},</if>
|
|
|
+ <if test="closeSingleLink != null">#{closeSingleLink},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -137,6 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="icgUrl != null">icg_url = #{icgUrl},</if>
|
|
|
<if test="icgMark != null">icg_mark = #{icgMark},</if>
|
|
|
<if test="templateId != null">template_id = #{templateId},</if>
|
|
|
+ <if test="closeSingleLink != null">close_single_link = #{closeSingleLink},</if>
|
|
|
</trim>
|
|
|
where package_id = #{packageId}
|
|
|
</update>
|
|
|
@@ -159,5 +164,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateCloseSingleLinkBatch">
|
|
|
+ update fs_store_product_package set close_single_link = #{closeSingleLink} where package_id in
|
|
|
+ <foreach item="packageId" collection="packageIds" open="(" separator="," close=")">
|
|
|
+ #{packageId}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
</mapper>
|
|
|
|