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
7e72b199
Commit
7e72b199
authored
Jan 09, 2024
by
王飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat
1、查询审查任务详情时冗余细则信息便于前端显示。 Reference N/A
parent
187423d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
22 deletions
+25
-22
ReviewDetails.java
...-review/src/main/java/com/ruoyi/domain/ReviewDetails.java
+4
-0
ReviewStandard.java
...review/src/main/java/com/ruoyi/domain/ReviewStandard.java
+0
-20
SystemReviewTaskViewResponse.java
.../com/ruoyi/web/response/SystemReviewTaskViewResponse.java
+21
-2
No files found.
quality-review/src/main/java/com/ruoyi/domain/ReviewDetails.java
View file @
7e72b199
...
...
@@ -57,22 +57,26 @@ public class ReviewDetails {
/**
* 冗余标准id (为便于前端显示)
*/
@ApiModelProperty
(
"标准id"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
@TableField
(
exist
=
false
)
private
Long
standardId
;
/**
* 冗余审查标准内容 (为便于前端显示)
*/
@ApiModelProperty
(
"标准内容"
)
@TableField
(
exist
=
false
)
private
String
standardText
;
/**
* 冗余章节 (为便于前端显示)
*/
@ApiModelProperty
(
"章节"
)
@TableField
(
exist
=
false
)
private
String
chapter
;
/**
* 冗余审查要点内容 (为便于前端显示)
*/
@ApiModelProperty
(
"要点内容"
)
@TableField
(
exist
=
false
)
private
String
reviewKeypointText
;
...
...
quality-review/src/main/java/com/ruoyi/domain/ReviewStandard.java
View file @
7e72b199
...
...
@@ -81,24 +81,4 @@ public class ReviewStandard {
@ApiModelProperty
(
"文件路径"
)
private
String
file
;
/**
* 冗余细则集合(便于前端显示)
* @return
*/
@TableField
(
exist
=
false
)
private
List
<
ReviewDetails
>
details
;
public
List
<
ReviewDetails
>
getDetails
()
{
List
<
ReviewDetails
>
reviewDetailsList
=
new
ArrayList
();
for
(
ReviewKeyPoint
reviewKeyPoint
:
keyPointList
)
{
for
(
ReviewDetails
reviewDetails
:
reviewKeyPoint
.
getReviewDetailsList
())
{
reviewDetailsList
.
add
(
reviewDetails
);
}
}
return
reviewDetailsList
;
}
}
quality-review/src/main/java/com/ruoyi/web/response/SystemReviewTaskViewResponse.java
View file @
7e72b199
package
com
.
ruoyi
.
web
.
response
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
import
com.ruoyi.domain.SystemReviewTask
;
import
com.ruoyi.domain.*
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.ArrayList
;
import
java.util.List
;
@ApiModel
(
value
=
"SystemReviewTaskViewResponse"
,
description
=
"查询体系审查任务详情响应体"
)
...
...
@@ -24,4 +24,23 @@ public class SystemReviewTaskViewResponse {
@ApiModelProperty
(
"任务开始后的场景变更信息"
)
private
List
<
ReviewSceneChangeTask
>
reviewSceneChangeTasks
;
/**
*
* @return
*/
@ApiModelProperty
(
"细则列表"
)
public
List
<
ReviewDetails
>
getDetailsList
()
{
List
<
ReviewDetails
>
detailsList
=
new
ArrayList
();
for
(
ReviewStandard
standard
:
systemReviewTask
.
getStandard
())
{
for
(
ReviewKeyPoint
keyPoint
:
standard
.
getKeyPointList
())
{
for
(
ReviewDetails
details
:
keyPoint
.
getReviewDetailsList
())
{
detailsList
.
add
(
details
);
}
}
}
return
detailsList
;
}
}
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