Commit b54789a7 authored by zhuwei's avatar zhuwei

bug

parent c1e4200b
...@@ -431,13 +431,30 @@ class PerformanceService ...@@ -431,13 +431,30 @@ class PerformanceService
$e_data_old['look_at_num_total'] = $v['look_at_num_total'];//报备数 $e_data_old['look_at_num_total'] = $v['look_at_num_total'];//报备数
$e_data_old['add_house_num_total'] = $v['add_house_num_total'];//新增商铺 $e_data_old['add_house_num_total'] = $v['add_house_num_total'];//新增商铺
$e_data_old['add_user_num_total'] = $v['add_user_num_total'];//新增客户 $e_data_old['add_user_num_total'] = $v['add_user_num_total'];//新增客户
if($type != 1){
$e_data_old['team_num'] = $v['team_num'];//团队人数 $e_data_old['team_num'] = $v['team_num'];//团队人数
}
$e_data_new[]=$e_data_old; $e_data_new[]=$e_data_old;
} }
// dump($e_data_new);exit; // dump($e_data_new);exit;
$field_num = 10;
if($type ==1 ){
$title = [ '排名', '个人', '业绩', '成交单数', '收款数', '进场数', '报备数', '新增商铺', '新增客户'];
$field_num = 9;
$title2 = '个人业绩排行表('.$yesterday.'-'.$end_day.')';
}elseif ($type ==2){
$title = [ '排名', '门店', '业绩', '成交单数', '收款数', '进场数', '报备数', '新增商铺', '新增客户', '团队人数' ];
$title2 = '门店业绩排行表('.$yesterday.'-'.$end_day.')';
}else{
$title = [ '排名', '部门', '业绩', '成交单数', '收款数', '进场数', '报备数', '新增商铺', '新增客户', '团队人数' ]; $title = [ '排名', '部门', '业绩', '成交单数', '收款数', '进场数', '报备数', '新增商铺', '新增客户', '团队人数' ];
$export->exportTable('业绩排行', $e_data_new, 9, '业绩排行表', $title); $title2 = '部门业绩排行表('.$yesterday.'-'.$end_day.')';
}
$export->exportTable('业绩排行', $e_data_new, $field_num, $title2, $title);
return ''; return '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment