|
|
|
|
@ -32,6 +32,7 @@ class VisitController extends CommonController
|
|
|
|
|
* @OA\Parameter(name="my_self", in="query", @OA\Schema(type="string"), required=false, description="是否显示自己创建的0否1是,默认0"),
|
|
|
|
|
* @OA\Parameter(name="my_audit", in="query", @OA\Schema(type="string"), required=false, description="是否显示我审核的记录0否1是,默认0"),
|
|
|
|
|
* @OA\Parameter(name="my_accept_admin", in="query", @OA\Schema(type="string"), required=false, description="是否显示接待人员是自己的0否1是,默认0"),
|
|
|
|
|
* @OA\Parameter(name="long_time", in="query", @OA\Schema(type="string"), required=false, description="是否长期访客0否1是"),
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
* @OA\Response(
|
|
|
|
|
* response="200",
|
|
|
|
|
@ -58,6 +59,9 @@ class VisitController extends CommonController
|
|
|
|
|
if (isset($all['my_accept_admin']) && !empty($all['my_accept_admin'])) {
|
|
|
|
|
$query->where('accept_admin_id', $this->getUserId());
|
|
|
|
|
}
|
|
|
|
|
if (isset($all['long_time']) && !empty($all['long_time'])) {
|
|
|
|
|
$query->where('long_time', $all['long_time']);
|
|
|
|
|
}
|
|
|
|
|
if (isset($all['my_audit']) && !empty($all['my_audit'])) {
|
|
|
|
|
$query->whereHas('audit', function ($q) {
|
|
|
|
|
$q->where('audit_admin_id', $this->getUserId());
|
|
|
|
|
|