@ -383,7 +383,7 @@ class StatementMangementController extends ThinkController
$list = SM('reward_record', 'tab_')->alias('r')
$list = SM('reward_record', 'tab_')->alias('r')
->field('
->field('
r.id, r.relation_game_id, r.settlement_time, r.confirm_time, r.content, r.reward_type, r.creater_id,is_verify,verify_detail,IFNULL(pc.company_belong,0) company_belong,
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_verify detail_verify,rd. verify_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
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)
->where($map)
@ -399,9 +399,9 @@ class StatementMangementController extends ThinkController
if($item["is_verify"] == 0) {
if($item["is_verify"] == 0) {
$verify_detail = "未审核";
$verify_detail = "未审核";
} elseif($item["is_verify"] == 1) {
} elseif($item["is_verify"] == 1) {
$verify_detail="审核通过< br > "."(".$item["verify_detail"]["user"].")< br > ".$item["verify_detail"]["time"] ;
$verify_detail="审核通过";
} else{
} else{
$verify_detail="审核拒绝< br > "."(".$item["verify_detail"]["user"].")< br > ".$item["verify_detail"]["time"] ;
$verify_detail="审核拒绝";
}
}
if (!isset($record[$item['id']]))
if (!isset($record[$item['id']]))
@ -424,6 +424,15 @@ class StatementMangementController extends ThinkController
];
];
}
}
if (!empty($item['rid'])) {
if (!empty($item['rid'])) {
if($item["detail_verify"] == 0) {
$verify_detail = "未审核";
} elseif($item["detail_verify"] == 1) {
$verify_detail="审核通过< br > "."(".$item["verify_detail"]["user"].")< br > ".$item["verify_detail"]["time"];
} else{
$verify_detail="审核拒绝< br > "."(".$item["verify_detail"]["user"].")< br > ".$item["verify_detail"]["time"];
}
$record[$item['id']]['detail'][] = [
$record[$item['id']]['detail'][] = [
'company_type_text' => RewardModel::$companyTypes[$item['detail_company_type']] ?? '-',
'company_type_text' => RewardModel::$companyTypes[$item['detail_company_type']] ?? '-',
'settlement_type_text' => RewardModel::$settlementTypes[$item['detail_settlement_type']] ?? '-',
'settlement_type_text' => RewardModel::$settlementTypes[$item['detail_settlement_type']] ?? '-',
@ -431,7 +440,9 @@ class StatementMangementController extends ThinkController
'amount' => $item['detail_type'] == RewardModel::REWARD_TYPE_PUNISH ? -$item['detail_amount'] : $item['detail_amount'],
'amount' => $item['detail_type'] == RewardModel::REWARD_TYPE_PUNISH ? -$item['detail_amount'] : $item['detail_amount'],
'promote_account' => $item['detail_promote_account'] ?? '无',
'promote_account' => $item['detail_promote_account'] ?? '无',
'company_belong'=>$item['detail_company_type'] == 2 ? getCompanyBlong($item['company_belong']) : "无",
'company_belong'=>$item['detail_company_type'] == 2 ? getCompanyBlong($item['company_belong']) : "无",
'detail_type' =>RewardModel::$rewardTypes[$item['detail_type']]
'detail_type' =>RewardModel::$rewardTypes[$item['detail_type']],
'detail_verify'=>$item["detail_verify"],
'verify'=>$verify_detail,
];
];
$record[$item['id']]['row'] += 1;
$record[$item['id']]['row'] += 1;