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
c0f611b1
Commit
c0f611b1
authored
Mar 11, 2024
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.91isoft.com:90/wangfei/vehicle-quality-review
into gaoying
parents
90ce24af
4077aff2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
18 deletions
+30
-18
DataStatisticsUtils.java
...w/src/main/java/com/ruoyi/common/DataStatisticsUtils.java
+2
-2
StrategyCarReviewTaskSigned.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
+1
-0
StrategySystemReviewTaskSigned.java
...om/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
+1
-0
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 @
c0f611b1
...
@@ -62,8 +62,8 @@ public class DataStatisticsUtils {
...
@@ -62,8 +62,8 @@ public class DataStatisticsUtils {
isPass
=
false
;
isPass
=
false
;
}
}
if
(
passed
==
ReviewStandard
.
PASSED
)
{
if
(
passed
==
ReviewStandard
.
NO_
PASSED
)
{
isPass
=
fals
e
;
isPass
=
tru
e
;
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
View file @
c0f611b1
...
@@ -54,6 +54,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -54,6 +54,7 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
@Override
@Override
public
CarReviewTaskViewResponse
doView
(
CarReviewTask
carReviewTask
)
{
public
CarReviewTaskViewResponse
doView
(
CarReviewTask
carReviewTask
)
{
CarReviewTaskViewResponse
response
=
new
CarReviewTaskViewResponse
();
CarReviewTaskViewResponse
response
=
new
CarReviewTaskViewResponse
();
carReviewTask
.
setImagesUrl
(
"/vehicle-quality-review-oss/2024/03/04/qianzi1_20240304104011A001.jpg,/vehicle-quality-review-oss/2024/03/04/qianzi2_20240304104121A002.jpg"
);
response
.
setCarReviewTask
(
carReviewTask
);
response
.
setCarReviewTask
(
carReviewTask
);
return
response
;
return
response
;
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
View file @
c0f611b1
...
@@ -96,6 +96,7 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
...
@@ -96,6 +96,7 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
@Override
@Override
public
SystemReviewTaskViewResponse
doView
(
SystemReviewTask
systemReviewTask
)
{
public
SystemReviewTaskViewResponse
doView
(
SystemReviewTask
systemReviewTask
)
{
SystemReviewTaskViewResponse
response
=
new
SystemReviewTaskViewResponse
();
SystemReviewTaskViewResponse
response
=
new
SystemReviewTaskViewResponse
();
systemReviewTask
.
setImagesUrl
(
"/vehicle-quality-review-oss/2024/03/04/qianzi1_20240304104011A001.jpg,/vehicle-quality-review-oss/2024/03/04/qianzi2_20240304104121A002.jpg"
);
response
.
setSystemReviewTask
(
systemReviewTask
);
response
.
setSystemReviewTask
(
systemReviewTask
);
return
response
;
return
response
;
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
c0f611b1
...
@@ -582,32 +582,42 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -582,32 +582,42 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
public
DataStatisticsResponse
dataStatistics
(
TaskGetInfoRequest
request
)
{
public
DataStatisticsResponse
dataStatistics
(
TaskGetInfoRequest
request
)
{
Task
task
=
taskMapper
.
selectById
(
request
.
getId
());
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
)
{
// 获取最新问卷
CarReviewTask
carReviewTask
=
carReviewTaskMapper
.
selectById
(
task
.
getCarReviewTaskId
());
List
<
ReviewStandard
>
standardTree
=
reviewStandardService
.
findTree
(
systemReviewTask
.
getStandardId
(),
ReviewStandard
.
TYPE_SYSTEM
);
// 获取当前问卷答案
// 获取最新问卷
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
);
// 获取当前问卷答案
return
response
;
List
<
ReviewDetailsResult
>
carResults
=
reviewDetailsResultService
.
findByTaskId
(
carReviewTask
.
getId
());
}
// 车型审查
return
null
;
setCarDataStatistics
(
carStandardTree
,
carResults
,
response
);
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