Commit 9addc727 authored by hujun's avatar hujun

监督执行列表修改

parent aa2d8da0
...@@ -10,7 +10,6 @@ namespace app\api_broker\controller; ...@@ -10,7 +10,6 @@ namespace app\api_broker\controller;
use app\api_broker\extend\Basic; use app\api_broker\extend\Basic;
use app\api_broker\service\VerifyService;
use app\model\AAgents; use app\model\AAgents;
use app\model\SSupervision; use app\model\SSupervision;
...@@ -86,8 +85,6 @@ class Supervise extends Basic ...@@ -86,8 +85,6 @@ class Supervise extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo']; $pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize']; $pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$supervision = new SSupervision();
$fields = 'longitude,latitude,address,content,img_url,b.name,a.create_time';
$verify = new AAgents(); $verify = new AAgents();
$agent_data = $verify->getAgentInfo('level,store_id,district_id', $this->params['agent_id']); $agent_data = $verify->getAgentInfo('level,store_id,district_id', $this->params['agent_id']);
...@@ -99,9 +96,12 @@ class Supervise extends Basic ...@@ -99,9 +96,12 @@ class Supervise extends Basic
case 40 : case 40 :
$where = 'a.store_id = '.$agent_data['store_id'] . ' or a.district_id = '.$agent_data['district_id'];break; $where = 'a.store_id = '.$agent_data['store_id'] . ' or a.district_id = '.$agent_data['district_id'];break;
default : default :
$where = 'agent_id = '.$agent_data['agent_id']; $where = 'agent_id = '.$this->params['agent_id'];
} }
$supervision = new SSupervision();
$fields = 'longitude,latitude,address,content,img_url,b.name,a.create_time';
if (empty($where)) { if (empty($where)) {
return $this->response(101, 'Params is error'); return $this->response(101, 'Params is error');
} }
......
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