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
099c1c8d
Commit
099c1c8d
authored
Mar 19, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
查询进行中任务 See merge request
!197
parents
a9cd94da
f580ca43
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
TaskServiceImpl.java
...src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
+6
-0
TaskFindResponse.java
...rc/main/java/com/ruoyi/web/response/TaskFindResponse.java
+9
-0
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+4
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TaskServiceImpl.java
View file @
099c1c8d
...
...
@@ -194,6 +194,12 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
response
.
setCarReview
(
num
.
setScale
(
1
,
BigDecimal
.
ROUND_UP
).
doubleValue
());
}
}
String
[]
taskList
=
response
.
getTaskList
().
split
(
","
);
if
(
response
.
getPointer
()
<
taskList
.
length
)
{
response
.
setNextSubTask
(
taskList
[
response
.
getPointer
()]);
}
else
{
response
.
setNextSubTask
(
taskList
[
taskList
.
length
-
1
]);
}
}
return
responses
;
}
...
...
quality-review/src/main/java/com/ruoyi/web/response/TaskFindResponse.java
View file @
099c1c8d
...
...
@@ -30,6 +30,9 @@ public class TaskFindResponse {
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
modelTestTaskId
;
@ApiModelProperty
(
"下一个子任务"
)
private
String
nextSubTask
;
@ApiModelProperty
(
"标准名称(检验依据)"
)
private
String
name
;
...
...
@@ -109,4 +112,10 @@ public class TaskFindResponse {
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
private
Date
testEndTime
;
@ApiModelProperty
(
"任务列表"
)
private
String
taskList
;
@ApiModelProperty
(
"指向待执行节点的指针[0、1、2]"
)
private
int
pointer
;
}
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
099c1c8d
...
...
@@ -64,6 +64,8 @@
<result
property=
"testBeginTime"
column=
"test_begin_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"testEndTime"
column=
"test_end_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"standardNo"
column=
"standard_no"
jdbcType=
"BIGINT"
/>
<result
property=
"taskList"
column=
"task_list"
jdbcType=
"BIGINT"
/>
<result
property=
"pointer"
column=
"pointer"
jdbcType=
"BIGINT"
/>
</resultMap>
<select
id=
"findList"
parameterType=
"com.ruoyi.web.request.TaskListRequest"
resultMap=
"BaseResultMap"
>
...
...
@@ -94,6 +96,8 @@
t.task_begin_time,
t.product_model,
t.standard_no,
t.task_list,
t.pointer,
srt.task_begin_time system_task_begin_time,
srt.task_end_time system_task_end_time,
srt.task_status review_status,
...
...
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