Commit b543be12 by 崔彦峰

feat(eval): 新增车况生成评估单来源类型

- 在EvalSourceEnum枚举中添加CARCONDITION_GENERATE(4, "车况生成")类型
- 更新CarCondition实体类中aiReportStatus字段描述,增加"3-生成失败"状态
- 修改EvalOrder实体类中source字段描述,添加"4-车况生成"选项
- 更新EvalOrderCreateRequest请求类中source字段描述,添加"4-车况生成"选项
- 修改EvalOrderExportResDTO导出类中ExcelValueReplace注解,添加"车况生成_4"映射
- 在CarConditionService服务中使用枚举常量替代硬编码数值4
2 parents 4c7c5fcd 7b68d6cf
...@@ -90,7 +90,7 @@ public class EvalOrderExportResDTO implements Serializable { ...@@ -90,7 +90,7 @@ public class EvalOrderExportResDTO implements Serializable {
@ExcelProperty(value="总部定价师") @ExcelProperty(value="总部定价师")
private String evalOperatorName; private String evalOperatorName;
@ExcelValueReplace(replace={"app_1","小程序_2","人工导入_3"},repeatValue=true) @ExcelValueReplace(replace={"app_1","小程序_2","人工导入_3","车况生成_4"},repeatValue=true)
@ExcelProperty(value="评估单来源", converter= ReplaceIntegerToStringConvert.class) @ExcelProperty(value="评估单来源", converter= ReplaceIntegerToStringConvert.class)
private Integer source; private Integer source;
......
...@@ -237,7 +237,7 @@ public class CarCondition implements Serializable { ...@@ -237,7 +237,7 @@ public class CarCondition implements Serializable {
* @see com.gsc4cloud.gsc.vpc.api.enums.carcondition.CarConditionAiReportStatusEnum * @see com.gsc4cloud.gsc.vpc.api.enums.carcondition.CarConditionAiReportStatusEnum
*/ */
@TableField(value = "ai_report_status") @TableField(value = "ai_report_status")
@Schema(description = "ai收车报告生成状态:0-未生成,1-生成中,2-已生成") @Schema(description = "ai收车报告生成状态:0-未生成,1-生成中,2-已生成,3-生成失败")
private Integer aiReportStatus; private Integer aiReportStatus;
@TableField(value = "source") @TableField(value = "source")
......
...@@ -40,11 +40,11 @@ public class EvalOrder implements Serializable { ...@@ -40,11 +40,11 @@ public class EvalOrder implements Serializable {
private String evalOrderNo; private String evalOrderNo;
/** /**
* 评估单来源 1-app 2-小程序 3-人工导入 * 评估单来源 1-app 2-小程序 3-人工导入 4-车况生成
* @see EvalSourceEnum * @see EvalSourceEnum
*/ */
@TableField(value = "source") @TableField(value = "source")
@Schema(description = "评估单来源 1-app 2-小程序 3-人工导入") @Schema(description = "评估单来源 1-app 2-小程序 3-人工导入 4-车况生成")
private Integer source; private Integer source;
/** /**
......
...@@ -6,7 +6,8 @@ package com.gsc4cloud.gsc.vpc.api.enums; ...@@ -6,7 +6,8 @@ package com.gsc4cloud.gsc.vpc.api.enums;
public enum EvalSourceEnum implements BaseEnum<Integer, String> { public enum EvalSourceEnum implements BaseEnum<Integer, String> {
APP(1, "app"), APP(1, "app"),
MINI_PROGRAM(2, "小程序"), MINI_PROGRAM(2, "小程序"),
MANUAL_IMPORT(3, "人工导入"); MANUAL_IMPORT(3, "人工导入"),
CARCONDITION_GENERATE(4, "车况生成");
private final Integer code; private final Integer code;
private final String desc; private final String desc;
......
...@@ -18,7 +18,7 @@ import java.util.List; ...@@ -18,7 +18,7 @@ import java.util.List;
@Data @Data
public class EvalOrderCreateRequest { public class EvalOrderCreateRequest {
@Schema(description = "评估单来源:1-app 2-小程序 3-导入订单") @Schema(description = "评估单来源:1-app 2-小程序 3-导入订单 4-车况生成")
private Integer source; private Integer source;
@Schema(description = "评估单编号,编辑必传") @Schema(description = "评估单编号,编辑必传")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!