删除无用字段
This commit is contained in:
parent
237fb150f6
commit
b54b4edb5e
@ -104,7 +104,6 @@ class RechargeLists extends BaseAdminDataLists implements ListsSearchInterface,
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
// $companyIds = CompanyLogic::getAllCompanyIds();
|
||||
$field = 'ro.id,ro.sn,ro.order_amount,ro.pay_way,ro.pay_time,ro.pay_status,ro.create_time,ro.refund_status';
|
||||
$field .= ',u.avatar,u.nickname,u.company_id';
|
||||
$lists = RechargeOrder::alias('ro')
|
||||
|
@ -271,15 +271,4 @@ class CompanyLogic extends BaseLogic
|
||||
$model->save();
|
||||
return $model->id;
|
||||
}
|
||||
|
||||
public static function getAllCompanyIds()
|
||||
{
|
||||
$companyId = request()->adminInfo['company_id'] ?? 0;
|
||||
$companyIds[] = $companyId;
|
||||
$companies = loopGetChild(Company::class, $companyId, 'level_one', 'id,level_one');
|
||||
if (!empty($companies)) {
|
||||
$companyIds = array_merge(array_column($companies, 'id'), $companyIds);
|
||||
}
|
||||
return array_filter($companyIds);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user