|
@@ -20,10 +20,11 @@ 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="storeId" column="store_id" />
|
|
|
</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_scrm
|
|
|
|
|
|
|
+ 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,store_id from fs_store_product_package_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsStoreProductPackageList" parameterType="FsStoreProductPackageScrm" resultMap="FsStoreProductPackageResult">
|
|
<select id="selectFsStoreProductPackageList" parameterType="FsStoreProductPackageScrm" resultMap="FsStoreProductPackageResult">
|
|
@@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="packageId != null "> and package_id = #{packageId}</if>
|
|
<if test="packageId != null "> and package_id = #{packageId}</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="status != null "> and storeId = #{store_id}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -70,6 +72,7 @@ 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="storeId != null">store_id,</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>
|
|
@@ -88,6 +91,7 @@ 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="storeId != null">#{storeId},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -109,6 +113,7 @@ 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="storeId != null">store_id = #{storeId},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where package_id = #{packageId}
|
|
where package_id = #{packageId}
|
|
|
</update>
|
|
</update>
|
|
@@ -127,10 +132,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateFsStoreProductPackages">
|
|
<update id="updateFsStoreProductPackages">
|
|
|
update fs_store_product_package_scrm set
|
|
update fs_store_product_package_scrm set
|
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
|
- status = #{status},
|
|
|
|
|
|
|
+ status = #{status}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId !=null">
|
|
|
|
|
- company_id = #{companyId},
|
|
|
|
|
|
|
+ <if test="storeId !=null">
|
|
|
|
|
+ ,store_id = #{storeId},
|
|
|
products = null
|
|
products = null
|
|
|
</if>
|
|
</if>
|
|
|
where package_id in
|
|
where package_id in
|