|
@@ -51,7 +51,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <!-- 获取快手 账户 日流水信息 -->
|
|
|
+ <!-- 获取快手 账户 日流水信息 账户维度-->
|
|
|
<select id="getAccountTransactionDayKuaiShou" resultType="org.jeecg.ctop.finance.settlement.entity.vo.SettlementReportKuaiShouVo">
|
|
|
select t.*,c.auth_name as accountName,
|
|
|
base.user_id as ksId from (select id,
|
|
@@ -73,6 +73,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ <!-- 获取快手 账户 日流水信息 代理商维度-->
|
|
|
+ <select id="getAccountTransactionDayKuaiShouAgent" resultType="org.jeecg.ctop.finance.settlement.entity.vo.SettlementReportKuaiShouVo">
|
|
|
+
|
|
|
+ SELECT
|
|
|
+ t.*
|
|
|
+ FROM
|
|
|
+ (
|
|
|
+ SELECT
|
|
|
+ account_id,
|
|
|
+ date_time AS date,
|
|
|
+ DATE_FORMAT( date_time, '%Y-%m' ) AS uploadYears,
|
|
|
+ user_id AS ksId,
|
|
|
+ total_charged_in_yuan AS dailyCharge,
|
|
|
+ credit_real_charged_in_yuan AS realCharged,
|
|
|
+ account_name,
|
|
|
+ create_time
|
|
|
+ FROM
|
|
|
+ ctop_kuaishou_daily_agent
|
|
|
+ WHERE
|
|
|
+ account_id = #{accountId}
|
|
|
+ ) t
|
|
|
+ WHERE
|
|
|
+ t.uploadYears = #{uploadYears}
|
|
|
+ ORDER BY
|
|
|
+ t.date
|
|
|
+
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<!-- 查询 头条利润表 所用账户-->
|
|
|
<select id="getProfitBytedanceAccountCost" resultType="java.util.LinkedHashMap">
|