Commit 6ef54046 authored by W_Y's avatar W_Y

Merge branch 'dev' of http://gitlab.91isoft.com:90/wangfei/vehicle-quality-review into wangdingyi

parents e66b128f 512bbc0e
...@@ -6,8 +6,10 @@ import com.baomidou.mybatisplus.annotation.TableId; ...@@ -6,8 +6,10 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.StandardJsonTypeHandler;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -16,7 +18,7 @@ import lombok.experimental.Accessors; ...@@ -16,7 +18,7 @@ import lombok.experimental.Accessors;
* 车型审查任务 * 车型审查任务
* @TableName t_car_review_task * @TableName t_car_review_task
*/ */
@TableName(value ="t_car_review_task") @TableName(value ="t_car_review_task", autoResultMap = true)
@Accessors(chain = true) @Accessors(chain = true)
@Data @Data
public class CarReviewTask implements Serializable { public class CarReviewTask implements Serializable {
...@@ -101,7 +103,8 @@ public class CarReviewTask implements Serializable { ...@@ -101,7 +103,8 @@ public class CarReviewTask implements Serializable {
* 审查标准 * 审查标准
*/ */
@ApiModelProperty("审查标准") @ApiModelProperty("审查标准")
private Object standard; @TableField(value="standard", typeHandler = StandardJsonTypeHandler. class)
private List<ReviewStandard> standard;
/** /**
* 占位(开发人员根据具体业务自行增加业务字段) * 占位(开发人员根据具体业务自行增加业务字段)
......
package com.ruoyi.web.response; package com.ruoyi.web.response;
import com.ruoyi.domain.CarReviewTask; import com.ruoyi.domain.*;
import com.ruoyi.domain.ReviewSceneChangeTask;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.ArrayList;
import java.util.List; import java.util.List;
@ApiModel(value = "CarReviewTaskViewResponse", description = "查询车辆审查任务详情响应体") @ApiModel(value = "CarReviewTaskViewResponse", description = "查询车辆审查任务详情响应体")
...@@ -23,4 +23,24 @@ public class CarReviewTaskViewResponse { ...@@ -23,4 +23,24 @@ public class CarReviewTaskViewResponse {
*/ */
@ApiModelProperty("任务开始后的场景变更信息") @ApiModelProperty("任务开始后的场景变更信息")
private List<ReviewSceneChangeTask> reviewSceneChangeTasks; 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;
}
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<result property="taskResult" column="task_result" jdbcType="VARCHAR"/> <result property="taskResult" column="task_result" jdbcType="VARCHAR"/>
<result property="taskBeginTime" column="task_begin_time" jdbcType="TIMESTAMP"/> <result property="taskBeginTime" column="task_begin_time" jdbcType="TIMESTAMP"/>
<result property="taskEndTime" column="task_end_time" jdbcType="TIMESTAMP"/> <result property="taskEndTime" column="task_end_time" jdbcType="TIMESTAMP"/>
<result property="standard" column="standard" jdbcType="OTHER"/> <result property="standard" column="standard" typeHandler="com.ruoyi.common.StandardJsonTypeHandler"/>
<result property="bizInfo" column="biz_info" jdbcType="VARCHAR"/> <result property="bizInfo" column="biz_info" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="leaderId" column="leader_id" jdbcType="BIGINT"/> <result property="leaderId" column="leader_id" jdbcType="BIGINT"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment