update:余额明细导出
This commit is contained in:
parent
19948a8c5e
commit
bea34c6800
@ -40,11 +40,11 @@ class AccountLogLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
public function setExcelFields(): array
|
public function setExcelFields(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'user_info.sn' => '用户编号',
|
'user_info_sn' => '用户编号',
|
||||||
'company_info.company_name' => '归属公司',
|
'company_info_company_name' => '归属公司',
|
||||||
'user_info.nickname' => '用户昵称',
|
'user_info_nickname' => '用户昵称',
|
||||||
'user_info.group_name' => '角色名称',
|
'user_info_group_name' => '角色名称',
|
||||||
'user_info.mobile' => '手机号码',
|
'user_info_mobile' => '手机号码',
|
||||||
'change_amount' => '变动金额',
|
'change_amount' => '变动金额',
|
||||||
'left_amount' => '剩余金额',
|
'left_amount' => '剩余金额',
|
||||||
'change_type_desc' => '变动类型',
|
'change_type_desc' => '变动类型',
|
||||||
@ -123,6 +123,12 @@ class AccountLogLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
$item['change_type_desc'] = AccountLogEnum::getChangeTypeDesc($item['change_type']);
|
$item['change_type_desc'] = AccountLogEnum::getChangeTypeDesc($item['change_type']);
|
||||||
$symbol = $item['action'] == AccountLogEnum::INC ? '+' : '-';
|
$symbol = $item['action'] == AccountLogEnum::INC ? '+' : '-';
|
||||||
$item['change_amount'] = $symbol . $item['change_amount'];
|
$item['change_amount'] = $symbol . $item['change_amount'];
|
||||||
|
// 用于导出
|
||||||
|
$item['user_info_sn'] = $item['user_info']['sn'];
|
||||||
|
$item['company_info_company_name'] = $item['company_info']['company_name'];
|
||||||
|
$item['user_info_nickname'] = $item['user_info']['nickname'];
|
||||||
|
$item['user_info_group_name'] = $item['user_info']['group_name'];
|
||||||
|
$item['user_info_mobile'] = $item['user_info']['mobile'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $lists;
|
return $lists;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user