Commit 518364cc authored by clone's avatar clone

bug

parent 3b5e2774
...@@ -383,6 +383,7 @@ class PerformanceService ...@@ -383,6 +383,7 @@ class PerformanceService
foreach ($list as $key => $item) { foreach ($list as $key => $item) {
if ($is_store == 2) { if ($is_store == 2) {
$fields = "a.name,b.store_name"; $fields = "a.name,b.store_name";
$where_["a.level"] = array('in', "20,40");
} else { } else {
$fields = "c.name,b.store_name"; $fields = "c.name,b.store_name";
} }
......
...@@ -705,8 +705,8 @@ class AAgents extends BaseModel ...@@ -705,8 +705,8 @@ class AAgents extends BaseModel
->join("a_store b", "a.store_id = b.id", "left") ->join("a_store b", "a.store_id = b.id", "left")
->join("a_agents c", "a.store_id = c.store_id", "left") ->join("a_agents c", "a.store_id = c.store_id", "left")
->where($params) ->where($params)
->where('a.level', [ '=', 20 ], [ '=', 40 ], 'or')
->select(); ->select();
// echo $this->getLastSql();
return $result; return $result;
} }
......
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