|
@@ -107,6 +107,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="queryPoolAccountList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
+ SELECT * from (
|
|
|
select
|
|
|
account_id as 'id',
|
|
|
auth_name as 'name',
|
|
@@ -129,6 +130,32 @@
|
|
|
</when>
|
|
|
</choose>
|
|
|
group by account_id
|
|
|
+ union all
|
|
|
+
|
|
|
+ select
|
|
|
+ cast(account_id as char) as 'id',
|
|
|
+ auth_name as 'name',
|
|
|
+ media_id as 'mediaId'
|
|
|
+ from ctop_qianbao_config
|
|
|
+ Where advertiser_id in
|
|
|
+ <foreach item="item" index="index" collection="advertiserIds"
|
|
|
+ open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ <if test="projectId != null and projectId != '' ">
|
|
|
+ AND project_id = #{projectId}
|
|
|
+ </if>
|
|
|
+ <choose>
|
|
|
+ <when test="type != 11 ">
|
|
|
+ AND media_id = #{type}
|
|
|
+ </when>
|
|
|
+ <when test="type == 11 ">
|
|
|
+ AND (media_id = 1 or media_id = 2 )
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ group by account_id
|
|
|
+ ) t GROUP BY t.id
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|