|
...
|
...
|
@@ -21,7 +21,8 @@ class DeptLogic extends BaseLogic |
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/21 14:56
|
|
|
|
*/
|
|
|
|
public function DeptLists($map,$page,$row,$order = 'created_at',$filed = ['id','pid','title','sort','created_at','remark']){
|
|
|
|
public function DeptLists($map,$page,$row,$order = 'created_at'){
|
|
|
|
$filed = ['id','pid','title','sort','created_at','remark'];
|
|
|
|
$lists = $this->model->lists($map,$page,$row,$order,$filed);
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
...
|
...
|
@@ -34,7 +35,8 @@ class DeptLogic extends BaseLogic |
|
|
|
* @time :2023/6/21 15:01
|
|
|
|
*/
|
|
|
|
public function DeptRead(){
|
|
|
|
$info = $this->model->read($this->param,['id','pid','title','created_at','remark']);
|
|
|
|
$filed = ['id','pid','title','sort','created_at','remark'];
|
|
|
|
$info = $this->model->read($this->param,$filed);
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前数据不存在,或者被删除');
|
|
|
|
}
|
...
|
...
|
|