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
48f6a29f
Commit
48f6a29f
authored
Mar 11, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询用户任务
parent
b4f67da5
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
-2
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+2
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
48f6a29f
...
@@ -341,10 +341,12 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
...
@@ -341,10 +341,12 @@ 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
((
double
)
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
((
double
)
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
;
...
...
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
48f6a29f
...
@@ -130,6 +130,7 @@
...
@@ -130,6 +130,7 @@
t.task_no,t.task_name,t.task_status,t.name,
t.task_no,t.task_name,t.task_status,t.name,
t.product_model,
t.product_model,
t.standard_no,
t.standard_no,
t.task_list,
t.leader_id,t.leader,
t.leader_id,t.leader,
t.task_begin_time,t.task_end_time
t.task_begin_time,t.task_end_time
FROM t_task t
FROM t_task t
...
@@ -216,6 +217,7 @@
...
@@ -216,6 +217,7 @@
t.task_no,t.task_name,t.task_status,t.name,
t.task_no,t.task_name,t.task_status,t.name,
t.standard_no,
t.standard_no,
t.product_model,
t.product_model,
t.task_list,
t.leader_id,t.leader,
t.leader_id,t.leader,
t.task_begin_time,t.task_end_time
t.task_begin_time,t.task_end_time
FROM t_task t
FROM t_task t
...
...
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