|
|
@ -26,8 +26,8 @@ class Passcc extends Controller |
|
|
public function allGroupTimeNum() |
|
|
public function allGroupTimeNum() |
|
|
{ |
|
|
{ |
|
|
$granularity = $this->request->param('granularity'); |
|
|
$granularity = $this->request->param('granularity'); |
|
|
$groupsId = $this->request->param('groupsId'); |
|
|
$type = $this->request->param('type'); |
|
|
$res = PassFlow::allGroupTimeNum(['granularity' => $granularity, 'groupsId' => $groupsId]); |
|
|
$res = PassFlow::allGroupTimeNum(['granularity' => $granularity, 'type' => $type]); |
|
|
if (empty($res['code'])) $this->renderError($res['msg']); |
|
|
if (empty($res['code'])) $this->renderError($res['msg']); |
|
|
$data = $res['data']; |
|
|
$data = $res['data']; |
|
|
return $this->renderSuccess(compact('data')); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
@ -42,8 +42,8 @@ class Passcc extends Controller |
|
|
*/ |
|
|
*/ |
|
|
public function allGroupNum() |
|
|
public function allGroupNum() |
|
|
{ |
|
|
{ |
|
|
$groupsId = $this->request->param('groupsId') ?: ''; |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$returnData = PassFlow::allGroupNum(null,['groupsId' => $groupsId]); |
|
|
$returnData = PassFlow::allGroupNum(null,['type' => $type]); |
|
|
return $this->renderSuccess(compact('returnData')); |
|
|
return $this->renderSuccess(compact('returnData')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -69,8 +69,8 @@ class Passcc extends Controller |
|
|
*/ |
|
|
*/ |
|
|
public function toDayGroupsEnterNum() |
|
|
public function toDayGroupsEnterNum() |
|
|
{ |
|
|
{ |
|
|
$groupsId = $this->request->param('groupsId') ?: ''; |
|
|
$type = $this->request->param('type') ?: ''; |
|
|
$data = PassFlow::toDayGroupsEnterNum(null,['groupsId' => $groupsId]); |
|
|
$data = PassFlow::toDayGroupsEnterNum(null,['type' => $type]); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
return $this->renderSuccess(compact('data')); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|