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
4077aff2
Commit
4077aff2
authored
Mar 11, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
数据统计 See merge request
!152
parents
db18e1a2
dcc9db2f
Changes
2
Hide 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 @
4077aff2
...
...
@@ -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 @
4077aff2
...
...
@@ -582,32 +582,42 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
public
DataStatisticsResponse
dataStatistics
(
TaskGetInfoRequest
request
)
{
Task
task
=
taskMapper
.
selectById
(
request
.
getId
());
DataStatisticsResponse
response
=
new
DataStatisticsResponse
();
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
if
(
task
.
getSystemReviewTaskId
()
!=
null
)
{
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
// 获取最新问卷
List
<
ReviewStandard
>
standardTree
=
reviewStandardService
.
findTree
(
systemReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_SYSTEM
);
DataStatisticsResponse
response
=
new
DataStatisticsResponse
();
// 获取当前问卷答案
List
<
ReviewDetailsResult
>
results
=
reviewDetailsResultService
.
findByTaskId
(
systemReviewTask
.
getId
());
// 体系审查
setSystemDataStatistics
(
standardTree
,
results
,
response
);
return
response
;
}
if
(
task
.
getCarReviewTaskId
()
!=
null
)
{
// 获取最新问卷
List
<
ReviewStandard
>
standardTree
=
reviewStandardService
.
findTree
(
systemReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_SYSTEM
);
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
// 获取当前问卷答案
List
<
ReviewDetailsResult
>
results
=
reviewDetailsResultService
.
findByTaskId
(
systemReviewTask
.
getId
()
);
// 获取最新问卷
List
<
ReviewStandard
>
carStandardTree
=
reviewStandardService
.
findTree
(
carReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_CAR
);
// 体系审查
setSystemDataStatistics
(
standardTree
,
results
,
response
);
// 获取当前问卷答案
List
<
ReviewDetailsResult
>
carResults
=
reviewDetailsResultService
.
findByTaskId
(
carReviewTask
.
getId
()
);
// 获取最新问卷
List
<
ReviewStandard
>
carStandardTree
=
reviewStandardService
.
findTree
(
carReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_CAR
);
// 车型审查
setCarDataStatistics
(
carStandardTree
,
carResults
,
response
);
// 获取当前问卷答案
List
<
ReviewDetailsResult
>
carResults
=
reviewDetailsResultService
.
findByTaskId
(
carReviewTask
.
getId
());
return
response
;
}
// 车型审查
setCarDataStatistics
(
carStandardTree
,
carResults
,
response
);
return
null
;
return
response
;
}
...
...
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