|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="money" column="money" />
|
|
<result property="money" column="money" />
|
|
|
<result property="payMoney" column="pay_money" />
|
|
<result property="payMoney" column="pay_money" />
|
|
|
<result property="companyId" column="company_id" />
|
|
<result property="companyId" column="company_id" />
|
|
|
|
|
+ <result property="companyIds" column="company_ids" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="payType" column="pay_type" />
|
|
<result property="payType" column="pay_type" />
|
|
|
<result property="limitCount" column="limit_count" />
|
|
<result property="limitCount" column="limit_count" />
|
|
@@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsStoreProductPackageVo">
|
|
<sql id="selectFsStoreProductPackageVo">
|
|
|
- select package_id, title, descs, content, img_url,images, products, money, pay_money, company_id,
|
|
|
|
|
|
|
+ select package_id, title, descs, content, img_url,images, products, money, pay_money, company_id,company_ids,
|
|
|
dept_id,pay_type,limit_count,cate_id,sort,status,integral from fs_store_product_package_scrm
|
|
dept_id,pay_type,limit_count,cate_id,sort,status,integral from fs_store_product_package_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -52,6 +53,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectFsStoreProductPackageVo"/>
|
|
<include refid="selectFsStoreProductPackageVo"/>
|
|
|
where package_id = #{packageId}
|
|
where package_id = #{packageId}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="selectFsStoreProductPackageListVO" resultType="com.fs.hisStore.vo.FsStoreProductPacketVO">
|
|
|
|
|
+ select p.* from fs_store_product_package_scrm p
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test='maps.title != null and maps.title != ""'>
|
|
|
|
|
+ and p.title like CONCAT('%',#{maps.title},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test='maps.cateId != null'>
|
|
|
|
|
+ and p.cate_id = #{maps.cateId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test='maps.companyId != null'>
|
|
|
|
|
+ and FIND_IN_SET(#{maps.companyId}, p.company_ids)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test='maps.status != null'>
|
|
|
|
|
+ and p.status = #{maps.status}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ ${maps.params.dataScope}
|
|
|
|
|
+ order by p.sort desc
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
<insert id="insertFsStoreProductPackage" parameterType="FsStoreProductPackageScrm">
|
|
<insert id="insertFsStoreProductPackage" parameterType="FsStoreProductPackageScrm">
|
|
|
insert into fs_store_product_package_scrm
|
|
insert into fs_store_product_package_scrm
|
|
@@ -66,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="money != null">money,</if>
|
|
<if test="money != null">money,</if>
|
|
|
<if test="payMoney != null">pay_money,</if>
|
|
<if test="payMoney != null">pay_money,</if>
|
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
|
|
|
+ <if test="companyIds != null">company_ids,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="payType != null">pay_type,</if>
|
|
<if test="payType != null">pay_type,</if>
|
|
|
<if test="limitCount != null">limit_count,</if>
|
|
<if test="limitCount != null">limit_count,</if>
|
|
@@ -85,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="money != null">#{money},</if>
|
|
<if test="money != null">#{money},</if>
|
|
|
<if test="payMoney != null">#{payMoney},</if>
|
|
<if test="payMoney != null">#{payMoney},</if>
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
|
|
+ <if test="companyIds != null">#{companyIds},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="payType != null">#{payType},</if>
|
|
<if test="payType != null">#{payType},</if>
|
|
|
<if test="limitCount != null">#{limitCount},</if>
|
|
<if test="limitCount != null">#{limitCount},</if>
|
|
@@ -107,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="money != null">money = #{money},</if>
|
|
<if test="money != null">money = #{money},</if>
|
|
|
<if test="payMoney != null">pay_money = #{payMoney},</if>
|
|
<if test="payMoney != null">pay_money = #{payMoney},</if>
|
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
|
|
|
+ <if test="companyIds != null">company_ids = #{companyIds},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
|
<if test="limitCount != null">limit_count = #{limitCount},</if>
|
|
<if test="limitCount != null">limit_count = #{limitCount},</if>
|
|
@@ -138,6 +161,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
company_id = #{companyId},
|
|
company_id = #{companyId},
|
|
|
products = null
|
|
products = null
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="companyIds !=null">
|
|
|
|
|
+ company_ids = #{companyIds},
|
|
|
|
|
+ products = null
|
|
|
|
|
+ </if>
|
|
|
where package_id in
|
|
where package_id in
|
|
|
<foreach item="packageId" collection="packageIds" open="(" separator="," close=")">
|
|
<foreach item="packageId" collection="packageIds" open="(" separator="," close=")">
|
|
|
#{packageId}
|
|
#{packageId}
|