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
2b7e8f9b
Commit
2b7e8f9b
authored
Dec 03, 2024
by
宋源硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
2024/12/3修改接口 See merge request
!474
parents
d9a4e3ba
ac84656a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
SysUserController.java
...va/com/ruoyi/web/controller/system/SysUserController.java
+3
-1
SysUserVONew.java
...rc/main/java/com/ruoyi/system/domain/vo/SysUserVONew.java
+2
-1
SysUserMapper.java
.../src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
+1
-1
ISysUserService.java
...c/main/java/com/ruoyi/system/service/ISysUserService.java
+1
-2
SysUserServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysUserServiceImpl.java
+3
-3
SysUserMapper.xml
...system/src/main/resources/mapper/system/SysUserMapper.xml
+7
-3
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
View file @
2b7e8f9b
...
...
@@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletResponse;
import
cn.hutool.core.collection.CollUtil
;
import
com.ruoyi.common.core.domain.R
;
import
com.ruoyi.domain.Sample
;
import
com.ruoyi.system.domain.vo.SysUserVO
;
import
com.ruoyi.system.domain.vo.SysUserVONew
;
import
com.ruoyi.system.request.InspectionRequest
;
...
...
@@ -140,7 +141,8 @@ public class SysUserController extends BaseController
@ApiOperation
(
"获取检验人员列表新"
)
@PostMapping
(
"/getInspectionNew"
)
public
R
<
List
<
SysUserVONew
>>
getInspectionNew
()
{
return
R
.
ok
(
userService
.
getInspectionNew
());
SysUserVONew
s
=
new
SysUserVONew
();
return
R
.
ok
(
userService
.
getInspectionNew
(
s
));
}
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"param1"
,
value
=
"arg[1]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/SysUserVONew.java
View file @
2b7e8f9b
package
com
.
ruoyi
.
system
.
domain
.
vo
;
import
com.ruoyi.common.core.domain.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
...
...
@@ -8,7 +9,7 @@ import java.util.List;
@Data
@Accessors
(
chain
=
true
)
public
class
SysUserVONew
{
public
class
SysUserVONew
extends
BaseEntity
{
@ApiModelProperty
(
"用户id"
)
private
Long
userId
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
View file @
2b7e8f9b
...
...
@@ -166,5 +166,5 @@ public interface SysUserMapper
* 获取检验人员列表
* @return
*/
List
<
SysUserVONew
>
getInspectionNew
();
List
<
SysUserVONew
>
getInspectionNew
(
SysUserVONew
s
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java
View file @
2b7e8f9b
...
...
@@ -4,7 +4,6 @@ import java.util.List;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.system.domain.vo.SysUserVO
;
import
com.ruoyi.system.domain.vo.SysUserVONew
;
import
com.ruoyi.system.request.InspectionRequest
;
/**
* 用户 业务层
...
...
@@ -241,5 +240,5 @@ public interface ISysUserService
*/
List
<
SysUserVO
>
getInspection
();
List
<
SysUserVONew
>
getInspectionNew
();
List
<
SysUserVONew
>
getInspectionNew
(
SysUserVONew
s
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
View file @
2b7e8f9b
...
...
@@ -10,7 +10,6 @@ import com.ruoyi.system.domain.vo.SysUserVO;
import
com.ruoyi.system.domain.vo.SysUserVONew
;
import
com.ruoyi.system.domain.vo.UserCountVo
;
import
com.ruoyi.system.mapper.*
;
import
com.ruoyi.system.request.InspectionRequest
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -627,8 +626,9 @@ public class SysUserServiceImpl implements ISysUserService
* @return
*/
@Override
public
List
<
SysUserVONew
>
getInspectionNew
()
{
List
<
SysUserVONew
>
userList
=
userMapper
.
getInspectionNew
();
@DataScope
(
deptAlias
=
"d"
)
public
List
<
SysUserVONew
>
getInspectionNew
(
SysUserVONew
s
)
{
List
<
SysUserVONew
>
userList
=
userMapper
.
getInspectionNew
(
s
);
for
(
SysUserVONew
sysUserVONew
:
userList
){
List
<
Long
>
roleId
=
userRoleMapper
.
selectRoleIdByUserId
(
sysUserVONew
.
getUserId
());
sysUserVONew
.
setRoleId
(
roleId
);
...
...
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
View file @
2b7e8f9b
...
...
@@ -261,12 +261,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and u.del_flag = '0'
</select>
<select
id=
"getInspectionNew"
resultType=
"com.ruoyi.system.domain.vo.SysUserVONew"
>
select u.user_id,u.user_name,u.nick_name,u.status,u.del_flag,
s
d.dept_name
select u.user_id,u.user_name,u.nick_name,u.status,u.del_flag, d.dept_name
from sys_user u
left join sys_user_role sr on u.user_id = sr.user_id
left join sys_dept sd on sd.dept_id = u.dept_id
where sr.role_id IN (106, 112)
left join sys_dept d on d.dept_id = u.dept_id
where
'a'='a'
${params.dataScope}
and sr.role_id IN (106, 112)
and u.del_flag = '0'
</select>
</mapper>
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