修改转账订单导出

This commit is contained in:
luofei 2024-03-08 14:07:10 +08:00
parent 50248f1c2b
commit bc4afc83b2
2 changed files with 7 additions and 1 deletions

View File

@ -149,7 +149,9 @@ class Financial extends BaseController
{
$where = $this->request->params(['date', 'status', 'financial_type', 'financial_status', 'keyword', 'is_trader', 'mer_id']);
[$page, $limit] = $this->getPage();
$data = app()->make(ExcelService::class)->financialLog($where,$page,$limit);
/** @var ExcelService $make */
$make = app()->make(ExcelService::class);
$data = $make->financialLog($where,$page,$limit);
return app('json')->success($data);
}

View File

@ -678,6 +678,10 @@ class ExcelService
$list = $query->page($page, $limit)->select();
foreach ($list as $item) {
if ($item->financial_type == 1) {
if (empty($item->financial_account->bank)) {
$acount = '';
continue;
}
$acount = '姓名:' . $item->financial_account->name . PHP_EOL;
$acount .= '银行名称:' . $item->financial_account->bank . PHP_EOL;
$acount .= '银行卡号:' . $item->financial_account->bank_code;