fix:部门管理员查询bug
This commit is contained in:
1 parent
9160668c11
commit
f3ebae2ef4
2 files changed
+3
-1
No files matched your search
+1
@@ -64,6 +64,7 @@ public class SysUserTransactionController {
|
||||
@PreAuthorize("@pms.hasPermission('admin_sysUserTransaction_view')")
|
||||
public R pageJoin(@ParameterObject Page page, @ParameterObject SysUserTransactionDto dto) {
|
||||
DataScope dataScope = new DataScope();
|
||||
dataScope.setScopeDeptName("applyUserDeptId");
|
||||
return R.ok(sysUserTransactionService.scopePageJoin(page, dto, dataScope));
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -87,7 +87,8 @@
|
||||
u.name as username,
|
||||
u.phone as userMobile,
|
||||
u.avatar as userAvatar,
|
||||
applyU.name as applyUsername
|
||||
applyU.name as applyUsername,
|
||||
applyU.dept_id as applyUserDeptId
|
||||
from sys_user_transaction a
|
||||
left join sys_dept soureD on soureD.dept_id = a.source_dept_id
|
||||
left join sys_dept targetD on targetD.dept_id = a.target_dept_id
|
||||
|
||||
Reference in new issue
Block a user