| @@ -27,10 +27,14 @@ | |||||
| <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> | <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> | ||||
| <result column="business" jdbcType="INTEGER" property="business"/> | <result column="business" jdbcType="INTEGER" property="business"/> | ||||
| <result column="support_transfer" jdbcType="INTEGER" property="supportTransfer"/> | <result column="support_transfer" jdbcType="INTEGER" property="supportTransfer"/> | ||||
| <result column="subsidy_type" jdbcType="INTEGER" property="subsidyType"/> | |||||
| <result column="subsidy_num" jdbcType="INTEGER" property="subsidyNum"/> | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`tenant_id`,`type`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_type`,`valid_type`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`price`,`unit`,`remain_inventory`,`inventory`,`remark`,`status`,`create_date`,`update_date`,`business`,`support_transfer`,`subsidy_num`,`subsidy_type` | |||||
| `id`,`tenant_id`,`type`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_type`, | |||||
| `valid_type`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`price`,`unit`,`remain_inventory`,`inventory`, | |||||
| `remark`,`status`,`create_date`,`update_date`,`business`,`support_transfer`,`subsidy_num`,`subsidy_type` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| @@ -136,6 +140,14 @@ | |||||
| and `support_transfer` = #{supportTransfer} | and `support_transfer` = #{supportTransfer} | ||||
| </if> | </if> | ||||
| <if test=" null != subsidyType "> | |||||
| and `subsidy_type` = #{subsidyType} | |||||
| </if> | |||||
| <if test=" null != subsidyNum "> | |||||
| and `subsidy_num` = #{subsidyNum} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -255,6 +267,14 @@ | |||||
| and `support_transfer` = #{supportTransfer} | and `support_transfer` = #{supportTransfer} | ||||
| </if> | </if> | ||||
| <if test=" null != subsidyType "> | |||||
| and `subsidy_type` = #{subsidyType} | |||||
| </if> | |||||
| <if test=" null != subsidyNum "> | |||||
| and `subsidy_num` = #{subsidyNum} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -374,6 +394,14 @@ | |||||
| and `support_transfer` = #{supportTransfer} | and `support_transfer` = #{supportTransfer} | ||||
| </if> | </if> | ||||
| <if test=" null != subsidyType "> | |||||
| and `subsidy_type` = #{subsidyType} | |||||
| </if> | |||||
| <if test=" null != subsidyNum "> | |||||
| and `subsidy_num` = #{subsidyNum} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||