更新
This commit is contained in:
1 parent
a37870c93b
commit
d8e43f9e93
63 files changed
+2169
-230
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\services\auth;
|
||||
|
||||
use app\model\auth\Departments;
|
||||
|
||||
class DepartmentService{
|
||||
|
||||
public function getDepartmentList($request){
|
||||
$param = $request->param();
|
||||
$map = [];
|
||||
if(isset($param['keyword']) && $param['keyword']){
|
||||
$map[] = ['title', 'LIKE', '%' . $param['keyword'] . '%'];
|
||||
}
|
||||
return Departments::where($map)->auth()->order('sort asc,id desc')->select();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user