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
07cae430
Commit
07cae430
authored
Mar 07, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询标准要求
parent
3ba8ba44
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
97 additions
and
7 deletions
+97
-7
ReviewStandardMapper.java
.../src/main/java/com/ruoyi/mapper/ReviewStandardMapper.java
+4
-0
ReviewStandardService.java
...rc/main/java/com/ruoyi/service/ReviewStandardService.java
+9
-0
ReviewStandardServiceImpl.java
...ava/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
+7
-0
ReviewStandardController.java
...src/main/java/com/ruoyi/web/ReviewStandardController.java
+14
-7
ReviewStandardListRequest.java
...java/com/ruoyi/web/request/ReviewStandardListRequest.java
+22
-0
ReviewStandardListResponse.java
...va/com/ruoyi/web/response/ReviewStandardListResponse.java
+23
-0
ReviewStandardMapper.xml
...review/src/main/resources/mapper/ReviewStandardMapper.xml
+18
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewStandardMapper.java
View file @
07cae430
...
...
@@ -3,6 +3,8 @@ package com.ruoyi.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.web.request.ReviewStandardListByPageRequest
;
import
com.ruoyi.web.request.ReviewStandardListRequest
;
import
com.ruoyi.web.response.ReviewStandardListResponse
;
import
com.ruoyi.web.response.ReviewStandardResponse
;
import
com.ruoyi.web.response.ReviewStandardTestInspectionContentResponse
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -30,4 +32,6 @@ public interface ReviewStandardMapper extends BaseMapper<ReviewStandard> {
* @return
*/
List
<
ReviewStandardTestInspectionContentResponse
>
selectTestInspectionContent
(
Long
id
);
List
<
ReviewStandardListResponse
>
findReviewStandardList
(
ReviewStandardListRequest
request
);
}
quality-review/src/main/java/com/ruoyi/service/ReviewStandardService.java
View file @
07cae430
...
...
@@ -3,7 +3,9 @@ package com.ruoyi.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.web.request.ReviewStandardListByPageRequest
;
import
com.ruoyi.web.request.ReviewStandardListRequest
;
import
com.ruoyi.web.response.ReviewStandardInspectionContentResponse
;
import
com.ruoyi.web.response.ReviewStandardListResponse
;
import
com.ruoyi.web.response.ReviewStandardResponse
;
import
com.ruoyi.web.response.ReviewStandardTestInspectionContentResponse
;
...
...
@@ -43,4 +45,11 @@ public interface ReviewStandardService extends IService<ReviewStandard> {
* @return
*/
List
<
ReviewStandardTestInspectionContentResponse
>
selectTestInspectionContent
(
Long
id
);
/**
* 查询标准要求
* @param request
* @return
*/
List
<
ReviewStandardListResponse
>
findReviewStandardList
(
ReviewStandardListRequest
request
);
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewStandardServiceImpl.java
View file @
07cae430
...
...
@@ -6,7 +6,9 @@ import com.ruoyi.domain.*;
import
com.ruoyi.mapper.ReviewStandardMapper
;
import
com.ruoyi.service.*
;
import
com.ruoyi.web.request.ReviewStandardListByPageRequest
;
import
com.ruoyi.web.request.ReviewStandardListRequest
;
import
com.ruoyi.web.response.ReviewStandardInspectionContentResponse
;
import
com.ruoyi.web.response.ReviewStandardListResponse
;
import
com.ruoyi.web.response.ReviewStandardResponse
;
import
com.ruoyi.web.response.ReviewStandardTestInspectionContentResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -98,6 +100,11 @@ public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper,
return
list
;
}
@Override
public
List
<
ReviewStandardListResponse
>
findReviewStandardList
(
ReviewStandardListRequest
request
)
{
return
reviewStandardMapper
.
findReviewStandardList
(
request
);
}
/**
* 将审查 标准、要点、细则、场景 按照父子关系拆分写入到各自的表中
* @param reviewStandardList
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewStandardController.java
View file @
07cae430
...
...
@@ -7,20 +7,19 @@ import com.ruoyi.common.core.domain.R;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.service.ReviewStandardService
;
import
com.ruoyi.web.request.ReviewStandardInspectionContentRequest
;
import
com.ruoyi.web.request.ReviewStandardListByPageRequest
;
import
com.ruoyi.web.request.ReviewStandardTestInspectionContentRequest
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.response.ReviewStandardInspectionContentResponse
;
import
com.ruoyi.web.response.ReviewStandardListResponse
;
import
com.ruoyi.web.response.ReviewStandardResponse
;
import
com.ruoyi.web.response.ReviewStandardTestInspectionContentResponse
;
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.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
...
...
@@ -72,4 +71,12 @@ public class ReviewStandardController extends BaseController {
List
<
ReviewStandardTestInspectionContentResponse
>
response
=
reviewStandardService
.
selectTestInspectionContent
(
request
.
getId
());
return
R
.
ok
(
response
);
}
@ApiOperation
(
"查询标注要求列表"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findReviewStandardList"
)
public
TableDataInfo
<
ReviewStandardListResponse
>
findReviewStandardList
(
@Validated
@RequestBody
ReviewStandardListRequest
request
)
{
return
getDataTable
(
reviewStandardService
.
findReviewStandardList
(
request
));
}
}
quality-review/src/main/java/com/ruoyi/web/request/ReviewStandardListRequest.java
0 → 100644
View file @
07cae430
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
@ApiModel
(
value
=
"ReviewStandardListRequest"
,
description
=
"查询标准要求"
)
@Data
public
class
ReviewStandardListRequest
{
@ApiModelProperty
(
"章节"
)
private
String
chapter
;
@ApiModelProperty
(
"要求"
)
private
String
text
;
@ApiModelProperty
(
"分类要求[system、car、test]"
)
private
String
type
;
}
quality-review/src/main/java/com/ruoyi/web/response/ReviewStandardListResponse.java
0 → 100644
View file @
07cae430
package
com
.
ruoyi
.
web
.
response
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"ReviewStandardListResponse"
,
description
=
"查询标准要求"
)
public
class
ReviewStandardListResponse
{
@ApiModelProperty
(
"ID"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
id
;
@ApiModelProperty
(
"章节"
)
private
String
chapter
;
@ApiModelProperty
(
"文本内容"
)
private
String
text
;
}
quality-review/src/main/resources/mapper/ReviewStandardMapper.xml
View file @
07cae430
...
...
@@ -25,6 +25,12 @@
</resultMap>
<resultMap
id=
"StandardListResultMap"
type=
"com.ruoyi.web.response.ReviewStandardListResponse"
>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<result
property=
"chapter"
column=
"chapter"
jdbcType=
"VARCHAR"
/>
<result
property=
"text"
column=
"text"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"findTree"
resultMap=
"StandardTreeResultMap"
>
SELECT id, chapter, text, standard_id, name, standard_no, file, conformity, inconformity FROM t_review_standard;
</select>
...
...
@@ -62,6 +68,18 @@
WHERE
usecase.review_standard_id = #{id}
</select>
<select
id=
"findReviewStandardList"
resultType=
"com.ruoyi.web.response.ReviewStandardListResponse"
>
SELECT id,chapter,text FROM t_review_standard
<where>
type = #{type}
<if
test=
"chapter != null and chapter != ''"
>
and chapter like concat('%', #{chapter}, '%')
</if>
<if
test=
"text != null and text != ''"
>
and text like concat('%', #{text}, '%')
</if>
</where>
</select>
</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