Commit 14e2f7d4 authored by zhuwei's avatar zhuwei

文件上传格式增加

parent da6af941
......@@ -68,23 +68,9 @@ class PerformanceService
$agent_info = $this->getStoreAndDistrict($agent_id);
$where_ = [];
$where_['total_time'] = array( 'between', array( $end_day, $yesterday ) );
//todo 成交报告数 bargain_sum
//todo 成交报告数其他 bargain_sum
//todo 收款数 paylog
//todo 进场数 march_in_num
//todo 报备数 look_at_num
//todo 新增商铺数 add_house_num
//todo 新增客户数 add_user_num
//todo 团队人数 team_num
$field = "agent_id,store_id,district_id,sum(performance) as performance_total,bargain_sum,bargain_sum,paylog,march_in_num,look_at_num,add_house_num,add_user_num";
$field = "agent_id,store_id,district_id,sum(performance) as performance_total";
$order = "performance_total desc";
$result = $this->totalModel->getTotalByAgentId($field, $where_, $type, $order);
//dump($result);
......@@ -103,10 +89,6 @@ class PerformanceService
$value["store_name"] = $info[0]["store_name"];
$value["district_name"] = $info[0]["district_name"];
}
//计算区域人数
$params = [];
$params['district_id'] = $value["district_id"];
$value["team_num"] = $this->agentModel->getAgentsCountByStoreId($params);
array_push($arr, $value);
}
break;
......@@ -122,10 +104,6 @@ class PerformanceService
$value["store_name"] = $info[0]["store_name"];
$value["district_name"] = $info[0]["district_name"];
}
//计算门店人数
$params = [];
$params['store_id'] = $value["store_id"];
$value["team_num"] = $this->agentModel->getAgentsCountByStoreId($params);
array_push($arr, $value);
}
break;
......
......@@ -20,7 +20,7 @@ class UploadFileService
* @param array $ext
* @return array
*/
public function upload($_upload_file, $type, $size = 1000000, $ext = [ 'jpg','png','jpeg','xlsx'])
public function upload($_upload_file, $type, $size = 1000000, $ext = [ 'jpg','png','jpeg','xlsx','doc','pdf'])
{
/**
*
......
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