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
107ea8c2
Commit
107ea8c2
authored
Jun 17, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
数据统计 See merge request
!367
parents
327b3b4c
28e4f3ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
52 deletions
+58
-52
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+58
-52
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
107ea8c2
...
@@ -871,35 +871,38 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -871,35 +871,38 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
Integer
unprocessedNum
=
0
;
Integer
unprocessedNum
=
0
;
for
(
CaseStatisticsVO
vo
:
statisticsVOList
)
{
if
(
statisticsVOList
!=
null
)
{
// 忽略
for
(
CaseStatisticsVO
vo
:
statisticsVOList
)
{
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"IGNORED"
))
{
// 忽略
ignoredNum
=
vo
.
getCount
();
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"IGNORED"
))
{
}
ignoredNum
=
vo
.
getCount
();
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PASSED"
))
{
}
// 测试通过
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PASSED"
))
{
response
.
setTestDetailsPassNum
(
vo
.
getCount
());
// 测试通过
}
response
.
setTestDetailsPassNum
(
vo
.
getCount
());
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"FAILED"
))
{
}
// 测试未通过
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"FAILED"
))
{
response
.
setTestDetailsNoPassNum
(
vo
.
getCount
());
// 测试未通过
response
.
setTestDetailsNoPassNum
(
vo
.
getCount
());
}
// 处理中
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PROCESSING"
))
{
processingNum
=
vo
.
getCount
();
}
// 未处理
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"UNPROCESSED"
))
{
unprocessedNum
=
vo
.
getCount
();
}
}
}
// 处理中
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PROCESSING"
))
{
processingNum
=
vo
.
getCount
();
}
// 未处理
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"UNPROCESSED"
))
{
unprocessedNum
=
vo
.
getCount
();
}
}
// 执行未完成
// 执行未完成
response
.
setTestDetailsUnderNum
(
processingNum
+
unprocessedNum
);
response
.
setTestDetailsUnderNum
(
processingNum
+
unprocessedNum
);
// 测试通过率
BigDecimal
num
=
new
BigDecimal
(((
double
)
response
.
getTestDetailsPassNum
()
/
response
.
getTestDetails
())
*
100
);
response
.
setTestDetailsPass
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
}
// 测试通过率
BigDecimal
num
=
new
BigDecimal
(((
double
)
response
.
getTestDetailsPassNum
()
/
response
.
getTestDetails
())
*
100
);
response
.
setTestDetailsPass
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
}
}
// 合规维度
// 合规维度
...
@@ -915,35 +918,38 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -915,35 +918,38 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
Integer
unprocessedNum
=
0
;
Integer
unprocessedNum
=
0
;
for
(
CaseStatisticsVO
vo
:
statisticsVOList
)
{
if
(
statisticsVOList
!=
null
)
{
// 忽略
for
(
CaseStatisticsVO
vo
:
statisticsVOList
)
{
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"IGNORED"
))
{
// 忽略
ignoredNum
=
vo
.
getCount
();
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"IGNORED"
))
{
}
ignoredNum
=
vo
.
getCount
();
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PASSED"
))
{
}
// 测试通过
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PASSED"
))
{
response
.
setTestStandardsPassNum
(
vo
.
getCount
());
// 测试通过
}
response
.
setTestStandardsPassNum
(
vo
.
getCount
());
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"FAILED"
))
{
}
// 测试未通过
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"FAILED"
))
{
response
.
setTestStandardsNoPassNum
(
vo
.
getCount
());
// 测试未通过
response
.
setTestStandardsNoPassNum
(
vo
.
getCount
());
}
// 处理中
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PROCESSING"
))
{
processingNum
=
vo
.
getCount
();
}
// 未处理
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"UNPROCESSED"
))
{
unprocessedNum
=
vo
.
getCount
();
}
}
}
// 处理中
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"PROCESSING"
))
{
processingNum
=
vo
.
getCount
();
}
// 未处理
if
(
Objects
.
equals
(
vo
.
getStatus
(),
"UNPROCESSED"
))
{
unprocessedNum
=
vo
.
getCount
();
}
}
// 执行未完成
// 执行未完成
response
.
setTestStandardsUnderNum
(
processingNum
+
unprocessedNum
);
response
.
setTestStandardsUnderNum
(
processingNum
+
unprocessedNum
);
// 测试通过率
BigDecimal
num
=
new
BigDecimal
(((
double
)
response
.
getTestStandardsPassNum
()
/
response
.
getTestStandards
())
*
100
);
response
.
setTestStandardsPass
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
}
// 测试通过率
BigDecimal
num
=
new
BigDecimal
(((
double
)
response
.
getTestStandardsPassNum
()
/
response
.
getTestStandards
())
*
100
);
response
.
setTestStandardsPass
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
}
}
}
}
...
...
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