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
154a9d95
Commit
154a9d95
authored
Jan 10, 2024
by
王飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor
1、修复Json字段映射错误的问题。 Reference N/A
parent
389d6e5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
CarReviewTask.java
...-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
+5
-2
CarReviewTaskViewResponse.java
...ava/com/ruoyi/web/response/CarReviewTaskViewResponse.java
+22
-2
No files found.
quality-review/src/main/java/com/ruoyi/domain/CarReviewTask.java
View file @
154a9d95
...
...
@@ -6,8 +6,10 @@ import com.baomidou.mybatisplus.annotation.TableId;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.ruoyi.common.StandardJsonTypeHandler
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
...
...
@@ -16,7 +18,7 @@ import lombok.experimental.Accessors;
* 车型审查任务
* @TableName t_car_review_task
*/
@TableName
(
value
=
"t_car_review_task"
)
@TableName
(
value
=
"t_car_review_task"
,
autoResultMap
=
true
)
@Accessors
(
chain
=
true
)
@Data
public
class
CarReviewTask
implements
Serializable
{
...
...
@@ -101,7 +103,8 @@ public class CarReviewTask implements Serializable {
* 审查标准
*/
@ApiModelProperty
(
"审查标准"
)
private
Object
standard
;
@TableField
(
value
=
"standard"
,
typeHandler
=
StandardJsonTypeHandler
.
class
)
private
List
<
ReviewStandard
>
standard
;
/**
* 占位(开发人员根据具体业务自行增加业务字段)
...
...
quality-review/src/main/java/com/ruoyi/web/response/CarReviewTaskViewResponse.java
View file @
154a9d95
package
com
.
ruoyi
.
web
.
response
;
import
com.ruoyi.domain.CarReviewTask
;
import
com.ruoyi.domain.ReviewSceneChangeTask
;
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
=
"CarReviewTaskViewResponse"
,
description
=
"查询车辆审查任务详情响应体"
)
...
...
@@ -23,4 +23,24 @@ public class CarReviewTaskViewResponse {
*/
@ApiModelProperty
(
"任务开始后的场景变更信息"
)
private
List
<
ReviewSceneChangeTask
>
reviewSceneChangeTasks
;
/**
*
* @return
*/
@ApiModelProperty
(
"细则列表"
)
public
List
<
ReviewDetails
>
getDetailsList
()
{
List
<
ReviewDetails
>
detailsList
=
new
ArrayList
();
for
(
ReviewStandard
standard
:
carReviewTask
.
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