|
|
@ -28,7 +28,7 @@ class Passcc extends Controller |
|
|
$granularity = $this->request->param('granularity'); |
|
|
$granularity = $this->request->param('granularity'); |
|
|
$type = $this->request->param('type'); |
|
|
$type = $this->request->param('type'); |
|
|
$res = PassFlow::allGroupTimeNum(['granularity' => $granularity, 'type' => $type]); |
|
|
$res = PassFlow::allGroupTimeNum(['granularity' => $granularity, 'type' => $type]); |
|
|
if (empty($res['code'])) $this->renderError($res['msg']); |
|
|
if (empty($res['code'])) return $this->renderError($res['msg']); |
|
|
$data = $res['data']; |
|
|
$data = $res['data']; |
|
|
return $this->renderSuccess(compact('data')); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
} |
|
|
} |
|
|
@ -44,6 +44,7 @@ class Passcc extends Controller |
|
|
{ |
|
|
{ |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$returnData = PassFlow::allGroupNum(null,['type' => $type]); |
|
|
$returnData = PassFlow::allGroupNum(null,['type' => $type]); |
|
|
|
|
|
if (isset($returnData['code'])) return $this->renderError($returnData['msg']); |
|
|
return $this->renderSuccess(compact('returnData')); |
|
|
return $this->renderSuccess(compact('returnData')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -71,6 +72,7 @@ class Passcc extends Controller |
|
|
{ |
|
|
{ |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$data = PassFlow::toDayGroupsEnterNum(null,['type' => $type]); |
|
|
$data = PassFlow::toDayGroupsEnterNum(null,['type' => $type]); |
|
|
|
|
|
if (isset($data['code'])) return $this->renderError($data['msg']); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -95,6 +97,7 @@ class Passcc extends Controller |
|
|
{ |
|
|
{ |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$data = PassFlow::getPassHoursData(null,['type' => $type]); |
|
|
$data = PassFlow::getPassHoursData(null,['type' => $type]); |
|
|
|
|
|
if (isset($data['code'])) return $this->renderError($data['msg']); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |