Commit 259549dd authored by clone's avatar clone

门店业绩排行显示店长名字

parent f8aa9a5c
...@@ -469,7 +469,12 @@ class PerformanceService ...@@ -469,7 +469,12 @@ class PerformanceService
if (count($list) > 0) { if (count($list) > 0) {
foreach ($list as $key => $item) { foreach ($list as $key => $item) {
$fields = "c.name,b.store_name"; if($is_store == 2){
$fields = "a.name,b.store_name";
}else{
$fields = "c.name,b.store_name";
}
$where_["a.store_id"] = $item["store_id"]; $where_["a.store_id"] = $item["store_id"];
$where_["c.id"] = $item["agent_id"]; $where_["c.id"] = $item["agent_id"];
$info = $this->agentModel->getStoreOrAgentInfo($fields, $where_); $info = $this->agentModel->getStoreOrAgentInfo($fields, $where_);
......
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