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
f745ca00
Commit
f745ca00
authored
Jan 05, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
体系审查列表查询
parent
ef0c0031
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
3 deletions
+61
-3
SystemReviewTaskMapper.java
...rc/main/java/com/ruoyi/mapper/SystemReviewTaskMapper.java
+3
-0
SystemReviewTaskService.java
.../main/java/com/ruoyi/service/SystemReviewTaskService.java
+6
-0
SystemReviewTaskServiceImpl.java
...a/com/ruoyi/service/impl/SystemReviewTaskServiceImpl.java
+5
-0
SystemReviewTaskController.java
...c/main/java/com/ruoyi/web/SystemReviewTaskController.java
+24
-3
SystemReviewTaskFindFinishRequest.java
.../ruoyi/web/request/SystemReviewTaskFindFinishRequest.java
+8
-0
SystemReviewTaskFindInProcessRequest.java
...oyi/web/request/SystemReviewTaskFindInProcessRequest.java
+8
-0
SystemReviewTaskMapper.xml
...view/src/main/resources/mapper/SystemReviewTaskMapper.xml
+7
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/SystemReviewTaskMapper.java
View file @
f745ca00
...
...
@@ -10,4 +10,7 @@ import java.util.List;
@Repository
public
interface
SystemReviewTaskMapper
extends
BaseMapper
<
SystemReviewTask
>
{
List
<
SystemReviewTask
>
findListByStatus
(
@Param
(
"status"
)
String
status
);
// 查询处理中的任务
List
<
SystemReviewTask
>
findListInProcess
();
}
quality-review/src/main/java/com/ruoyi/service/SystemReviewTaskService.java
View file @
f745ca00
...
...
@@ -40,4 +40,10 @@ public interface SystemReviewTaskService extends IService<SystemReviewTask> {
*/
List
<
SystemReviewTask
>
findListByStatus
(
String
status
);
/**
* 查询处理中的任务
* @return
*/
List
<
SystemReviewTask
>
findListInProcess
();
}
quality-review/src/main/java/com/ruoyi/service/impl/SystemReviewTaskServiceImpl.java
View file @
f745ca00
...
...
@@ -98,6 +98,11 @@ public class SystemReviewTaskServiceImpl extends ServiceImpl<SystemReviewTaskMap
return
systemReviewTaskMapper
.
findListByStatus
(
status
);
}
@Override
public
List
<
SystemReviewTask
>
findListInProcess
()
{
return
systemReviewTaskMapper
.
findListInProcess
();
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/SystemReviewTaskController.java
View file @
f745ca00
...
...
@@ -4,11 +4,11 @@ import com.ruoyi.common.annotation.Log;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.domain.R
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.service.SystemReviewTaskService
;
import
com.ruoyi.web.request.SystemReviewTaskCreateRequest
;
import
com.ruoyi.web.request.SystemReviewTaskStartRequest
;
import
com.ruoyi.web.request.SystemReviewTaskViewRequest
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -22,6 +22,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.List
;
@Api
(
"体系审查任务"
)
@RestController
@RequestMapping
(
"/system/review/task"
)
...
...
@@ -57,4 +60,22 @@ public class SystemReviewTaskController extends BaseController {
systemReviewTaskService
.
start
(
request
);
return
R
.
ok
();
}
@ApiOperation
(
"查询处理中的任务"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findInProcess"
)
public
TableDataInfo
<
SystemReviewTask
>
findInProcess
(
@Validated
@RequestBody
SystemReviewTaskFindInProcessRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
systemReviewTaskService
.
findListInProcess
());
}
@ApiOperation
(
"查询处理完成的任务"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findInFinish"
)
public
TableDataInfo
<
SystemReviewTask
>
findInFinish
(
@Validated
@RequestBody
SystemReviewTaskFindFinishRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
systemReviewTaskService
.
findListByStatus
(
SystemReviewTask
.
STATUS_FINISH
));
}
}
quality-review/src/main/java/com/ruoyi/web/request/SystemReviewTaskFindFinishRequest.java
0 → 100644
View file @
f745ca00
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
@ApiModel
public
class
SystemReviewTaskFindFinishRequest
extends
PageDomain
{
}
quality-review/src/main/java/com/ruoyi/web/request/SystemReviewTaskFindInProcessRequest.java
0 → 100644
View file @
f745ca00
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
@ApiModel
public
class
SystemReviewTaskFindInProcessRequest
extends
PageDomain
{
}
quality-review/src/main/resources/mapper/SystemReviewTaskMapper.xml
View file @
f745ca00
...
...
@@ -25,6 +25,13 @@
<select
id=
"findListByStatus"
resultMap=
"BaseResultMap"
>
SELECT id, task_no, task_status, task_initiator, task_initiator_dept, task_result, task_begin_time, task_end_time, standard, biz_info, create_time, standard_id, name, standard_no, file
FROM t_system_review_task WHERE task_status = #{status}
ORDER BY create_time DESC
</select>
<select
id=
"findListInProcess"
resultMap=
"BaseResultMap"
>
SELECT id, task_no, task_status, task_initiator, task_initiator_dept, task_result, task_begin_time, task_end_time, standard, biz_info, create_time, standard_id, name, standard_no, file
FROM t_system_review_task WHERE task_status IN ('NEW','PENDING')
ORDER BY create_time DESC
</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