Commit d3bbb4af authored by zhuwei's avatar zhuwei

隐藏长假客户

parent 58fd3806
...@@ -96,10 +96,9 @@ class StatementService ...@@ -96,10 +96,9 @@ class StatementService
$result = $params = []; $result = $params = [];
switch ($user_type) { switch ($user_type) {
case 0: case 0:
//todo
break; break;
case 1: case 1:
//todo 统计门店下的所有经纪人 // 统计门店下的所有经纪人
$params["store_id"] = $store_id; $params["store_id"] = $store_id;
//$params["level"] = array( "neq", "30" ); //$params["level"] = array( "neq", "30" );
$params["status"] = array('in','0,1');//只查询正常状态的经纪人 $params["status"] = array('in','0,1');//只查询正常状态的经纪人
...@@ -118,7 +117,8 @@ class StatementService ...@@ -118,7 +117,8 @@ class StatementService
$agentIds = ""; $agentIds = "";
foreach ($agentsArr as $key => $value) { foreach ($agentsArr as $key => $value) {
$agentIds .= $value["id"] . ","; $agentIds .= $value["id"] . ",";
if ($user_type == 1) { #列表排除长假经纪人
if ($user_type == 1 and ($value['status'] != 1)) {//1店长
array_push($store_list, $this->getStoreList($conditions, $value["id"], $value["name"])); array_push($store_list, $this->getStoreList($conditions, $value["id"], $value["name"]));
} }
} }
......
...@@ -497,7 +497,7 @@ class AAgents extends BaseModel ...@@ -497,7 +497,7 @@ class AAgents extends BaseModel
public function getAgentsByStoreId($params) public function getAgentsByStoreId($params)
{ {
$result = Db::table($this->table) $result = Db::table($this->table)
->field("id,name") ->field("id,name,status")
->where($params) ->where($params)
->select(); ->select();
//echo Db::table($this->table)->getLastSql(); //echo Db::table($this->table)->getLastSql();
......
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