|
|
@@ -3,15 +3,15 @@
|
|
|
<mapper namespace="cn.com.ctop.finance.payment.mapper.FinancePaymentApplicationMapper">
|
|
|
|
|
|
<select id="getAdvertisers" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- SELECT group_concat(DISTINCT t2.id) as 'advertiserIds', t1.advertiser_name as 'advertiserName'
|
|
|
- FROM `ctop_cwjs_policy_info` t1
|
|
|
+ SELECT group_concat(DISTINCT t2.id) as 'advertiserIds', t2.name as 'advertiserName'
|
|
|
+ FROM ctop_advertiser t2
|
|
|
LEFT JOIN
|
|
|
- ctop_advertiser t2 ON t1.advertiser_name = t2.name
|
|
|
+ `ctop_cwjs_policy_info` t1 ON t1.advertiser_name = t2.name
|
|
|
WHERE t2.id is not null
|
|
|
<if test="mediaType != null and mediaType != '' ">
|
|
|
AND media_type = #{mediaType}
|
|
|
</if>
|
|
|
- GROUP BY t1.advertiser_name
|
|
|
+ GROUP BY t2.name
|
|
|
</select>
|
|
|
|
|
|
<select id="getProductByAdvertiserIds" resultType="com.alibaba.fastjson.JSONObject">
|