|
|
@ -155,15 +155,16 @@ class Customer extends Common
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 过滤角色
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 过滤角色
|
|
|
|
$groupIds = db('admin_access')->where("user_id", array("eq", $user_id))->column("group_id");
|
|
|
|
$groupIds = db('admin_access')->where("user_id", array("eq", $user_id))->column("group_id");
|
|
|
|
if (!in_array(1,$groupIds)){
|
|
|
|
if (!in_array(1,$groupIds)){
|
|
|
|
$groupNameArray = db('admin_group')->where("pid", array("eq", 2))->where("id", array("in", $groupIds))->column("title");
|
|
|
|
$groupNameArray = db('admin_group')->where("pid", array("eq", 2))->where("id", array("in", $groupIds))->column("title");
|
|
|
|
if ($groupNameArray)
|
|
|
|
if ($groupNameArray){
|
|
|
|
|
|
|
|
|
|
|
|
$map['customer.crm_lthugd'] = array('in', $groupNameArray);
|
|
|
|
$map['customer.crm_lthugd'] = array('in', $groupNameArray);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# 代办事项 - 待进入公海
|
|
|
|
# 代办事项 - 待进入公海
|
|
|
|
$remindWhere = [];
|
|
|
|
$remindWhere = [];
|
|
|
|
if ($is_remind) {
|
|
|
|
if ($is_remind) {
|
|
|
@ -300,8 +301,8 @@ class Customer extends Common
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data = [];
|
|
|
|
$data = [];
|
|
|
|
$data['list'] = $list ?: [];
|
|
|
|
|
|
|
|
$data['dataCount'] = $dataCount ?: 0;
|
|
|
|
$data['dataCount'] = $dataCount ?: 0;
|
|
|
|
|
|
|
|
$data['list'] = $list ?: [];
|
|
|
|
return $data;
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|