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
742629c6
Commit
742629c6
authored
Jan 09, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据状态查找车辆审查任务
parent
17b83466
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
12 deletions
+43
-12
CarReviewTaskMapper.java
...w/src/main/java/com/ruoyi/mapper/CarReviewTaskMapper.java
+2
-0
CarReviewTaskService.java
...src/main/java/com/ruoyi/service/CarReviewTaskService.java
+0
-6
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+1
-5
CarReviewTaskController.java
.../src/main/java/com/ruoyi/web/CarReviewTaskController.java
+19
-0
CarReviewTaskFindFinishRequest.java
...com/ruoyi/web/request/CarReviewTaskFindFinishRequest.java
+8
-0
CarReviewTaskFindPendingRequest.java
...om/ruoyi/web/request/CarReviewTaskFindPendingRequest.java
+8
-0
CarReviewTaskMapper.xml
...-review/src/main/resources/mapper/CarReviewTaskMapper.xml
+5
-1
No files found.
quality-review/src/main/java/com/ruoyi/mapper/CarReviewTaskMapper.java
View file @
742629c6
...
...
@@ -17,6 +17,8 @@ import java.util.List;
public
interface
CarReviewTaskMapper
extends
BaseMapper
<
CarReviewTask
>
{
List
<
CarReviewTask
>
findListByReviewStatus
(
@Param
(
"reviewStatus"
)
String
reviewStatus
);
List
<
CarReviewTask
>
findListByTaskStatus
(
@Param
(
"taskStatus"
)
String
taskStatus
);
}
...
...
quality-review/src/main/java/com/ruoyi/service/CarReviewTaskService.java
View file @
742629c6
...
...
@@ -53,12 +53,6 @@ public interface CarReviewTaskService extends IService<CarReviewTask> {
*/
List
<
CarReviewTask
>
findListByStatus
(
String
status
);
/**
* 查询处理中的任务
* @return
*/
List
<
CarReviewTask
>
findListInProcess
();
}
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
742629c6
...
...
@@ -138,13 +138,9 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
@Override
public
List
<
CarReviewTask
>
findListByStatus
(
String
status
)
{
return
null
;
return
carReviewTaskMapper
.
findListByTaskStatus
(
status
)
;
}
@Override
public
List
<
CarReviewTask
>
findListInProcess
()
{
return
null
;
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/CarReviewTaskController.java
View file @
742629c6
...
...
@@ -3,7 +3,9 @@ package com.ruoyi.web;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.R
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.service.CarReviewTaskService
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.response.CarReviewTaskViewResponse
;
...
...
@@ -65,5 +67,22 @@ public class CarReviewTaskController extends BaseController {
return
R
.
ok
();
}
@ApiOperation
(
"查询处理中的任务"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findPending"
)
public
TableDataInfo
<
CarReviewTask
>
findPending
(
@Validated
@RequestBody
CarReviewTaskFindPendingRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
carReviewTaskService
.
findListByStatus
(
CarReviewTask
.
TASK_STATUS_PENDING
));
}
@ApiOperation
(
"查询处理完成的任务"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findFinish"
)
public
TableDataInfo
<
CarReviewTask
>
findFinish
(
@Validated
@RequestBody
CarReviewTaskFindFinishRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
carReviewTaskService
.
findListByStatus
(
CarReviewTask
.
TASK_STATUS_FINISH
));
}
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskFindFinishRequest.java
0 → 100644
View file @
742629c6
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
@ApiModel
public
class
CarReviewTaskFindFinishRequest
extends
PageDomain
{
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskFindPendingRequest.java
0 → 100644
View file @
742629c6
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
@ApiModel
public
class
CarReviewTaskFindPendingRequest
extends
PageDomain
{
}
quality-review/src/main/resources/mapper/CarReviewTaskMapper.xml
View file @
742629c6
...
...
@@ -46,6 +46,10 @@
</sql>
<select
id=
"findListByReviewStatus"
resultType=
"com.ruoyi.domain.CarReviewTask"
>
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,biz_info,create_time,leader_id,leader,standard_id,name,standard_no,file,review_status,test_status,review_start_time,review_submit_time,review_submit_id,review_submit_name,review_result
FROM t_system_review_task WHERE review_status = #{reviewStatus} AND task_status = 'PENDING'
FROM t_car_review_task WHERE review_status = #{reviewStatus} AND task_status = 'PENDING'
</select>
<select
id=
"findListByTaskStatus"
resultType=
"com.ruoyi.domain.CarReviewTask"
>
SELECT id,task_no,task_status,task_initiator,task_initiator_dept,task_result,task_begin_time,task_end_time,standard,biz_info,create_time,leader_id,leader,standard_id,name,standard_no,file,review_status,test_status,review_start_time,review_submit_time,review_submit_id,review_submit_name,review_result
FROM t_car_review_task WHERE task_status = #{taskStatus}
</select>
</mapper>
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