Commit 00a70345 authored by hujun's avatar hujun

跟进时间搜索条件

parent 4726fc96
......@@ -105,11 +105,15 @@ class Remark extends Basic
$where['user_id'] = $this->params['user_id'];
}
if (!empty($where_user)) {
if (!empty($agent_where)) {
$m_agent = new AAgents();
$agent_id_arr = $m_agent->getAgentById('id', $agent_where);
if (!empty($agent_id_arr)) {
$where['agent_id'] = ['in', $agent_id_arr];
foreach ($agent_id_arr as $K=>$v) {
$agent_id[] = $v['id'];
}
$where['agent_id'] = ['in', $agent_id];
}
}
$field = 'user_id,create_time,content,user_status,labels_id,agent_id as f_agent_id';
......
......@@ -266,6 +266,9 @@ class AAgents extends BaseModel
if (isset($params["store_id"])) {
$where_["store_id"] = $params["store_id"];
}
if (isset($params["district_id"])) {
$where_["district_id"] = $params["district_id"];
}
if (isset($params["status"])) {
$where_["status"] = $params["status"];
}
......
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