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
57d07b73
Commit
57d07b73
authored
Jan 08, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建车辆审查任务
parent
fd9778dd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
CarReviewTaskServiceImpl.java
...java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
+1
-0
CarReviewTaskController.java
.../src/main/java/com/ruoyi/web/CarReviewTaskController.java
+30
-1
CarReviewTaskCreateRequest.java
...ava/com/ruoyi/web/request/CarReviewTaskCreateRequest.java
+8
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/CarReviewTaskServiceImpl.java
View file @
57d07b73
...
...
@@ -83,6 +83,7 @@ public class CarReviewTaskServiceImpl extends ServiceImpl<CarReviewTaskMapper, C
.
setLeaderId
(
leader
.
getUserId
())
.
setLeader
(
leader
.
getName
())
.
setCreateTime
(
new
Date
())
.
setTaskBeginTime
(
new
Date
())
.
setStandardId
(
standard
.
getId
())
.
setName
(
standard
.
getName
())
.
setStandardNo
(
standard
.
getStandardNo
())
...
...
quality-review/src/main/java/com/ruoyi/web/CarReviewTaskController.java
View file @
57d07b73
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.enums.BusinessType
;
import
com.ruoyi.service.CarReviewTaskService
;
import
com.ruoyi.web.request.CarReviewTaskCreateRequest
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
import
org.apache.skywalking.apm.toolkit.trace.Tags
;
import
org.apache.skywalking.apm.toolkit.trace.Trace
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
@Api
(
"车辆审查任务"
)
@RestController
@RequestMapping
(
"/car/review/task"
)
public
class
CarReviewTaskController
{
public
class
CarReviewTaskController
extends
BaseController
{
@Autowired
private
CarReviewTaskService
carReviewTaskService
;
@ApiOperation
(
"创建车辆审查任务"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"车辆审查任务"
,
businessType
=
BusinessType
.
INSERT
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/create"
)
public
R
<
String
>
create
(
@Validated
@RequestBody
CarReviewTaskCreateRequest
request
)
{
carReviewTaskService
.
createTask
(
request
);
return
R
.
ok
();
}
}
quality-review/src/main/java/com/ruoyi/web/request/CarReviewTaskCreateRequest.java
View file @
57d07b73
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.domain.ReviewTaskUserRelation
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
(
value
=
"CarReviewTaskCreateRequest"
,
description
=
"创建车辆审查任务"
)
@Data
public
class
CarReviewTaskCreateRequest
{
@ApiModelProperty
(
"占位"
)
private
String
bizInfo
;
@ApiModelProperty
(
"小组信息"
)
private
List
<
ReviewTaskUserRelation
>
auditors
;
/**
* 是否创建车型问卷审查任务
*/
@ApiModelProperty
(
"是否创建车型问卷审查任务"
)
private
Boolean
review
;
/**
* 是否创建车型测试任务
*/
@ApiModelProperty
(
"是否创建车型测试任务"
)
private
Boolean
test
;
/**
* 标准id
* 根据哪个标准新建的审查任务
*/
@ApiModelProperty
(
"标准id(根据哪个标准新建的审查任务)"
)
private
Long
standardId
;
}
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