update:余额明细导出
This commit is contained in:
parent
bea34c6800
commit
2dd5e529e9
@ -56,9 +56,11 @@ class WithdrawLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
// 组装审核时直接跳转到余额明细列表的 开始和结束时间
|
// 组装审核时直接跳转到余额明细列表的 开始和结束时间
|
||||||
foreach ($lists as &$item) {
|
foreach ($lists as &$item) {
|
||||||
$withdrawedCount = Withdraw::where(['user_id'=>$item['user_id'], 'status'=>3])->count();
|
$withdrawedCount = Withdraw::where(['user_id'=>$item['user_id'], 'status'=>3])->count();
|
||||||
|
$company = Company::where(['admin_id'=>$item['admin_id']])->find();
|
||||||
|
$item['company_name'] = $company['company_name'];
|
||||||
// 开始时间 如果用户第一次提现申请,则以该公司内用户 周期内第一条数据的生成时间为开始时间
|
// 开始时间 如果用户第一次提现申请,则以该公司内用户 周期内第一条数据的生成时间为开始时间
|
||||||
if ($withdrawedCount == 0) {
|
if ($withdrawedCount == 0) {
|
||||||
$company = Company::where(['admin_id'=>$item['admin_id']])->find();
|
|
||||||
$firstUserLog = UserAccountLog::where(['company_id'=>$company['id']])->order('id', 'asc')->find();
|
$firstUserLog = UserAccountLog::where(['company_id'=>$company['id']])->order('id', 'asc')->find();
|
||||||
$item['s_date'] = $firstUserLog['create_time'];
|
$item['s_date'] = $firstUserLog['create_time'];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user