update
This commit is contained in:
parent
3fdce4ef4c
commit
2a657f66af
@ -103,9 +103,6 @@ class DeptController extends BaseAdminController
|
|||||||
public function listToOrg(): \think\response\Json
|
public function listToOrg(): \think\response\Json
|
||||||
{
|
{
|
||||||
$params = $this->request->get(['org_id']);
|
$params = $this->request->get(['org_id']);
|
||||||
if(empty($params['org_id'])){
|
|
||||||
return $this->fail('参数错误');
|
|
||||||
}
|
|
||||||
$data = Dept::field('id,name,mobile,status')->where('org_id',$params['org_id'])->where('status',0)->select()->toArray();
|
$data = Dept::field('id,name,mobile,status')->where('org_id',$params['org_id'])->where('status',0)->select()->toArray();
|
||||||
return $this->success('请求成功',$data);
|
return $this->success('请求成功',$data);
|
||||||
}
|
}
|
||||||
|
@ -104,9 +104,6 @@ class JobsController extends BaseAdminController
|
|||||||
public function listToDept(): \think\response\Json
|
public function listToDept(): \think\response\Json
|
||||||
{
|
{
|
||||||
$params = $this->request->get(['dept_id']);
|
$params = $this->request->get(['dept_id']);
|
||||||
if(empty($params['dept_id'])){
|
|
||||||
return $this->fail('参数错误');
|
|
||||||
}
|
|
||||||
$data = Jobs::field('id,name,status,sort,create_time')->where('dept_id',$params['dept_id'])->where('status',0)->select()->toArray();
|
$data = Jobs::field('id,name,status,sort,create_time')->where('dept_id',$params['dept_id'])->where('status',0)->select()->toArray();
|
||||||
return $this->success('请求成功',$data);
|
return $this->success('请求成功',$data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user