Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
169b0865
Commit
169b0865
authored
Jul 03, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
查询检验人员列表 See merge request
!399
parents
2e064def
3ba048b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
SysUserController.java
...va/com/ruoyi/web/controller/system/SysUserController.java
+20
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
View file @
169b0865
...
@@ -62,6 +62,16 @@ public class SysUserController extends BaseController
...
@@ -62,6 +62,16 @@ public class SysUserController extends BaseController
@Autowired
@Autowired
private
ISysPostService
postService
;
private
ISysPostService
postService
;
/**
* 主检角色id
*/
private
static
final
Long
PRIMARY_INSPECTION
=
112L
;
/**
* 检验员角色id
*/
private
static
final
Long
INSPECTION
=
106L
;
/**
/**
* 获取用户列表
* 获取用户列表
*/
*/
...
@@ -96,6 +106,16 @@ public class SysUserController extends BaseController
...
@@ -96,6 +106,16 @@ public class SysUserController extends BaseController
}
}
}
}
@ApiOperation
(
"通过角色名获取用户信息"
)
@PostMapping
(
"/getUserByRoleInspection"
)
public
R
<
List
<
SysUser
>>
getUserByRoleInspection
()
{
List
<
SysUser
>
PrimaryInspectionList
=
userService
.
selectUserByRoleInDept
(
PRIMARY_INSPECTION
);
List
<
SysUser
>
InspectionList
=
userService
.
selectUserByRoleInDept
(
INSPECTION
);
List
<
SysUser
>
list
=
(
List
<
SysUser
>)
CollUtil
.
addAll
(
PrimaryInspectionList
,
InspectionList
);
return
R
.
ok
(
list
);
}
/**
/**
* 获取主检验人员列表
* 获取主检验人员列表
* @return
* @return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment