|
|
|
@@ -137,7 +137,7 @@ |
|
|
|
left join (SELECT count(*) total_people, product_id FROM (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all"> |
|
|
|
SELECT * from wx_order${tenantEntity.shardTableSuffix} |
|
|
|
</foreach>) wx_order WHERE order_group_id != 0 group by product_id ) o2 on o2.product_id = c.id |
|
|
|
WHERE type = 9 |
|
|
|
WHERE c.type = 9 |
|
|
|
<if test=" null != marketing.tenantId and '' != marketing.tenantId"> |
|
|
|
and c.`tenant_id` = #{marketing.tenantId} |
|
|
|
</if> |
|
|
|
@@ -145,11 +145,11 @@ |
|
|
|
and c.`parent_tenant_id` = #{marketing.parentTenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != marketing.couponId and '' != marketing.couponId"> |
|
|
|
and c.coupon_id=#{marketing.couponId} |
|
|
|
and c.id=#{marketing.couponId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != marketing.couponIdList "> |
|
|
|
and c.coupon_id in |
|
|
|
and c.id in |
|
|
|
<foreach collection="marketing.couponIdList" index="index" item="cidItem" open="(" separator="," close=")"> |
|
|
|
#{cidItem} |
|
|
|
</foreach> |
|
|
|
|