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
7c51d045
Commit
7c51d045
authored
Mar 11, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务进度限制位数
parent
579025ee
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
44 additions
and
42 deletions
+44
-42
ReviewDetailsMapper.java
...w/src/main/java/com/ruoyi/mapper/ReviewDetailsMapper.java
+1
-1
StrategyCarReviewTaskFinish.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
+4
-4
StrategyCarReviewTaskPending.java
.../com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
+4
-4
StrategyCarReviewTaskSigned.java
...a/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
+4
-4
StrategySystemReviewTaskFinish.java
...om/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
+4
-4
StrategySystemReviewTaskPending.java
...m/ruoyi/service/impl/StrategySystemReviewTaskPending.java
+4
-4
StrategySystemReviewTaskSigned.java
...om/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
+4
-4
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+14
-12
TaskStatePending.java
...rc/main/java/com/ruoyi/service/impl/TaskStatePending.java
+1
-1
TaskFindResponse.java
...rc/main/java/com/ruoyi/web/response/TaskFindResponse.java
+3
-3
ReviewDetailsMapper.xml
...-review/src/main/resources/mapper/ReviewDetailsMapper.xml
+1
-1
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewDetailsMapper.java
View file @
7c51d045
...
@@ -20,7 +20,7 @@ public interface ReviewDetailsMapper extends BaseMapper<ReviewDetails> {
...
@@ -20,7 +20,7 @@ public interface ReviewDetailsMapper extends BaseMapper<ReviewDetails> {
*/
*/
List
<
ReviewDetails
>
findNoResult
(
@Param
(
"taskId"
)
Long
taskId
,
@Param
(
"type"
)
String
type
);
List
<
ReviewDetails
>
findNoResult
(
@Param
(
"taskId"
)
Long
taskId
,
@Param
(
"type"
)
String
type
);
Long
count
(
@Param
(
"taskId"
)
Long
taskId
,
@Param
(
"type"
)
String
type
);
Double
count
(
@Param
(
"taskId"
)
Long
taskId
,
@Param
(
"type"
)
String
type
);
// 根据要点id查询细则列表
// 根据要点id查询细则列表
List
<
ReviewDetails
>
findByKeyPointId
(
@Param
(
"keyPointId"
)
Long
keyPointId
);
List
<
ReviewDetails
>
findByKeyPointId
(
@Param
(
"keyPointId"
)
Long
keyPointId
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskFinish.java
View file @
7c51d045
...
@@ -90,10 +90,10 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
...
@@ -90,10 +90,10 @@ public class StrategyCarReviewTaskFinish implements StrategyCarReviewTask, Initi
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
BigDecimal
standardPass
=
new
BigDecimal
(
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getStandards
())*
100
);
carReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
carReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getDetails
())*
100
);
carReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
carReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
carReviewTask
.
setPerson
(
relationList
.
size
());
carReviewTask
.
setPerson
(
relationList
.
size
());
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskPending.java
View file @
7c51d045
...
@@ -197,11 +197,11 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
...
@@ -197,11 +197,11 @@ public class StrategyCarReviewTaskPending implements StrategyCarReviewTask, Init
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
carReviewTask
.
setStandards
(
DataStatisticsUtils
.
calculateStandards
(
standards
));
carReviewTask
.
setStandards
(
DataStatisticsUtils
.
calculateStandards
(
standards
));
BigDecimal
standardPass
=
new
BigDecimal
(
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getStandards
())*
100
);
carReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
carReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
carReviewTask
.
setDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
carReviewTask
.
setDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
BigDecimal
detailsPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getDetails
())*
100
);
carReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
carReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
carReviewTask
.
setPerson
(
relationList
.
size
());
carReviewTask
.
setPerson
(
relationList
.
size
());
carReviewTaskMapper
.
updateById
(
carReviewTask
);
carReviewTaskMapper
.
updateById
(
carReviewTask
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategyCarReviewTaskSigned.java
View file @
7c51d045
...
@@ -124,10 +124,10 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
...
@@ -124,10 +124,10 @@ public class StrategyCarReviewTaskSigned implements StrategyCarReviewTask, Initi
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findByCarReviewTaskId
(
carReviewTask
.
getId
()));
BigDecimal
standardPass
=
new
BigDecimal
(
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getStandards
())*
100
);
carReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
carReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
carReviewTask
.
getDetails
())*
100
);
carReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
carReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
carReviewTask
.
setPerson
(
relationList
.
size
());
carReviewTask
.
setPerson
(
relationList
.
size
());
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskFinish.java
View file @
7c51d045
...
@@ -94,10 +94,10 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
...
@@ -94,10 +94,10 @@ public class StrategySystemReviewTaskFinish implements StrategySystemReviewTask,
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
BigDecimal
standardPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getStandards
())*
100
);
systemReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
systemReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getDetails
())*
100
);
systemReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
systemReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
systemReviewTask
.
setPerson
(
relationList
.
size
());
systemReviewTask
.
setPerson
(
relationList
.
size
());
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskPending.java
View file @
7c51d045
...
@@ -195,11 +195,11 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
...
@@ -195,11 +195,11 @@ public class StrategySystemReviewTaskPending implements StrategySystemReviewTask
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
systemReviewTask
.
setStandards
(
DataStatisticsUtils
.
calculateStandards
(
standards
));
systemReviewTask
.
setStandards
(
DataStatisticsUtils
.
calculateStandards
(
standards
));
BigDecimal
standardPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getStandards
())*
100
);
systemReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
systemReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
systemReviewTask
.
setDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
systemReviewTask
.
setDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
BigDecimal
detailsPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getDetails
())*
100
);
systemReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
systemReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
systemReviewTask
.
setPerson
(
relationList
.
size
());
systemReviewTask
.
setPerson
(
relationList
.
size
());
systemReviewTaskMapper
.
updateById
(
systemReviewTask
);
systemReviewTaskMapper
.
updateById
(
systemReviewTask
);
...
...
quality-review/src/main/java/com/ruoyi/service/impl/StrategySystemReviewTaskSigned.java
View file @
7c51d045
...
@@ -126,10 +126,10 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
...
@@ -126,10 +126,10 @@ public class StrategySystemReviewTaskSigned implements StrategySystemReviewTask,
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
List
<
TaskUserRelation
>
relationList
=
taskUserRelationMapper
.
selectQTeamMembers
(
taskMapper
.
findBySystemReviewTaskId
(
systemReviewTask
.
getId
()));
BigDecimal
standardPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getStandards
())*
100
);
systemReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
systemReviewTask
.
setStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
)
/
(
double
)
systemReviewTask
.
getDetails
())*
100
);
systemReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
systemReviewTask
.
setDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
systemReviewTask
.
setPerson
(
relationList
.
size
());
systemReviewTask
.
setPerson
(
relationList
.
size
());
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
7c51d045
...
@@ -180,10 +180,12 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -180,10 +180,12 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
List
<
TaskFindResponse
>
responses
=
taskMapper
.
findPending
(
request
);
List
<
TaskFindResponse
>
responses
=
taskMapper
.
findPending
(
request
);
for
(
TaskFindResponse
response
:
responses
)
{
for
(
TaskFindResponse
response
:
responses
)
{
if
(
response
.
getSystemReviewTaskId
()
!=
null
)
{
if
(
response
.
getSystemReviewTaskId
()
!=
null
)
{
response
.
setSystemReview
(
reviewDetailsMapper
.
count
(
response
.
getSystemReviewTaskId
(),
SystemReviewTask
.
TYPE
));
BigDecimal
num
=
new
BigDecimal
(((
double
)
reviewDetailsMapper
.
count
(
response
.
getSystemReviewTaskId
(),
SystemReviewTask
.
TYPE
))*
100
);
response
.
setSystemReview
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
}
}
if
(
response
.
getCarReviewTaskId
()
!=
null
)
{
if
(
response
.
getCarReviewTaskId
()
!=
null
)
{
response
.
setCarReview
(
reviewDetailsMapper
.
count
(
response
.
getCarReviewTaskId
(),
CarReviewTask
.
TYPE
));
BigDecimal
num
=
new
BigDecimal
(((
double
)
reviewDetailsMapper
.
count
(
response
.
getCarReviewTaskId
(),
CarReviewTask
.
TYPE
))
*
100
);
response
.
setCarReview
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
}
}
}
}
return
responses
;
return
responses
;
...
@@ -334,10 +336,10 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -334,10 +336,10 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
List
<
TaskFindResponse
>
responses
=
taskMapper
.
findByUserId
(
request
,
userId
);
List
<
TaskFindResponse
>
responses
=
taskMapper
.
findByUserId
(
request
,
userId
);
for
(
TaskFindResponse
response
:
responses
)
{
for
(
TaskFindResponse
response
:
responses
)
{
if
(
response
.
getSystemReviewTaskId
()
!=
null
)
{
if
(
response
.
getSystemReviewTaskId
()
!=
null
)
{
response
.
setSystemReview
(
reviewDetailsMapper
.
count
(
response
.
getSystemReviewTaskId
(),
SystemReviewTask
.
TYPE
));
response
.
setSystemReview
(
(
double
)
reviewDetailsMapper
.
count
(
response
.
getSystemReviewTaskId
(),
SystemReviewTask
.
TYPE
));
}
}
if
(
response
.
getCarReviewTaskId
()
!=
null
)
{
if
(
response
.
getCarReviewTaskId
()
!=
null
)
{
response
.
setCarReview
(
reviewDetailsMapper
.
count
(
response
.
getCarReviewTaskId
(),
CarReviewTask
.
TYPE
));
response
.
setCarReview
(
(
double
)
reviewDetailsMapper
.
count
(
response
.
getCarReviewTaskId
(),
CarReviewTask
.
TYPE
));
}
}
}
}
return
responses
;
return
responses
;
...
@@ -628,14 +630,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -628,14 +630,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
response
.
setSystemStandardsPassNum
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
));
response
.
setSystemStandardsPassNum
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
));
response
.
setSystemStandardsNoPassNum
(
DataStatisticsUtils
.
calculateStandardsNoPass
(
standards
,
resultMap
));
response
.
setSystemStandardsNoPassNum
(
DataStatisticsUtils
.
calculateStandardsNoPass
(
standards
,
resultMap
));
response
.
setSystemStandardsUnderNum
(
response
.
getSystemStandards
()
-
response
.
getSystemStandardsPassNum
()
-
response
.
getSystemStandardsNoPassNum
());
response
.
setSystemStandardsUnderNum
(
response
.
getSystemStandards
()
-
response
.
getSystemStandardsPassNum
()
-
response
.
getSystemStandardsNoPassNum
());
BigDecimal
standardPass
=
new
BigDecimal
(
response
.
getSystemStandardsPassNum
()
/
(
double
)
response
.
getSystemStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
response
.
getSystemStandardsPassNum
()
/
(
double
)
response
.
getSystemStandards
())*
100
);
response
.
setSystemStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
response
.
setSystemStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
response
.
setSystemDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
response
.
setSystemDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
response
.
setSystemDetailsPassNum
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
));
response
.
setSystemDetailsPassNum
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
));
response
.
setSystemDetailsNoPassNum
(
DataStatisticsUtils
.
calculateDetailsNoPass
(
standards
,
resultMap
));
response
.
setSystemDetailsNoPassNum
(
DataStatisticsUtils
.
calculateDetailsNoPass
(
standards
,
resultMap
));
response
.
setSystemDetailsUnderNum
(
response
.
getSystemDetails
()
-
response
.
getSystemDetailsPassNum
()
-
response
.
getSystemDetailsNoPassNum
());
response
.
setSystemDetailsUnderNum
(
response
.
getSystemDetails
()
-
response
.
getSystemDetailsPassNum
()
-
response
.
getSystemDetailsNoPassNum
());
BigDecimal
detailsPass
=
new
BigDecimal
(
response
.
getSystemDetailsPassNum
()
/
(
double
)
response
.
getSystemDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
response
.
getSystemDetailsPassNum
()
/
(
double
)
response
.
getSystemDetails
())*
100
);
response
.
setSystemDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
response
.
setSystemDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
}
}
...
@@ -646,14 +648,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -646,14 +648,14 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
response
.
setCarStandardsPassNum
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
));
response
.
setCarStandardsPassNum
(
DataStatisticsUtils
.
calculateStandardsPass
(
standards
,
resultMap
));
response
.
setCarStandardsNoPassNum
(
DataStatisticsUtils
.
calculateStandardsNoPass
(
standards
,
resultMap
));
response
.
setCarStandardsNoPassNum
(
DataStatisticsUtils
.
calculateStandardsNoPass
(
standards
,
resultMap
));
response
.
setCarStandardsUnderNum
(
response
.
getCarStandards
()
-
response
.
getCarStandardsPassNum
()
-
response
.
getCarStandardsNoPassNum
());
response
.
setCarStandardsUnderNum
(
response
.
getCarStandards
()
-
response
.
getCarStandardsPassNum
()
-
response
.
getCarStandardsNoPassNum
());
BigDecimal
standardPass
=
new
BigDecimal
(
response
.
getCarStandardsPassNum
()
/
(
double
)
response
.
getCarStandards
()
);
BigDecimal
standardPass
=
new
BigDecimal
(
(
response
.
getCarStandardsPassNum
()
/
(
double
)
response
.
getCarStandards
())*
100
);
response
.
setCarStandardsPass
(
standardPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
response
.
setCarStandardsPass
(
standardPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
response
.
setCarDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
response
.
setCarDetails
(
DataStatisticsUtils
.
calculateDetails
(
standards
));
response
.
setCarDetailsPassNum
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
));
response
.
setCarDetailsPassNum
(
DataStatisticsUtils
.
calculateDetailsPass
(
standards
,
resultMap
));
response
.
setCarDetailsNoPassNum
(
DataStatisticsUtils
.
calculateDetailsNoPass
(
standards
,
resultMap
));
response
.
setCarDetailsNoPassNum
(
DataStatisticsUtils
.
calculateDetailsNoPass
(
standards
,
resultMap
));
response
.
setCarDetailsUnderNum
(
response
.
getCarDetails
()
-
response
.
getCarDetailsPassNum
()
-
response
.
getCarDetailsNoPassNum
());
response
.
setCarDetailsUnderNum
(
response
.
getCarDetails
()
-
response
.
getCarDetailsPassNum
()
-
response
.
getCarDetailsNoPassNum
());
BigDecimal
detailsPass
=
new
BigDecimal
(
response
.
getCarDetailsPassNum
()
/
(
double
)
response
.
getCarDetails
()
);
BigDecimal
detailsPass
=
new
BigDecimal
(
(
response
.
getCarDetailsPassNum
()
/
(
double
)
response
.
getCarDetails
())*
100
);
response
.
setCarDetailsPass
(
detailsPass
.
setScale
(
3
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
*
100
);
response
.
setCarDetailsPass
(
detailsPass
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
()
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/impl/TaskStatePending.java
View file @
7c51d045
...
@@ -52,7 +52,7 @@ public class TaskStatePending extends TaskStateAdapter implements TaskState, Ini
...
@@ -52,7 +52,7 @@ public class TaskStatePending extends TaskStateAdapter implements TaskState, Ini
@Override
@Override
public
void
doSubmit
(
Task
task
)
{
public
void
doSubmit
(
Task
task
)
{
long
subTaskCount
=
0
;
Double
subTaskCount
=
0.
0
;
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
SystemReviewTask
systemReviewTask
=
systemReviewTaskMapper
.
selectById
(
task
.
getSystemReviewTaskId
());
...
...
quality-review/src/main/java/com/ruoyi/web/response/TaskFindResponse.java
View file @
7c51d045
...
@@ -62,7 +62,7 @@ public class TaskFindResponse {
...
@@ -62,7 +62,7 @@ public class TaskFindResponse {
private
String
reviewStatus
;
private
String
reviewStatus
;
@ApiModelProperty
(
"体系审查任务进度"
)
@ApiModelProperty
(
"体系审查任务进度"
)
private
Long
systemReview
;
private
Double
systemReview
;
@ApiModelProperty
(
"体系问卷任务开始时间"
)
@ApiModelProperty
(
"体系问卷任务开始时间"
)
private
Date
systemTaskBeginTime
;
private
Date
systemTaskBeginTime
;
...
@@ -74,7 +74,7 @@ public class TaskFindResponse {
...
@@ -74,7 +74,7 @@ public class TaskFindResponse {
private
String
carReviewStatus
;
private
String
carReviewStatus
;
@ApiModelProperty
(
"车型审查任务进度"
)
@ApiModelProperty
(
"车型审查任务进度"
)
private
Long
carReview
;
private
Double
carReview
;
@ApiModelProperty
(
"车辆问卷任务开始时间"
)
@ApiModelProperty
(
"车辆问卷任务开始时间"
)
private
Date
carTaskBeginTime
;
private
Date
carTaskBeginTime
;
...
@@ -86,5 +86,5 @@ public class TaskFindResponse {
...
@@ -86,5 +86,5 @@ public class TaskFindResponse {
private
String
carTestStatus
;
private
String
carTestStatus
;
@ApiModelProperty
(
"测试任务进度"
)
@ApiModelProperty
(
"测试任务进度"
)
private
Long
carTest
;
private
Double
carTest
;
}
}
quality-review/src/main/resources/mapper/ReviewDetailsMapper.xml
View file @
7c51d045
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
AND trs.type = #{type}
AND trs.type = #{type}
</select>
</select>
<select
id=
"count"
resultType=
"
long
"
>
<select
id=
"count"
resultType=
"
double
"
>
SELECT
SELECT
IFNULL((SELECT COUNT(*) FROM t_review_details_result WHERE task_id = #{taskId}), 0) /
IFNULL((SELECT COUNT(*) FROM t_review_details_result WHERE task_id = #{taskId}), 0) /
IFNULL((SELECT COUNT(*) FROM t_review_details trd
IFNULL((SELECT COUNT(*) FROM t_review_details trd
...
...
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