|
@@ -465,10 +465,8 @@
|
|
|
(SELECT u.realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
|
|
|
FROM
|
|
|
application.kuaishou_account_report_daily_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.charge > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_date >= #{startDate}
|
|
|
</if>
|
|
@@ -503,10 +501,8 @@
|
|
|
(SELECT u.realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
|
|
|
FROM
|
|
|
application.kuaishou_account_report_daily_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.charge > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_date >= #{startDate}
|
|
|
</if>
|
|
@@ -530,10 +526,8 @@
|
|
|
(SELECT u.realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
|
|
|
FROM
|
|
|
application.bytedance_advertiser_report_hourly_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.cost > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_datetime >= #{startDate}
|
|
|
</if>
|
|
@@ -563,10 +557,8 @@
|
|
|
(SELECT u.realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
|
|
|
FROM
|
|
|
application.bytedance_advertiser_report_daily_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.cost > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_datetime >= #{startDate}
|
|
|
</if>
|
|
@@ -595,10 +587,8 @@
|
|
|
(SELECT u.realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
|
|
|
FROM
|
|
|
application.kuaishou_account_report_hourly_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.charge > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_date >= #{startDate}
|
|
|
</if>
|
|
@@ -625,10 +615,8 @@
|
|
|
(SELECT u.realname from `jeecg-boot`.sys_user u where u.id = d.user_id) as userName
|
|
|
FROM
|
|
|
application.bytedance_advertiser_report_hourly_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.cost > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_datetime >= #{startDate}
|
|
|
</if>
|
|
@@ -677,10 +665,8 @@
|
|
|
IFNULL(ROUND( SUM( d.charge ) / SUM( d.form_count ), 2 ),0) AS formCountPrice
|
|
|
FROM
|
|
|
application.kuaishou_account_report_daily_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.charge > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_date >= #{startDate}
|
|
|
</if>
|
|
@@ -712,10 +698,8 @@
|
|
|
( SELECT realname FROM `jeecg-boot`.sys_user u WHERE u.id = d.user_id ) AS userName
|
|
|
FROM
|
|
|
application.bytedance_advertiser_report_hourly_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.cost > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_datetime >= #{startDate}
|
|
|
</if>
|
|
@@ -742,10 +726,8 @@
|
|
|
SUM( d.charge ) AS totalCost
|
|
|
FROM
|
|
|
application.kuaishou_account_report_hourly_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u ON d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.charge > 0
|
|
|
- AND u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_date >= #{startDate}
|
|
|
</if>
|
|
@@ -777,10 +759,8 @@
|
|
|
SUM( d.cost ) AS totalCost
|
|
|
FROM
|
|
|
application.bytedance_advertiser_report_hourly_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u ON d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.cost > 0
|
|
|
- AND u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_datetime >= #{startDate}
|
|
|
</if>
|
|
@@ -846,10 +826,8 @@
|
|
|
IFNULL(SUM(d.photo_click),0) as photoClick
|
|
|
FROM
|
|
|
application.kuaishou_account_report_daily_dw d
|
|
|
- LEFT JOIN `jeecg-boot`.ctop_user_allocation u on d.account_id = u.account_id
|
|
|
WHERE
|
|
|
d.charge > 0
|
|
|
- and u.account_status = 0
|
|
|
<if test="startDate != null and startDate != '' ">
|
|
|
and d.stat_date >= #{startDate}
|
|
|
</if>
|
|
@@ -1881,4 +1859,18 @@
|
|
|
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <!-- 所有下级运营人员 -->
|
|
|
+ <select id="getAllOperatorsByLearderId" resultType="java.lang.String">
|
|
|
+ SELECT
|
|
|
+ user_id
|
|
|
+ FROM
|
|
|
+ application.`app_user_manage`
|
|
|
+ WHERE
|
|
|
+ manage_id = #{learderId}
|
|
|
+ AND type = 1
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|