|
@@ -44,8 +44,23 @@
|
|
WHEN 8 THEN 'OAID_MD5'
|
|
WHEN 8 THEN 'OAID_MD5'
|
|
ELSE ''
|
|
ELSE ''
|
|
END as 'typeStr',
|
|
END as 'typeStr',
|
|
- t4.statusStr,
|
|
|
|
- t4.`status`,
|
|
|
|
|
|
+ <if test="status ==null">
|
|
|
|
+ t4.statusStr,
|
|
|
|
+ t4.`status`,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="status !=null">
|
|
|
|
+ t1.`status`,
|
|
|
|
+ CASE t1.`status`
|
|
|
|
+ WHEN 0 THEN '计算中'
|
|
|
|
+ WHEN 1 THEN '已生效'
|
|
|
|
+ WHEN 3 THEN '推送中'
|
|
|
|
+ WHEN 4 THEN '已推送'
|
|
|
|
+ WHEN 5 THEN '计算失败'
|
|
|
|
+ WHEN 6 THEN '推送失败'
|
|
|
|
+ WHEN 7 THEN '已失效'
|
|
|
|
+ ELSE ''
|
|
|
|
+ END as 'statusStr',
|
|
|
|
+ </if>
|
|
IFNULL(t1.signature,'') as 'signature',
|
|
IFNULL(t1.signature,'') as 'signature',
|
|
IFNULL(cover_num,0) as 'coverNum'
|
|
IFNULL(cover_num,0) as 'coverNum'
|
|
FROM ctop_kuaishou_crowd_package t1
|
|
FROM ctop_kuaishou_crowd_package t1
|
|
@@ -108,9 +123,6 @@
|
|
<if test="accountId !=null">
|
|
<if test="accountId !=null">
|
|
AND t2.account_id =#{accountId}
|
|
AND t2.account_id =#{accountId}
|
|
</if>
|
|
</if>
|
|
- <if test="status !=null">
|
|
|
|
- AND t1.`status` =#{status}
|
|
|
|
- </if>
|
|
|
|
GROUP BY t1.signature
|
|
GROUP BY t1.signature
|
|
)
|
|
)
|
|
GROUP BY t1.signature,`status`
|
|
GROUP BY t1.signature,`status`
|
|
@@ -129,7 +141,7 @@
|
|
AND t2.account_id =#{accountId}
|
|
AND t2.account_id =#{accountId}
|
|
</if>
|
|
</if>
|
|
<if test="status !=null">
|
|
<if test="status !=null">
|
|
- AND t4.`status` =#{status}
|
|
|
|
|
|
+ AND t1.`status` =#{status}
|
|
</if>
|
|
</if>
|
|
GROUP BY t1.signature
|
|
GROUP BY t1.signature
|
|
order by t1.update_time desc
|
|
order by t1.update_time desc
|