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
54e2d682
Commit
54e2d682
authored
Mar 11, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据统计
parent
2976b5c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
18 deletions
+28
-18
DataStatisticsUtils.java
...w/src/main/java/com/ruoyi/common/DataStatisticsUtils.java
+2
-2
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+26
-16
No files found.
quality-review/src/main/java/com/ruoyi/common/DataStatisticsUtils.java
View file @
54e2d682
...
...
@@ -62,8 +62,8 @@ public class DataStatisticsUtils {
isPass
=
false
;
}
if
(
passed
==
ReviewStandard
.
PASSED
)
{
isPass
=
fals
e
;
if
(
passed
==
ReviewStandard
.
NO_
PASSED
)
{
isPass
=
tru
e
;
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
54e2d682
...
...
@@ -582,13 +582,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
public
DataStatisticsResponse
dataStatistics
(
TaskGetInfoRequest
request
)
{
Task
task
=
taskMapper
.
selectById
(
request
.
getId
());
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
DataStatisticsResponse
response
=
new
DataStatisticsResponse
();
if
(
task
.
getSystemReviewTaskId
()
!=
null
)
{
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
// 获取最新问卷
List
<
ReviewStandard
>
standardTree
=
reviewStandardService
.
findTree
(
systemReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_SYSTEM
);
...
...
@@ -598,6 +596,13 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// 体系审查
setSystemDataStatistics
(
standardTree
,
results
,
response
);
return
response
;
}
if
(
task
.
getCarReviewTaskId
()
!=
null
)
{
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
// 获取最新问卷
List
<
ReviewStandard
>
carStandardTree
=
reviewStandardService
.
findTree
(
carReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_CAR
);
...
...
@@ -608,6 +613,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
setCarDataStatistics
(
carStandardTree
,
carResults
,
response
);
return
response
;
}
return
null
;
}
...
...
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