|
|
@ -155,8 +155,11 @@ class PartnerController extends ThinkController
|
|
|
|
$value['settlement_type'] = '月结';
|
|
|
|
$value['settlement_type'] = '月结';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$value['company_type'] = $value['company_type'] == 2 ? '个人' : '公司';
|
|
|
|
$value['company_type'] = $value['company_type'] == 2 ? '个人' : '公司';
|
|
|
|
$value['contract_time'] = time_format($value['contract_start_time'], 'Y/m/d') . '-' .
|
|
|
|
$contract_start_time = $value['contract_start_time'] ?
|
|
|
|
time_format($value['contract_end_time'], 'Y/m/d');
|
|
|
|
time_format($value['contract_start_time'], 'Y/m/d') : '-';
|
|
|
|
|
|
|
|
$contract_end_time = $value['contract_end_time'] ?
|
|
|
|
|
|
|
|
time_format($value['contract_end_time'], 'Y/m/d') : '-';
|
|
|
|
|
|
|
|
$value['contract_time'] = $contract_start_time . '-' . $contract_end_time;
|
|
|
|
$row2 = array_sum(array_column($value['game'], 'row')) ;
|
|
|
|
$row2 = array_sum(array_column($value['game'], 'row')) ;
|
|
|
|
$value['row'] = empty($row2) ? 1: $row2;
|
|
|
|
$value['row'] = empty($row2) ? 1: $row2;
|
|
|
|
$parseData[$value['partner_id']][] = $value;
|
|
|
|
$parseData[$value['partner_id']][] = $value;
|
|
|
@ -374,8 +377,12 @@ class PartnerController extends ThinkController
|
|
|
|
if (empty($data)) {
|
|
|
|
if (empty($data)) {
|
|
|
|
$this->error('数据异常', U('lists'));
|
|
|
|
$this->error('数据异常', U('lists'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data['contract_start_time'] = date('Y-m-d', $data['contract_start_time']);
|
|
|
|
if ($data['contract_start_time']) {
|
|
|
|
$data['contract_end_time'] = date('Y-m-d', $data['contract_end_time']);
|
|
|
|
$data['contract_start_time'] = date('Y-m-d', $data['contract_start_time']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($data['contract_end_time']) {
|
|
|
|
|
|
|
|
$data['contract_end_time'] = date('Y-m-d', $data['contract_end_time']);
|
|
|
|
|
|
|
|
}
|
|
|
|
$data['channel_rate'] *= 100;//存的是小数,显示百分比
|
|
|
|
$data['channel_rate'] *= 100;//存的是小数,显示百分比
|
|
|
|
$data['invoice_rate'] *= 100;//存的是小数,显示百分比
|
|
|
|
$data['invoice_rate'] *= 100;//存的是小数,显示百分比
|
|
|
|
// dd($data);
|
|
|
|
// dd($data);
|
|
|
|