Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-api
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
中汽研标准应用数据库
car-database-api
Commits
6b0c7a22
Commit
6b0c7a22
authored
Sep 04, 2024
by
yuanshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按照最新版原型增加接口
1./review/scene/change/task/getSceneListAll 获取所有场景
parent
a3e21667
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
4 deletions
+73
-4
ReviewSceneMapper.java
...iew/src/main/java/com/ruoyi/mapper/ReviewSceneMapper.java
+3
-0
ReviewSceneService.java
...w/src/main/java/com/ruoyi/service/ReviewSceneService.java
+6
-0
ReviewSceneServiceImpl.java
...n/java/com/ruoyi/service/impl/ReviewSceneServiceImpl.java
+9
-0
ReviewSceneChangeTaskController.java
...n/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
+18
-4
GetSceneListRequest.java
.../main/java/com/ruoyi/web/request/GetSceneListRequest.java
+13
-0
GetSceneListResponse.java
...ain/java/com/ruoyi/web/response/GetSceneListResponse.java
+19
-0
ReviewSceneMapper.xml
...ty-review/src/main/resources/mapper/ReviewSceneMapper.xml
+5
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewSceneMapper.java
View file @
6b0c7a22
...
@@ -5,6 +5,7 @@ import com.ruoyi.domain.ReviewDetails;
...
@@ -5,6 +5,7 @@ import com.ruoyi.domain.ReviewDetails;
import
com.ruoyi.domain.ReviewScene
;
import
com.ruoyi.domain.ReviewScene
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.web.request.ReviewSceneFindListRequest
;
import
com.ruoyi.web.request.ReviewSceneFindListRequest
;
import
com.ruoyi.web.response.GetSceneListResponse
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -19,4 +20,6 @@ public interface ReviewSceneMapper extends BaseMapper<ReviewScene> {
...
@@ -19,4 +20,6 @@ public interface ReviewSceneMapper extends BaseMapper<ReviewScene> {
// 查询场景列表
// 查询场景列表
List
<
ReviewScene
>
findList
(
ReviewSceneFindListRequest
request
);
List
<
ReviewScene
>
findList
(
ReviewSceneFindListRequest
request
);
List
<
GetSceneListResponse
>
getSceneListById
(
@Param
(
"id"
)
Long
id
);
}
}
quality-review/src/main/java/com/ruoyi/service/ReviewSceneService.java
View file @
6b0c7a22
...
@@ -5,6 +5,7 @@ import com.ruoyi.domain.ReviewDetails;
...
@@ -5,6 +5,7 @@ import com.ruoyi.domain.ReviewDetails;
import
com.ruoyi.domain.ReviewScene
;
import
com.ruoyi.domain.ReviewScene
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.web.request.ReviewSceneFindListRequest
;
import
com.ruoyi.web.request.ReviewSceneFindListRequest
;
import
com.ruoyi.web.response.GetSceneListResponse
;
import
java.util.List
;
import
java.util.List
;
...
@@ -30,4 +31,9 @@ public interface ReviewSceneService extends IService<ReviewScene> {
...
@@ -30,4 +31,9 @@ public interface ReviewSceneService extends IService<ReviewScene> {
* @param reviewScene
* @param reviewScene
*/
*/
void
addReviewScene
(
ReviewScene
reviewScene
);
void
addReviewScene
(
ReviewScene
reviewScene
);
/*
* 获取所有场景列表
* */
List
<
GetSceneListResponse
>
getSceneListById
(
Long
id
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewSceneServiceImpl.java
View file @
6b0c7a22
...
@@ -7,6 +7,7 @@ import com.ruoyi.domain.ReviewSceneChangeTask;
...
@@ -7,6 +7,7 @@ import com.ruoyi.domain.ReviewSceneChangeTask;
import
com.ruoyi.mapper.ReviewSceneMapper
;
import
com.ruoyi.mapper.ReviewSceneMapper
;
import
com.ruoyi.service.ReviewSceneService
;
import
com.ruoyi.service.ReviewSceneService
;
import
com.ruoyi.web.request.ReviewSceneFindListRequest
;
import
com.ruoyi.web.request.ReviewSceneFindListRequest
;
import
com.ruoyi.web.response.GetSceneListResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -48,4 +49,12 @@ public class ReviewSceneServiceImpl extends ServiceImpl<ReviewSceneMapper, Revie
...
@@ -48,4 +49,12 @@ public class ReviewSceneServiceImpl extends ServiceImpl<ReviewSceneMapper, Revie
save
(
reviewScene
);
save
(
reviewScene
);
}
}
/*
* 获取所有场景列表
* */
@Override
public
List
<
GetSceneListResponse
>
getSceneListById
(
Long
id
)
{
return
reviewSceneMapper
.
getSceneListById
(
id
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/ReviewSceneChangeTaskController.java
View file @
6b0c7a22
...
@@ -9,10 +9,7 @@ import com.ruoyi.common.enums.BusinessType;
...
@@ -9,10 +9,7 @@ import com.ruoyi.common.enums.BusinessType;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.common.utils.bean.BeanUtils
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewKeyPoint
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.service.ReviewDetailsService
;
import
com.ruoyi.service.*
;
import
com.ruoyi.service.ReviewSceneChangeTaskService
;
import
com.ruoyi.service.ReviewStandardService
;
import
com.ruoyi.service.ReviewUsecaseService
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskCreateRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskCreateRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskPassRequest
;
import
com.ruoyi.web.request.ReviewSceneChangeTaskPassRequest
;
import
com.ruoyi.web.response.*
;
import
com.ruoyi.web.response.*
;
...
@@ -50,6 +47,9 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -50,6 +47,9 @@ public class ReviewSceneChangeTaskController extends BaseController {
@Autowired
@Autowired
private
ReviewDetailsService
reviewDetailsService
;
private
ReviewDetailsService
reviewDetailsService
;
@Autowired
private
ReviewSceneService
reviewSceneService
;
@ApiOperation
(
"新建场景变更任务"
)
@ApiOperation
(
"新建场景变更任务"
)
@Trace
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
...
@@ -269,4 +269,18 @@ public class ReviewSceneChangeTaskController extends BaseController {
...
@@ -269,4 +269,18 @@ public class ReviewSceneChangeTaskController extends BaseController {
List
<
DeleteDetailsResponse
>
responseList
=
reviewDetailsService
.
getDeleteDetailsResponseList
(
deleteDetailsRequest
);
List
<
DeleteDetailsResponse
>
responseList
=
reviewDetailsService
.
getDeleteDetailsResponseList
(
deleteDetailsRequest
);
return
R
.
ok
(
responseList
);
return
R
.
ok
(
responseList
);
}
}
/*
* 获取所有场景列表
* */
@ApiOperation
(
"获取所有场景列表"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Log
(
title
=
"获取所有场景列表"
,
businessType
=
BusinessType
.
UPDATE
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getSceneListAll"
)
public
R
<
List
<
GetSceneListResponse
>>
getSceneListAll
(
@RequestBody
GetSceneListRequest
getSceneListRequest
){
Long
id
=
Long
.
parseLong
(
getSceneListRequest
.
getDetailsId
());
List
<
GetSceneListResponse
>
getSceneListResponses
=
reviewSceneService
.
getSceneListById
(
id
);
return
R
.
ok
(
getSceneListResponses
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/request/GetSceneListRequest.java
0 → 100644
View file @
6b0c7a22
package
com
.
ruoyi
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"GetSceneListRequest"
,
description
=
"获取场景列表请求request"
)
public
class
GetSceneListRequest
{
@ApiModelProperty
(
"细则id"
)
private
String
detailsId
;
}
quality-review/src/main/java/com/ruoyi/web/response/GetSceneListResponse.java
0 → 100644
View file @
6b0c7a22
package
com
.
ruoyi
.
web
.
response
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"GetSceneListResponse"
,
description
=
"查询场景"
)
@Data
public
class
GetSceneListResponse
{
@ApiModelProperty
(
"id"
)
private
Long
id
;
@ApiModelProperty
(
"文本内容"
)
private
String
text
;
@ApiModelProperty
(
"细则id"
)
private
Long
reviewDetailsId
;
}
quality-review/src/main/resources/mapper/ReviewSceneMapper.xml
View file @
6b0c7a22
...
@@ -26,4 +26,9 @@
...
@@ -26,4 +26,9 @@
</if>
</if>
</where>
</where>
</select>
</select>
<select
id=
"getSceneListById"
resultType=
"com.ruoyi.web.response.GetSceneListResponse"
>
select id,text,review_details_id
from t_review_scene
where review_details_id = #{id}
</select>
</mapper>
</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