更新功能

This commit is contained in:
2023-02-23 22:34:00 +08:00
parent 6885382c52
commit 4995c5b6be
18 changed files with 444 additions and 200 deletions

View File

@@ -10,7 +10,6 @@ namespace App\Services\Auth;
use App\Models\Auth\Users;
use App\Models\Auth\RolesAccess;
use think\facade\Config;
class UsersService{
@@ -36,7 +35,7 @@ class UsersService{
$q->name('user_has_roles')->where($subMap)->field('uid');
}];
}
$list = Users::with(['roles', 'department'])->where($map)->orderBy('uid')->paginate()->each(function($item){
$list = Users::with(['roles', 'department'])->where($map)->orderBy('uid')->paginate(isset($param['pageSize']) ? $param['pageSize'] : 30)->each(function($item){
$roleId = [];
$roleName = [];
$identify = [];