Browse Source

每日统计部分地放冗余统计删除

song 9 months ago
parent
commit
8aeae2973f

+ 0 - 9
sanling-finance-biz/src/main/resources/mybatis/mapper/AccountDailySettleMapper.xml

@@ -16,8 +16,6 @@
                                             withdrawal_day,
                                             transfer_in_day,
                                             transfer_out_day,
---                                             auction_total,
-                                            agile_total,
                                             shareholder_total,
                                             agile_interest_total,
                                             proxy_rebate_total,
@@ -95,13 +93,6 @@
                   AND type = 7
                   AND create_time > DATE_SUB(CURDATE(), INTERVAL 1 DAY)
                   AND create_time < CURDATE())           AS transferOutDay,
---                auction_amount                            AS auctionTotal,
-               (SELECT SUM(amount) - COALESCE(
-                       (SELECT SUM(t1.amount) FROM t_finance_bill AS t1 WHERE t1.type = 3 AND account_id = accountId),
-                       0)
-                FROM t_finance_bill
-                WHERE type = 1
-                  AND account_id = accountId)            AS agileTotal,
                shareholder_amount + shareholder_interest AS shareholderTotal,
                agile_interest                            AS agileInterestTotal,
                proxy_interest                            AS proxyRebateTotal,

+ 0 - 8
sanling-finance-biz/src/main/resources/mybatis/mapper/PlatformDailySettleMapper.xml

@@ -40,8 +40,6 @@
                                              withdrawal_day,
                                              transfer_in_day,
                                              transfer_out_day,
---                                              auction_total,
-                                             agile_total,
                                              shareholder_total,
                                              agile_interest_total,
                                              proxy_rebate_total,
@@ -107,12 +105,6 @@
                 WHERE type = 7
                   AND create_time > DATE_SUB(CURDATE(), INTERVAL 1 DAY)
                   AND create_time < CURDATE())                                  AS transferOutDay,
---                sum(auction_amount)                                              AS auctionTotal,
-               (SELECT SUM(amount) - COALESCE(
-                       (SELECT SUM(t1.amount) FROM t_finance_bill AS t1 WHERE t1.type = 3),
-                       0)
-                FROM t_finance_bill
-                WHERE type = 1)                                                 AS agileTotal,
                sum(shareholder_amount + shareholder_interest)                   AS shareholderTotal,
                sum(agile_interest)                                              AS agileInterestTotal,
                sum(proxy_interest)                                              AS proxyRebateTotal,