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
d5e1be0b
Commit
d5e1be0b
authored
Jan 26, 2024
by
王飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangfei' into 'dev'
1、代码结构优化。 See merge request
!63
parents
621bcde3
80c5ae07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
16 deletions
+32
-16
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+32
-16
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
d5e1be0b
...
...
@@ -98,32 +98,48 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
task
.
setProductionEnterprise
(
automobileEnterprise
.
getEnterpriseName
());
BeanUtils
.
copyBeanProp
(
task
,
request
);
Long
systemReviewTaskId
=
null
;
Long
carReviewTaskId
=
null
;
String
nextNode
=
null
;
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_SRAIF
))
{
task
.
setNextNode
(
Task
.
SUB_TASK_SRAIF
);
// 保存体系审查任务
systemReviewTaskId
=
saveSystemReview
(
request
,
initiator
,
standard
,
leader
);
}
else
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_GRFIS
))
{
task
.
setNextNode
(
Task
.
SUB_TASK_GRFIS
);
}
else
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_TRFIS
))
{
task
.
setNextNode
(
Task
.
SUB_TASK_TRFIS
);
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_TRFIS
))
{
nextNode
=
Task
.
SUB_TASK_TRFIS
;
}
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_GRFIS
))
{
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_GRFIS
))
{
// 保存车型审查问卷任务
carReviewTaskId
=
saveCarReview
(
request
,
initiator
,
standard
,
leader
);
nextNode
=
Task
.
SUB_TASK_GRFIS
;;
task
.
setCarReviewTaskId
(
saveCarReview
(
request
,
initiator
,
standard
,
leader
));
}
if
(
request
.
getTaskList
().
contains
(
Task
.
SUB_TASK_SRAIF
))
{
// 保存体系审查任务
nextNode
=
Task
.
SUB_TASK_SRAIF
;
task
.
setSystemReviewTaskId
(
saveSystemReview
(
request
,
initiator
,
standard
,
leader
));
}
task
.
setCarReviewTaskId
(
carReviewTaskId
);
task
.
setSystemReviewTaskId
(
systemReviewTaskId
);
// if (request.getTaskList().contains(Task.SUB_TASK_SRAIF)) {
// task.setNextNode(Task.SUB_TASK_SRAIF);
// // 保存体系审查任务
// systemReviewTaskId = saveSystemReview(request,initiator,standard,leader);
// } else if (request.getTaskList().contains(Task.SUB_TASK_GRFIS)) {
// task.setNextNode(Task.SUB_TASK_GRFIS);
// } else if (request.getTaskList().contains(Task.SUB_TASK_TRFIS)) {
// task.setNextNode(Task.SUB_TASK_TRFIS);
// }
//
// if (request.getTaskList().contains(Task.SUB_TASK_GRFIS)) {
// // 保存车型审查问卷任务
// carReviewTaskId = saveCarReview(request,initiator,standard,leader);
// }
//
// task.setCarReviewTaskId(carReviewTaskId);
// task.setSystemReviewTaskId(systemReviewTaskId);
task
.
setNextNode
(
nextNode
);
taskService
.
save
(
task
);
// 构建并保存该任务所关联的审核组信息
for
(
TaskUserRelation
auditor
:
auditors
)
{
auditor
.
setTaskId
(
task
.
getId
());
}
taskUserRelationService
.
saveBatch
(
auditors
);
}
...
...
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