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
7e263db0
Commit
7e263db0
authored
Jan 08, 2024
by
王飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat
1、增加车辆审查中,问卷相关的代码结构。 Reference N/A
parent
f784ff31
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
0 deletions
+124
-0
CarReviewTaskService.java
...src/main/java/com/ruoyi/service/CarReviewTaskService.java
+46
-0
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+36
-0
CarReviewTaskController.java
.../src/main/java/com/ruoyi/web/CarReviewTaskController.java
+11
-0
CarReviewTaskCreateRequest.java
...ava/com/ruoyi/web/request/CarReviewTaskCreateRequest.java
+4
-0
CarReviewTaskStartRequest.java
...java/com/ruoyi/web/request/CarReviewTaskStartRequest.java
+10
-0
CarReviewTaskSubmitRequest.java
...ava/com/ruoyi/web/request/CarReviewTaskSubmitRequest.java
+17
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/CarReviewTaskService.java
View file @
7e263db0
...
...
@@ -2,6 +2,8 @@ package com.ruoyi.service;
import
com.ruoyi.domain.CarReviewTask
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
java.util.List
;
...
...
@@ -12,6 +14,50 @@ import java.util.List;
*/
public
interface
CarReviewTaskService
extends
IService
<
CarReviewTask
>
{
/**
* 根据问卷状态查询进行中的任务
* @param reviewStatus
* @return
*/
List
<
CarReviewTask
>
findListByReviewStatus
(
String
reviewStatus
);
/**
* 创建一个车辆审查任务
*/
void
createTask
(
CarReviewTaskCreateRequest
request
);
/**
* 查看车辆审查任务
* @param taskId
* @return
*/
SystemReviewTaskViewResponse
view
(
Long
taskId
);
/**
* 开始一个车辆审查任务中的问卷任务
*/
void
startReviewTask
(
CarReviewTaskStartRequest
request
);
/**
* 提交一个车辆审查任务中的问卷任务
* @param request
*/
void
submitReviewTask
(
CarReviewTaskSubmitRequest
request
);
/**
* 根据状态查找车辆审查任务
* @return
*/
List
<
CarReviewTask
>
findListByStatus
(
String
status
);
/**
* 查询处理中的任务
* @return
*/
List
<
CarReviewTask
>
findListInProcess
();
}
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
7e263db0
...
...
@@ -4,8 +4,13 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.service.CarReviewTaskService
;
import
com.ruoyi.mapper.CarReviewTaskMapper
;
import
com.ruoyi.web.request.CarReviewTaskCreateRequest
;
import
com.ruoyi.web.request.CarReviewTaskStartRequest
;
import
com.ruoyi.web.request.CarReviewTaskSubmitRequest
;
import
com.ruoyi.web.response.SystemReviewTaskViewResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
...
...
@@ -14,6 +19,7 @@ import java.util.List;
* @description 针对表【t_car_review_task(车型审查任务)】的数据库操作Service实现
* @createDate 2024-01-08 13:14:13
*/
@Transactional
@Service
public
class
CarReviewTaskServiceImpl
extends
ServiceImpl
<
CarReviewTaskMapper
,
CarReviewTask
>
implements
CarReviewTaskService
{
...
...
@@ -25,6 +31,36 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
public
List
<
CarReviewTask
>
findListByReviewStatus
(
String
reviewStatus
)
{
return
carReviewTaskMapper
.
findListByReviewStatus
(
reviewStatus
);
}
@Override
public
void
createTask
(
CarReviewTaskCreateRequest
request
)
{
}
@Override
public
SystemReviewTaskViewResponse
view
(
Long
taskId
)
{
return
null
;
}
@Override
public
void
startReviewTask
(
CarReviewTaskStartRequest
request
)
{
}
@Override
public
void
submitReviewTask
(
CarReviewTaskSubmitRequest
request
)
{
}
@Override
public
List
<
CarReviewTask
>
findListByStatus
(
String
status
)
{
return
null
;
}
@Override
public
List
<
CarReviewTask
>
findListInProcess
()
{
return
null
;
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/CarReviewTaskController.java
0 → 100644
View file @
7e263db0
package
com
.
ruoyi
.
web
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@Api
(
"车辆审查任务"
)
@RestController
@RequestMapping
(
"/car/review/task"
)
public
class
CarReviewTaskController
{
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskCreateRequest.java
0 → 100644
View file @
7e263db0
package
com
.
ruoyi
.
web
.
request
;
public
class
CarReviewTaskCreateRequest
{
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskStartRequest.java
0 → 100644
View file @
7e263db0
package
com
.
ruoyi
.
web
.
request
;
import
lombok.Data
;
@Data
public
class
CarReviewTaskStartRequest
{
private
Long
taskId
;
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskSubmitRequest.java
0 → 100644
View file @
7e263db0
package
com
.
ruoyi
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"CarReviewTaskSubmitRequest"
,
description
=
"提交车辆审查问卷"
)
@Data
public
class
CarReviewTaskSubmitRequest
{
@ApiModelProperty
(
"任务id"
)
private
Long
taskId
;
@ApiModelProperty
(
"图片地址"
)
private
String
imagesUrl
;
}
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