@ -384,7 +384,7 @@ class StatementMangementController extends ThinkController
$list = SM('reward_record', 'tab_')->alias('r')
->field('
r.id, r.relation_game_id, r.settlement_time, r.confirm_time, r.content, r.reward_type, r.creater_id,r.is_verify,rd.is_check,rd.check_detail,IFNULL(pc.company_belong,0) company_belong,
r.id, r.relation_game_id, r.reward_time,r. settlement_time, r.confirm_time, r.content, r.reward_type, r.creater_id,r.is_verify,rd.is_check,rd.check_detail,IFNULL(pc.company_belong,0) company_belong,
rd.id as rid, rd.type as detail_type, rd.company_type as detail_company_type, rd.company_id as detail_company_id , rd.company_name as detail_company_name, rd.settlement_type as detail_settlement_type, rd.promote_account as detail_promote_account,rd.amount as detail_amount
')
->where($map)
@ -413,6 +413,7 @@ class StatementMangementController extends ThinkController
'relation_game_partner' => $companys[1][$games[$item['relation_game_id']]['partner_id']] ?? '无',
'settlement_time' => $item['settlement_time'] ? date('Y年m月', $item['settlement_time']) : '-',
'confirm_time' => $item['confirm_time'] ? date('Y-m-d', $item['confirm_time']) : '-',
'reward_time' => $item['reward_time'] ? date('Y-m-d', $item['reward_time']) : '-',
'content' => $item['content'],
'reward_type_text' => RewardModel::$rewardTypes[$item['reward_type']],
'maxCount' => 0,
@ -478,6 +479,7 @@ class StatementMangementController extends ThinkController
// ksort($record);
// dd($record);
$this->assign('list', $record);
// dd($record);
$this->assign('promoters', array_column(SM('promote', 'tab_')->where(['level'=>1])->field('id, nickname, account')->select(), null, 'id'));
$this->assign('company_belong',getCompanyBlong());