فهرست منبع

1.控制台提现任务添加 驳回统计

wuhp 1 سال پیش
والد
کامیت
c50f4fe589
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      src/main/resources/mapper/modules/console/WithdrawalTaskMapper.xml

+ 6 - 4
src/main/resources/mapper/modules/console/WithdrawalTaskMapper.xml

@@ -54,10 +54,12 @@
         select
               IFNULL(sum(a.amount),0) as "allWithdrawalAmount",
               IFNULL(count(a.id),0) as "allWithdrawalNumber",
-              sum( CASE WHEN a.auditing_status = 2 THEN  IFNULL(a.amount,0)  END )  AS notWithdrawalAmount,
-              sum( CASE WHEN a.auditing_status = 3 THEN  IFNULL(a.amount,0)  END )  AS withdrawalAmount,
-              count(CASE WHEN a.auditing_status = 2 THEN  1  END) as "notAllWithdrawalNumber",
-              count(CASE WHEN a.auditing_status = 3 THEN  1  END) as "withdrawalNumber"
+              IFNULL(sum( CASE WHEN a.auditing_status = 2 THEN  IFNULL(a.amount,0)  END ),0)  AS notWithdrawalAmount,
+              IFNULL(sum( CASE WHEN a.auditing_status = 3 THEN  IFNULL(a.amount,0)  END ),0)  AS withdrawalAmount,
+              IFNULL(count(CASE WHEN a.auditing_status = 2 THEN  1  END),0) as "notAllWithdrawalNumber",
+              IFNULL(count(CASE WHEN a.auditing_status = 3 THEN  1  END),0) as "withdrawalNumber",
+              IFNULL(sum( CASE WHEN a.auditing_status = 4 THEN  IFNULL(a.amount,0)  END ),0)  AS "failedWithdrawalAmount",
+              IFNULL(count(CASE WHEN a.auditing_status = 4 THEN  1  END),0) as "failedWithdrawalNumber"
         from sys_amount_auditing a
         <where>
             <if test="vo.beginDate  != null  and  vo.beginDate!=''  and vo.endDate  != null  and  vo.endDate!=''">