This commit is contained in:
weiz 2024-05-30 11:04:20 +08:00
parent 3fdce4ef4c
commit 2a657f66af
2 changed files with 0 additions and 6 deletions

View File

@ -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);
} }

View File

@ -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);
} }