|
@@ -20,10 +20,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="cateId" column="cate_id" />
|
|
<result property="cateId" column="cate_id" />
|
|
<result property="sort" column="sort" />
|
|
<result property="sort" column="sort" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
|
|
+ <result property="icgEnable" column="icg_enable" />
|
|
|
|
+ <result property="icgMonth" column="icg_month" />
|
|
|
|
+ <result property="icgCoupons" column="icg_coupons" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductPackageVo">
|
|
<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 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 from fs_store_product_package
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductPackageList" parameterType="FsStoreProductPackage" resultMap="FsStoreProductPackageResult">
|
|
<select id="selectFsStoreProductPackageList" parameterType="FsStoreProductPackage" resultMap="FsStoreProductPackageResult">
|
|
@@ -40,6 +43,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="cateId != null "> and cate_id = #{cateId}</if>
|
|
<if test="cateId != null "> and cate_id = #{cateId}</if>
|
|
<if test="status != null "> and status = #{status}</if>
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
|
+ <if test="icgEnable != null "> and icg_enable = #{icgEnable}</if>
|
|
|
|
+ <if test="icgMonth != null "> and icg_month = #{icgMonth}</if>
|
|
|
|
+ <if test="icgCoupons != null "> and icg_coupons = #{icgCoupons}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -69,6 +75,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="cateId != null">cate_id,</if>
|
|
<if test="cateId != null">cate_id,</if>
|
|
<if test="sort != null">sort,</if>
|
|
<if test="sort != null">sort,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
|
|
+ <if test="icgEnable != null">icg_enable,</if>
|
|
|
|
+ <if test="icgMonth != null">icg_month,</if>
|
|
|
|
+ <if test="icgCoupons != null">icg_coupons,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="packageId != null">#{packageId},</if>
|
|
<if test="packageId != null">#{packageId},</if>
|
|
@@ -87,6 +96,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="cateId != null">#{cateId},</if>
|
|
<if test="cateId != null">#{cateId},</if>
|
|
<if test="sort != null">#{sort},</if>
|
|
<if test="sort != null">#{sort},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
|
|
+ <if test="icgEnable != null">#{icgEnable},</if>
|
|
|
|
+ <if test="icgMonth != null">#{icgMonth},</if>
|
|
|
|
+ <if test="icgCoupons != null">#{icgCoupons},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -108,6 +120,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="cateId != null">cate_id = #{cateId},</if>
|
|
<if test="cateId != null">cate_id = #{cateId},</if>
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
+ <if test="icgEnable != null">icg_enable = #{icgEnable},</if>
|
|
|
|
+ <if test="icgMonth != null">icg_month = #{icgMonth},</if>
|
|
|
|
+ <if test="icgCoupons != null">icg_coupons = #{icgCoupons},</if>
|
|
</trim>
|
|
</trim>
|
|
where package_id = #{packageId}
|
|
where package_id = #{packageId}
|
|
</update>
|
|
</update>
|