|
|
@@ -157,9 +157,10 @@ class WithdrawalLogic extends BaseLogicController
|
|
|
AccountWithDrawInfo::orderOverDownExcel($SQL, $where);
|
|
|
|
|
|
} else {
|
|
|
- $field = ['ai.RegisterIP','ow.locking', 'ar.remarks','ow.remark', 'ow.RecordID', 'ar.RecordID as ar_RecordID', 'wn.state as wn_state', 'ai.NickName', 'ow.AccountsBank', 'ow.BankUserName', 'ow.WithDraw', 'ow.State', 'ow.BankNO', 'ow.ServiceFee', 'OrderId', 'ai.GameID', 'ai.UserID', 'ai.Channel', 'ar.admin_id', 'ow.agent', 'finishDate', 'PixNum', 'PixType', 'ow.EmailAddress', 'ow.PhoneNumber', 'ow.AdhaarNumber', 'ow.IFSCNumber'];
|
|
|
+ $field = ['ai.RegisterIP','ow.locking', 'ar.remarks','ow.remark', 'ow.RecordID', 'ar.RecordID as ar_RecordID', 'wn.state as wn_state', 'ai.NickName', 'ow.AccountsBank', 'ow.BankUserName', 'ow.WithDraw', 'ow.State', 'ow.BankNO', 'ow.ServiceFee', 'ow.withdraw_fee', 'OrderId', 'ai.GameID', 'ai.UserID', 'ai.Channel', 'ar.admin_id', 'ow.agent', 'finishDate', 'PixNum', 'PixType', 'ow.EmailAddress', 'ow.PhoneNumber', 'ow.AdhaarNumber', 'ow.IFSCNumber'];
|
|
|
$SQL1 = clone $SQL;
|
|
|
$SQL2 = clone $SQL;
|
|
|
+ $SQL3 = clone $SQL;
|
|
|
$model = new AccountWithDrawInfo();
|
|
|
|
|
|
|
|
|
@@ -188,6 +189,10 @@ class WithdrawalLogic extends BaseLogicController
|
|
|
$overUserCount->WithDraw = number_float($overUserCount->WithDraw / NumConfig::NUM_VALUE);
|
|
|
}
|
|
|
|
|
|
+ // 手续费汇总(当前筛选条件下)
|
|
|
+ $totalWithdrawFeeRow = $SQL3->where($where)->selectRaw('sum(cast(ISNULL(ow.withdraw_fee,0) as bigint)) as total_withdraw_fee')->lock('with(nolock)')->first();
|
|
|
+ $totalWithdrawFee = isset($totalWithdrawFeeRow->total_withdraw_fee) ? number_float($totalWithdrawFeeRow->total_withdraw_fee / NumConfig::NUM_VALUE) : 0;
|
|
|
+
|
|
|
$userIDs = [];
|
|
|
$adminIDs = [];
|
|
|
$agentIDs = [];
|
|
|
@@ -196,6 +201,7 @@ class WithdrawalLogic extends BaseLogicController
|
|
|
$val->actual_arrival = number_float(($val->WithDraw + $val->ServiceFee) / 100); // 实际提现金额
|
|
|
$val->ServiceFee = number_float($val->ServiceFee / 100);
|
|
|
$val->WithDraw = number_float($val->WithDraw / 100);
|
|
|
+ $val->withdraw_fee_display = number_float(($val->withdraw_fee ?? 0) / NumConfig::NUM_VALUE);
|
|
|
$val->sameNameNum=$accountsInfo->sameWithDrawBankName($val->BankUserName);
|
|
|
$val->sameEmailNum=$accountsInfo->sameWithDrawEmail($val->EmailAddress);
|
|
|
$val->sameMac=$accountsInfo->sameLoginMacCount($val->UserID);
|
|
|
@@ -280,7 +286,7 @@ class WithdrawalLogic extends BaseLogicController
|
|
|
->select('PackageName', 'Channel')
|
|
|
->pluck('PackageName', 'Channel');
|
|
|
|
|
|
- return compact('applyUserCount', 'overUserCount', 'list', 'payState', 'allChannel', 'Channel', 'GameID', 'withdraw_search', 'withdraw', 'state', 'start_time', 'end_time', 'agent', 'orderID', 'final_start_time', 'final_end_time', 'take_effect', 'withdrawal_administrator', 'isEmpty', 'register_start_time', 'register_end_time', 'PackgeName', 'ChannelPackageName');
|
|
|
+ return compact('applyUserCount', 'overUserCount', 'list', 'totalWithdrawFee', 'payState', 'allChannel', 'Channel', 'GameID', 'withdraw_search', 'withdraw', 'state', 'start_time', 'end_time', 'agent', 'orderID', 'final_start_time', 'final_end_time', 'take_effect', 'withdrawal_administrator', 'isEmpty', 'register_start_time', 'register_end_time', 'PackgeName', 'ChannelPackageName');
|
|
|
}
|
|
|
|
|
|
|