|
|
|
@@ -171,144 +171,6 @@ |
|
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="findEnableConditions"> |
|
|
|
where 1 = 1 |
|
|
|
|
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != tenantId "> |
|
|
|
and `tenant_id` like concat('%', #{tenantId},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != merchantId "> |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != type "> |
|
|
|
and `type` = #{type} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != coverImg "> |
|
|
|
and `cover_img` like concat('%', #{coverImg},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != title "> |
|
|
|
and `title` like concat('%', #{title},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != subTitle "> |
|
|
|
and `sub_title` like concat('%', #{subTitle},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != salePrice "> |
|
|
|
and `sale_price` = #{salePrice} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != usePrice "> |
|
|
|
and `use_price` = #{usePrice} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != useLimitQuantity "> |
|
|
|
and `use_limit_quantity` = #{useLimitQuantity} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != targetAd "> |
|
|
|
and `target_ad` = #{targetAd} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != sendType "> |
|
|
|
and `send_type` = #{sendType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != validType "> |
|
|
|
and `valid_type` = #{validType} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != validStartDate "> |
|
|
|
and `valid_start_date` = #{validStartDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != validEndDate "> |
|
|
|
and `valid_end_date` = #{validEndDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != validDays "> |
|
|
|
and `valid_days` = #{validDays} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != detail "> |
|
|
|
and `detail` like concat('%', #{detail},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != price "> |
|
|
|
and `price` = #{price} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != remainInventory "> |
|
|
|
and `remain_inventory` = #{remainInventory} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != inventory "> |
|
|
|
and `inventory` = #{inventory} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != remark "> |
|
|
|
and `remark` like concat('%', #{remark},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != status "> |
|
|
|
and `status` =0 |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != createDate "> |
|
|
|
and `create_date` = #{createDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != updateDate "> |
|
|
|
and `update_date` = #{updateDate} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != business "> |
|
|
|
and `business` like concat('%', #{business},'%') |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
#{idItem} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="findCanSendConditions"> |
|
|
|
where 1 = 1 |
|
|
|
|
|
|
|
@@ -451,10 +313,6 @@ |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findEnableList" parameterType="com.simple.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns" /> from wx_coupon |
|
|
|
<include refid="findEnableConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findCanSendList" parameterType="com.simple.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns" /> from wx_coupon |
|
|
|
|