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
50866d25
Commit
50866d25
authored
May 14, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
dev - master 14 See merge request
!336
parents
2bc84676
92f821c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+4
-0
ReviewDetailsMapper.xml
...-review/src/main/resources/mapper/ReviewDetailsMapper.xml
+2
-2
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
50866d25
...
@@ -1082,6 +1082,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -1082,6 +1082,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
for
(
ResultCountResponse
response
:
carResponseList
)
{
for
(
ResultCountResponse
response
:
carResponseList
)
{
if
(
Objects
.
equals
(
response
.
getTaskStatus
(),
CarReviewTask
.
TASK_STATUS_FINISH
))
{
if
(
Objects
.
equals
(
response
.
getTaskStatus
(),
CarReviewTask
.
TASK_STATUS_FINISH
))
{
response
.
setSchedule
(
100.0
);
response
.
setSchedule
(
100.0
);
}
else
if
(
Objects
.
equals
(
response
.
getTaskStatus
(),
CarReviewTask
.
TASK_STATUS_SIGNED
))
{
response
.
setSchedule
(
90.0
);
}
else
{
}
else
{
BigDecimal
num
=
new
BigDecimal
(
response
.
getSchedule
());
BigDecimal
num
=
new
BigDecimal
(
response
.
getSchedule
());
response
.
setSchedule
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
response
.
setSchedule
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
...
@@ -1111,6 +1113,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -1111,6 +1113,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
for
(
ResultCountResponse
response
:
responseLists
)
{
for
(
ResultCountResponse
response
:
responseLists
)
{
if
(
Objects
.
equals
(
response
.
getTaskStatus
(),
SystemReviewTask
.
STATUS_FINISH
))
{
if
(
Objects
.
equals
(
response
.
getTaskStatus
(),
SystemReviewTask
.
STATUS_FINISH
))
{
response
.
setSchedule
(
100.0
);
response
.
setSchedule
(
100.0
);
}
else
if
(
Objects
.
equals
(
response
.
getTaskStatus
(),
SystemReviewTask
.
STATUS_SIGNED
))
{
response
.
setSchedule
(
90.0
);
}
else
{
}
else
{
BigDecimal
num
=
new
BigDecimal
(
response
.
getSchedule
());
BigDecimal
num
=
new
BigDecimal
(
response
.
getSchedule
());
response
.
setSchedule
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
response
.
setSchedule
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
...
...
quality-review/src/main/resources/mapper/ReviewDetailsMapper.xml
View file @
50866d25
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
(SELECT COUNT(*) FROM t_review_details trd
(SELECT COUNT(*) FROM t_review_details trd
INNER JOIN t_review_keypoint trk ON trk.id = trd.review_keypoint_id
INNER JOIN t_review_keypoint trk ON trk.id = trd.review_keypoint_id
INNER JOIN t_review_standard trs ON trs.id = trk.review_standard_id
INNER JOIN t_review_standard trs ON trs.id = trk.review_standard_id
WHERE trs.type = #{type}),
WHERE trs.type = #{type}
and trs.standard_id = #{task.standardId}
),
1
1
)) * 90 AS schedule,
)) * 90 AS schedule,
ts.task_status AS taskStatus
ts.task_status AS taskStatus
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
(SELECT COUNT(*) FROM t_review_details trd
(SELECT COUNT(*) FROM t_review_details trd
INNER JOIN t_review_keypoint trk ON trk.id = trd.review_keypoint_id
INNER JOIN t_review_keypoint trk ON trk.id = trd.review_keypoint_id
INNER JOIN t_review_standard trs ON trs.id = trk.review_standard_id
INNER JOIN t_review_standard trs ON trs.id = trk.review_standard_id
WHERE trs.type = #{type}),
WHERE trs.type = #{type}
and trs.standard_id = #{task.standardId}
),
1
1
)) * 90 AS schedule,
)) * 90 AS schedule,
tc.task_status AS taskStatus
tc.task_status AS taskStatus
...
...
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