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
f19f39e5
Commit
f19f39e5
authored
Nov 27, 2024
by
宋源硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
2024/11/27新增和修改方法 See merge request
!468
parents
e0c90a67
3ea732a7
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
35 deletions
+32
-35
ReviewDetails.java
...-review/src/main/java/com/ruoyi/domain/ReviewDetails.java
+3
-0
ReviewKeyPoint.java
...review/src/main/java/com/ruoyi/domain/ReviewKeyPoint.java
+3
-0
ReviewScene.java
...ty-review/src/main/java/com/ruoyi/domain/ReviewScene.java
+3
-0
ReviewStandard.java
...review/src/main/java/com/ruoyi/domain/ReviewStandard.java
+3
-0
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+10
-29
ReviewDetailsMapper.xml
...-review/src/main/resources/mapper/ReviewDetailsMapper.xml
+1
-1
ReviewKeyPointMapper.xml
...review/src/main/resources/mapper/ReviewKeyPointMapper.xml
+1
-0
ReviewStandardMapper.xml
...review/src/main/resources/mapper/ReviewStandardMapper.xml
+3
-1
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+1
-1
SysUserServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysUserServiceImpl.java
+4
-3
No files found.
quality-review/src/main/java/com/ruoyi/domain/ReviewDetails.java
View file @
f19f39e5
...
...
@@ -89,4 +89,7 @@ public class ReviewDetails {
@TableField
(
exist
=
false
)
private
String
reviewKeypointText
;
@ApiModelProperty
(
"逻辑删除"
)
private
Integer
deleted
;
}
quality-review/src/main/java/com/ruoyi/domain/ReviewKeyPoint.java
View file @
f19f39e5
...
...
@@ -55,5 +55,8 @@ public class ReviewKeyPoint {
@TableField
(
exist
=
false
)
private
List
<
ReviewDetails
>
reviewDetailsList
;
@ApiModelProperty
(
"逻辑删除"
)
private
Integer
deleted
;
}
quality-review/src/main/java/com/ruoyi/domain/ReviewScene.java
View file @
f19f39e5
...
...
@@ -45,4 +45,7 @@ public class ReviewScene {
@ApiModelProperty
(
"审查细则id"
)
private
Long
reviewDetailsId
;
@ApiModelProperty
(
"逻辑删除"
)
private
Integer
deleted
;
}
quality-review/src/main/java/com/ruoyi/domain/ReviewStandard.java
View file @
f19f39e5
...
...
@@ -117,4 +117,7 @@ public class ReviewStandard {
@ApiModelProperty
(
"不符合"
)
private
String
inconformity
;
@ApiModelProperty
(
"逻辑删除"
)
private
Integer
deleted
;
}
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
f19f39e5
...
...
@@ -200,13 +200,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
TaskUserRelation
leader
=
null
;
List
<
TaskUserRelation
>
auditors
=
request
.
getAuditors
();
for
(
TaskUserRelation
auditor
:
auditors
)
{
List
<
Long
>
roleIdList
=
sysUserRoleMapper
.
selectRoleIdByUserId
(
auditor
.
getUserId
());
for
(
Long
roleId
:
roleIdList
){
if
(
roleId
.
equals
(
112L
)){
leader
=
auditor
;
auditor
.
setIsLeader
(
1
);
break
;
}
if
(
auditor
.
getIsLeader
()
==
1
){
leader
=
auditor
;
}
if
(
leader
!=
null
){
break
;
...
...
@@ -345,13 +340,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
TaskUserRelation
leader
=
null
;
List
<
TaskUserRelation
>
auditors
=
request
.
getAuditors
();
for
(
TaskUserRelation
auditor
:
auditors
)
{
List
<
Long
>
roleIdList
=
sysUserRoleMapper
.
selectRoleIdByUserId
(
auditor
.
getUserId
());
for
(
Long
roleId
:
roleIdList
){
if
(
roleId
.
equals
(
112L
)){
leader
=
auditor
;
auditor
.
setIsLeader
(
1
);
break
;
}
if
(
auditor
.
getIsLeader
()
==
1
){
leader
=
auditor
;
}
if
(
leader
!=
null
){
break
;
...
...
@@ -616,13 +606,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
TaskUserRelation
leader
=
null
;
List
<
TaskUserRelation
>
auditors
=
request
.
getAuditors
();
for
(
TaskUserRelation
auditor
:
auditors
)
{
List
<
Long
>
roleIdList
=
sysUserRoleMapper
.
selectRoleIdByUserId
(
auditor
.
getUserId
());
for
(
Long
roleId
:
roleIdList
){
if
(
roleId
.
equals
(
112L
)){
leader
=
auditor
;
auditor
.
setIsLeader
(
1
);
break
;
}
if
(
auditor
.
getIsLeader
()
==
1
){
leader
=
auditor
;
}
if
(
leader
!=
null
){
task
.
setLeaderId
(
leader
.
getUserId
());
...
...
@@ -698,13 +683,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
TaskUserRelation
leader
=
null
;
List
<
TaskUserRelation
>
auditors
=
request
.
getAuditors
();
for
(
TaskUserRelation
auditor
:
auditors
)
{
List
<
Long
>
roleIdList
=
sysUserRoleMapper
.
selectRoleIdByUserId
(
auditor
.
getUserId
());
for
(
Long
roleId
:
roleIdList
){
if
(
roleId
.
equals
(
112L
)){
leader
=
auditor
;
auditor
.
setIsLeader
(
1
);
break
;
}
if
(
auditor
.
getIsLeader
()
==
1
){
leader
=
auditor
;
}
if
(
leader
!=
null
){
task
.
setLeaderId
(
leader
.
getUserId
());
...
...
@@ -765,7 +745,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// String taskList = response.getTaskList().substring(1);
// response.setTaskList(taskList);
// }
response
.
setEnterpriseName
(
task
.
getEnterpriseName
());
response
.
setEnterpriseId
(
String
.
valueOf
(
task
.
getEnterpriseId
()));
// 小组成员
response
.
setAuditors
(
setAuditors
(
task
.
getId
()));
...
...
quality-review/src/main/resources/mapper/ReviewDetailsMapper.xml
View file @
f19f39e5
...
...
@@ -15,7 +15,7 @@
<foreach
collection=
"reviewKeyPointList"
item=
"keyPoint"
open=
"("
separator=
","
close=
")"
>
#{keyPoint.id}
</foreach>
AND deleted != 1
</select>
<select
id=
"findNoResult"
resultType=
"com.ruoyi.domain.ReviewDetails"
>
...
...
quality-review/src/main/resources/mapper/ReviewKeyPointMapper.xml
View file @
f19f39e5
...
...
@@ -10,6 +10,7 @@
<foreach
collection=
"reviewStandardList"
item=
"standard"
open=
"("
separator=
","
close=
")"
>
#{standard.id}
</foreach>
AND deleted != 1
</select>
<select
id=
"findKeyPointList"
resultType=
"com.ruoyi.domain.ReviewKeyPoint"
>
SELECT id, text, review_standard_id FROM t_review_keypoint
...
...
quality-review/src/main/resources/mapper/ReviewStandardMapper.xml
View file @
f19f39e5
...
...
@@ -36,7 +36,9 @@
</select>
<select
id=
"findListByStandardIdAndType"
resultType=
"com.ruoyi.domain.ReviewStandard"
>
SELECT id, type, chapter, text, standard_id, name, standard_no, file, conformity, inconformity FROM t_review_standard WHERE standard_id = #{standardId} AND type = #{type};
SELECT id, type, chapter, text, standard_id, name, standard_no, file, conformity, inconformity
FROM t_review_standard
WHERE standard_id = #{standardId} AND type = #{type} AND deleted != 1;
</select>
<select
id=
"selectReviewStandardList"
parameterType=
"com.ruoyi.web.request.ReviewStandardListByPageRequest"
resultType=
"com.ruoyi.web.response.ReviewStandardResponse"
>
...
...
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
f19f39e5
...
...
@@ -264,7 +264,7 @@
task_initiator_id,task_initiator,task_initiator_dept,
task_begin_time,task_end_time,create_time,
leader_id,leader,standard_id,name,
standard_no,file,task_list
standard_no,file,task_list
,enterprise_id,enterprise_name
FROM t_task
WHERE task_initiator_id = #{userId} and task_status = 'TEMPORARILY'
</select>
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
View file @
f19f39e5
...
...
@@ -634,10 +634,11 @@ public class SysUserServiceImpl implements ISysUserService
sysUserVONew
.
setRoleId
(
roleId
);
}
// 使用Stream API进行去重,基于userId字段
/*List<SysUserVO
> deduplicatedList = userList.stream()
List
<
SysUserVONew
>
deduplicatedList
=
userList
.
stream
()
.
filter
(
distinctByKey
(
user
->
user
.
getUserId
()))
.collect(Collectors.toList());*/
return
userList
;
.
collect
(
Collectors
.
toList
());
return
deduplicatedList
;
// return userList;
}
// 辅助方法,用于去重
...
...
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