Commit be279e2e authored by clone's avatar clone

修改

parent 92deba82
......@@ -358,12 +358,12 @@ class OrderLog extends Basic
public function searchAgents()
{
$params = $this->params;
$params = array(
/* $params = array(
"submit_agent_id" => 1,
"keyword" => "157",
"page_no" => 1,
"page_size" => 15
);
);*/
if (!isset($params["submit_agent_id"]) || !isset($params["keyword"])) {
return $this->response("101", "请求参数错误");
......
......@@ -92,7 +92,10 @@ class Performance extends Basic
}
/**
* 门店业绩
* @return \think\Response
*/
public function storePerformanceBySearch()
{
$params = $this->params;
......@@ -102,6 +105,12 @@ class Performance extends Basic
"end_time" => "2018-03-23",
);
try {
$result = $this->service_->storePerformance($params["agent_id"], $params["start_time"], $params["end_time"]);
return $this->response("200", "request success", $result);
} catch (Exception $exception) {
return $this->response("101", "request error,msg:" . $exception);
}
}
/**
......
......@@ -134,7 +134,7 @@ class Report extends Basic
"explain" =>"1,2",//备注
"explain_img" =>"1,2"//备注图
);*/
header('Access-Control-Allow-Origin:*');
$params = $this->params;
if (!isset($params['report_id']) || !isset($params['agent_id']) || !isset($params['user_type']) ||
!isset($params['industry_type']) || !isset($params['area_requirement']) || !isset($params['price_requirement'])) {
......@@ -160,6 +160,7 @@ class Report extends Basic
"report_id" => 1,// 报备id
"agent_id" => 1,//非必填 经纪人id 没有就获取最新一条跟进记录
);*/
header('Access-Control-Allow-Origin:*');
$params = $this->params;
if (!isset($params["report_id"])) {
return $this->response("101", "请求参数错误");
......
......@@ -137,6 +137,7 @@ class PerformanceService
}
/**
* 个人业绩
* @param $agent_id
* @param $start_time
* @param $end_time
......@@ -299,4 +300,8 @@ class PerformanceService
return $result;
}
public function storePerformance($agent_id,$start_time,$end_time){
}
}
\ No newline at end of file
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