|
|
|
@@ -246,15 +246,12 @@ |
|
|
|
cc.`target_ad`,cc.`business`,cc.`sub_business`,cc.`show_begin_time`,cc.`begin_time`,cc.`end_time`,cc.`status`, |
|
|
|
cc.`create_date`,cc.`update_date`,cc.`sub_target_id`,cc.qr_code,cc.tt_spu_id |
|
|
|
from wx_coupon_channel cc |
|
|
|
where cc.status = 0 |
|
|
|
where cc.`tenant_id` = #{tenantId} |
|
|
|
|
|
|
|
<if test=" null != id "> |
|
|
|
and cc.`id` = #{id} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != tenantId and '' != tenantId"> |
|
|
|
and cc.`tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != parentTenantId and '' != parentTenantId"> |
|
|
|
and cc.`parent_tenant_id` = #{parentTenantId} |
|
|
|
</if> |
|
|
|
|