|
@@ -21,13 +21,12 @@ class KuaishouOperationPerformanceBackChargeBase:
|
|
|
'%Y%m%d') """
|
|
|
start_date = TidbProConn.quary(self.conn, start_date_sql)[0][0]
|
|
|
end_date = TidbProConn.quary(self.conn, end_date_sql)[0][0]
|
|
|
-
|
|
|
try:
|
|
|
sql = """
|
|
|
replace into application.kuaishou_operation_performance_back_charge_base
|
|
|
select stat_date,
|
|
|
- company_id,
|
|
|
- company_name,
|
|
|
+ user_com.company_id,
|
|
|
+ user_com.company_name,
|
|
|
t.project_id,
|
|
|
project_name,
|
|
|
user.id as user_id,
|
|
@@ -1155,6 +1154,8 @@ from (
|
|
|
on transferor_one = user.id
|
|
|
left join `jeecg-boot`.sys_user leader
|
|
|
on user.leader_id = leader.id
|
|
|
+ left join `jeecg-boot`.user_company user_com
|
|
|
+ on user.id =user_com.user_id
|
|
|
where user.id is not null
|
|
|
group by stat_date, account_id, contract_rebate_real_charged_in_yuan,direct_rebate_real_charged_in_yuan
|
|
|
""".format(start_date=start_date, enddate=end_date)
|