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
4e3c804f
Commit
4e3c804f
authored
Jan 22, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询处理中总任务&处理完成总任务
parent
a16f6728
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
26 deletions
+40
-26
TaskFindFinishRequest.java
...ain/java/com/ruoyi/web/request/TaskFindFinishRequest.java
+2
-5
TaskFindPendingRequest.java
...in/java/com/ruoyi/web/request/TaskFindPendingRequest.java
+2
-5
TaskFindPendingResponse.java
.../java/com/ruoyi/web/response/TaskFindPendingResponse.java
+23
-6
TaskMapper.xml
quality-review/src/main/resources/mapper/TaskMapper.xml
+13
-10
No files found.
quality-review/src/main/java/com/ruoyi/web/request/TaskFindFinishRequest.java
View file @
4e3c804f
...
...
@@ -11,11 +11,8 @@ import java.util.Date;
@Data
public
class
TaskFindFinishRequest
extends
PageDomain
{
@ApiModelProperty
(
"任务编号"
)
private
String
taskNo
;
@ApiModelProperty
(
"名称关键词"
)
private
String
taskName
;
@ApiModelProperty
(
"任务编号或名称关键词"
)
private
String
taskNoOrName
;
@ApiModelProperty
(
"任务开始时间"
)
private
Date
taskBeginTime
;
...
...
quality-review/src/main/java/com/ruoyi/web/request/TaskFindPendingRequest.java
View file @
4e3c804f
...
...
@@ -11,11 +11,8 @@ import java.util.Date;
@Data
public
class
TaskFindPendingRequest
extends
PageDomain
{
@ApiModelProperty
(
"任务编号"
)
private
String
taskNo
;
@ApiModelProperty
(
"名称关键词"
)
private
String
taskName
;
@ApiModelProperty
(
"任务编号或名称关键词"
)
private
String
taskNoOrName
;
@ApiModelProperty
(
"任务开始时间"
)
private
Date
taskBeginTime
;
...
...
quality-review/src/main/java/com/ruoyi/web/response/TaskFindPendingResponse.java
View file @
4e3c804f
...
...
@@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@ApiModel
(
value
=
"TaskFindPendingResponse"
,
description
=
"进行中的总任务"
)
@Data
public
class
TaskFindPendingResponse
{
...
...
@@ -30,6 +32,9 @@ public class TaskFindPendingResponse {
@ApiModelProperty
(
"任务状态(NEW、PENDING、FINISH)"
)
private
String
taskStatus
;
@ApiModelProperty
(
"总任务开始时间"
)
private
Date
taskBeginTime
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@ApiModelProperty
(
"审核组长id"
)
private
Long
leaderId
;
...
...
@@ -40,18 +45,30 @@ public class TaskFindPendingResponse {
@ApiModelProperty
(
"体系审查任务状态"
)
private
String
reviewStatus
;
@ApiModelProperty
(
"车型审查任务状态"
)
private
String
carReviewStatus
;
@ApiModelProperty
(
"测试任务状态"
)
private
String
carTestStatus
;
@ApiModelProperty
(
"体系审查任务进度"
)
private
Long
systemReview
;
@ApiModelProperty
(
"体系问卷任务开始时间"
)
private
Date
systemTaskBeginTime
;
@ApiModelProperty
(
"体系问卷任务开始时间"
)
private
Date
systemTaskEndTime
;
@ApiModelProperty
(
"车型审查任务状态"
)
private
String
carReviewStatus
;
@ApiModelProperty
(
"车型审查任务进度"
)
private
Long
carReview
;
@ApiModelProperty
(
"车辆问卷任务开始时间"
)
private
Date
carTaskBeginTime
;
@ApiModelProperty
(
"车辆问卷任务开始时间"
)
private
Date
carTaskEndTime
;
@ApiModelProperty
(
"测试任务状态"
)
private
String
carTestStatus
;
@ApiModelProperty
(
"测试任务进度"
)
private
Long
carTest
;
}
quality-review/src/main/resources/mapper/TaskMapper.xml
View file @
4e3c804f
...
...
@@ -48,6 +48,11 @@
<result
property=
"taskNo"
column=
"task_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskName"
column=
"task_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskStatus"
column=
"task_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"taskBeginTime"
column=
"task_begin_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"systemTaskBeginTime"
column=
"system_task_begin_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"systemTaskEndTime"
column=
"system_task_end_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"carTaskBeginTime"
column=
"car_task_begin_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"carTaskEndTime"
column=
"car_task_end_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"leaderId"
column=
"leader_id"
jdbcType=
"BIGINT"
/>
<result
property=
"leader"
column=
"leader"
jdbcType=
"VARCHAR"
/>
<result
property=
"reviewStatus"
column=
"review_status"
jdbcType=
"VARCHAR"
/>
...
...
@@ -82,7 +87,11 @@
t.task_no,t.task_name,t.task_status,
t.leader_id,t.leader,
t.task_begin_time,
srt.task_begin_time system_task_begin_time,
srt.task_end_time system_task_end_time,
srt.task_status review_status,
crt.review_start_time car_task_begin_time,
crt.review_submit_time car_task_end_time,
crt.review_status car_review_status,
crt.test_status car_test_status
FROM t_task t
...
...
@@ -90,11 +99,8 @@
left join t_car_review_task crt on t.car_review_task_id = crt.id
<where>
t.task_status IN ("NEW","PENDING")
<if
test=
"taskNo != null and taskNo != ''"
>
and t.task_no = #{taskNo}
</if>
<if
test=
"taskName != null and taskName != ''"
>
and t.task_name like concat('%',#{taskName},'%')
<if
test=
"taskNoOrName != null and taskNoOrName != ''"
>
and (t.task_no = #{taskNoOrName} || t.task_name like concat('%',#{taskNoOrName},'%'))
</if>
<if
test=
"taskBeginTime != null and taskBeginTime != ''"
>
and t.task_begin_time = #{taskBeginTime}
...
...
@@ -112,11 +118,8 @@
FROM t_task t
<where>
t.task_status IN ("FINISH")
<if
test=
"taskNo != null and taskNo != ''"
>
and t.task_no = #{taskNo}
</if>
<if
test=
"taskName != null and taskName != ''"
>
and t.task_name like concat('%',#{taskName},'%')
<if
test=
"taskNoOrName != null and taskNoOrName != ''"
>
and (t.task_no = #{taskNoOrName} || t.task_name like concat('%',#{taskNoOrName},'%'))
</if>
<if
test=
"taskBeginTime != null and taskBeginTime != ''"
>
and t.task_begin_time = #{taskBeginTime}
...
...
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