Commit 4329c97e authored by zw's avatar zw

report info

parent c7362ee2
...@@ -258,12 +258,12 @@ class OrderLog extends Basic ...@@ -258,12 +258,12 @@ class OrderLog extends Basic
public function selectReportAll() public function selectReportAll()
{ {
$params = $this->params; $params = $this->params;
/* $params = array(
"order_id" => 2,
);*/
if (!isset($params["order_id"])) { if (!isset($params["order_id"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
/* $params = array(
"order_id" => 53670,
);*/
$data = $this->service_->selectListByOrderNo($params["order_id"]); $data = $this->service_->selectListByOrderNo($params["order_id"]);
return $this->response("200", "request success", $data); return $this->response("200", "request success", $data);
} }
......
...@@ -111,8 +111,9 @@ class OReportModel extends Model ...@@ -111,8 +111,9 @@ class OReportModel extends Model
return $this->db return $this->db
->field($filed) ->field($filed)
->alias("a") ->alias("a")
->join("a_store b","a.store_id=b.id","left") ->join("a_agents e","a.report_agent_id=e.id","left")
->join("a_district c","a.district_id=c.id","left") ->join("a_store b","e.store_id=b.id","left")
->join("a_district c","e.district_id=c.id","left")
->where($where_) ->where($where_)
->select(); ->select();
} }
......
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