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
4cee23c5
Commit
4cee23c5
authored
Feb 26, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看标准详情
parent
bd5cf129
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
4 deletions
+33
-4
StandardService.java
...view/src/main/java/com/ruoyi/service/StandardService.java
+3
-0
StandardServiceImpl.java
...main/java/com/ruoyi/service/impl/StandardServiceImpl.java
+6
-0
StandardController.java
...eview/src/main/java/com/ruoyi/web/StandardController.java
+12
-4
StandardGetInfoRequest.java
...in/java/com/ruoyi/web/request/StandardGetInfoRequest.java
+12
-0
No files found.
quality-review/src/main/java/com/ruoyi/service/StandardService.java
View file @
4cee23c5
...
@@ -3,6 +3,7 @@ package com.ruoyi.service;
...
@@ -3,6 +3,7 @@ package com.ruoyi.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardGetInfoRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
java.util.List
;
import
java.util.List
;
...
@@ -19,4 +20,6 @@ public interface StandardService extends IService<Standard> {
...
@@ -19,4 +20,6 @@ public interface StandardService extends IService<Standard> {
Standard
findListById
(
Long
id
);
Standard
findListById
(
Long
id
);
void
editStandard
(
StandardEditRequest
request
);
void
editStandard
(
StandardEditRequest
request
);
Standard
getInfo
(
StandardGetInfoRequest
request
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/StandardServiceImpl.java
View file @
4cee23c5
...
@@ -6,6 +6,7 @@ import com.ruoyi.domain.Standard;
...
@@ -6,6 +6,7 @@ import com.ruoyi.domain.Standard;
import
com.ruoyi.mapper.StandardMapper
;
import
com.ruoyi.mapper.StandardMapper
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardGetInfoRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -48,4 +49,9 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
...
@@ -48,4 +49,9 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
BeanUtils
.
copyBeanProp
(
standard
,
request
);
BeanUtils
.
copyBeanProp
(
standard
,
request
);
standardService
.
updateById
(
standard
);
standardService
.
updateById
(
standard
);
}
}
@Override
public
Standard
getInfo
(
StandardGetInfoRequest
request
)
{
return
standardMapper
.
selectById
(
request
.
getId
());
}
}
}
quality-review/src/main/java/com/ruoyi/web/StandardController.java
View file @
4cee23c5
...
@@ -7,11 +7,9 @@ import com.ruoyi.common.core.page.TableDataInfo;
...
@@ -7,11 +7,9 @@ import com.ruoyi.common.core.page.TableDataInfo;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.service.StandardService
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskFindPendingRequest
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.request.StandardEditRequest
;
import
com.ruoyi.web.request.StandardListRequest
;
import
com.ruoyi.web.request.TaskEditRequest
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
com.ruoyi.web.response.ReviewSceneChangeTaskResponse
;
import
com.ruoyi.web.response.TaskGetInfoResponse
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
import
org.apache.skywalking.apm.toolkit.trace.Tag
;
...
@@ -54,4 +52,14 @@ public class StandardController extends BaseController {
...
@@ -54,4 +52,14 @@ public class StandardController extends BaseController {
standardService
.
editStandard
(
request
);
standardService
.
editStandard
(
request
);
return
R
.
ok
();
return
R
.
ok
();
}
}
@ApiOperation
(
"查看标准详情"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getInfo"
)
public
R
<
Standard
>
getInfo
(
@Validated
@RequestBody
StandardGetInfoRequest
request
)
{
Standard
standard
=
standardService
.
getInfo
(
request
);
return
R
.
ok
(
standard
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/request/StandardGetInfoRequest.java
0 → 100644
View file @
4cee23c5
package
com
.
ruoyi
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"StandardListRequest"
,
description
=
"查询标准详情"
)
@Data
public
class
StandardGetInfoRequest
{
@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