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
97ed5b01
Commit
97ed5b01
authored
Jul 08, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangdingyi' into 'dev'
直接新增场景&删除场景 See merge request
!406
parents
49bff061
7a5a407b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
0 deletions
+54
-0
ReviewSceneService.java
...w/src/main/java/com/ruoyi/service/ReviewSceneService.java
+5
-0
ReviewSceneServiceImpl.java
...n/java/com/ruoyi/service/impl/ReviewSceneServiceImpl.java
+9
-0
ReviewSceneController.java
...ew/src/main/java/com/ruoyi/web/ReviewSceneController.java
+27
-0
ReviewSceneDelRequest.java
...ain/java/com/ruoyi/web/request/ReviewSceneDelRequest.java
+13
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/ReviewSceneService.java
View file @
97ed5b01
...
...
@@ -25,4 +25,9 @@ public interface ReviewSceneService extends IService<ReviewScene> {
List
<
ReviewScene
>
findList
(
ReviewSceneFindListRequest
request
);
/**
* 新增场景
* @param reviewScene
*/
void
addReviewScene
(
ReviewScene
reviewScene
);
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneServiceImpl.java
View file @
97ed5b01
...
...
@@ -39,4 +39,13 @@ public class ReviewSceneServiceImpl extends ServiceImpl<ReviewSceneMapper, Revie
return
reviewSceneMapper
.
findList
(
request
);
}
/**
* 新增场景
* @param reviewScene
*/
@Override
public
void
addReviewScene
(
ReviewScene
reviewScene
)
{
save
(
reviewScene
);
}
}
quality-review/src/main/java/com/ruoyi/web/ReviewSceneController.java
View file @
97ed5b01
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.ReviewScene
;
import
com.ruoyi.service.ReviewSceneService
;
import
com.ruoyi.web.request.*
;
...
...
@@ -34,4 +37,28 @@ public class ReviewSceneController extends BaseController {
return
getDataTable
(
reviewSceneService
.
findList
(
request
));
}
@ApiOperation
(
"新建场景"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"新建场景"
,
businessType
=
BusinessType
.
INSERT
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/add"
)
public
R
<
String
>
add
(
@Validated
@RequestBody
ReviewScene
reviewScene
)
{
reviewSceneService
.
addReviewScene
(
reviewScene
);
return
R
.
ok
();
}
@ApiOperation
(
"删除场景"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"删除场景"
,
businessType
=
BusinessType
.
DELETE
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/remove"
)
public
R
<
String
>
remove
(
@Validated
@RequestBody
ReviewSceneDelRequest
request
)
{
reviewSceneService
.
removeById
(
request
.
getId
());
return
R
.
ok
();
}
}
quality-review/src/main/java/com/ruoyi/web/request/ReviewSceneDelRequest.java
0 → 100644
View file @
97ed5b01
package
com
.
ruoyi
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"ReviewSceneDelResult"
,
description
=
"删除场景"
)
@Data
public
class
ReviewSceneDelRequest
{
@ApiModelProperty
(
"ID"
)
private
Long
id
;
}
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