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
98b38be8
Commit
98b38be8
authored
Apr 18, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑任务组长变化
parent
d705683c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+27
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
98b38be8
...
...
@@ -309,6 +309,10 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// 构建并保存任务信息
// 总任务
Task
task
=
taskMapper
.
selectById
(
request
.
getId
());
// 小组组长是否发生变化
changeSubLeader
(
task
,
leader
);
task
.
setLeaderId
(
leader
.
getUserId
());
task
.
setLeader
(
leader
.
getName
());
setTaskList
(
request
.
getTaskList
(),
task
);
...
...
@@ -776,6 +780,29 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
}
private
void
changeSubLeader
(
Task
task
,
TaskUserRelation
leader
)
{
if
(!
Objects
.
equals
(
task
.
getLeaderId
(),
leader
.
getUserId
()))
{
if
(
task
.
getSystemReviewTaskId
()
!=
null
)
{
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
systemReviewTask
.
setLeaderId
(
leader
.
getUserId
());
systemReviewTask
.
setLeader
(
leader
.
getName
());
systemReviewTaskMapper
.
updateById
(
systemReviewTask
);
}
if
(
task
.
getCarReviewTaskId
()
!=
null
)
{
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
carReviewTask
.
setLeaderId
(
leader
.
getUserId
());
carReviewTask
.
setLeader
(
leader
.
getName
());
carReviewTaskMapper
.
updateById
(
carReviewTask
);
}
if
(
task
.
getModelTestTaskId
()
!=
null
)
{
ModelTestTask
modelTestTask
=
modelTestTaskMapper
.
selectById
(
task
.
getModelTestTaskId
());
modelTestTask
.
setLeaderId
(
leader
.
getUserId
());
modelTestTask
.
setLeader
(
leader
.
getName
());
modelTestTaskMapper
.
updateById
(
modelTestTask
);
}
}
}
private
void
setFinishLeader
(
List
<
UserNameResponse
>
responseList
,
List
<
Task
>
taskList
)
{
if
(
responseList
!=
null
&&
responseList
.
size
()
!=
0
)
{
...
...
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