Commit d77b2738 by 崔彦峰

feat(carcondition): 新增操作人手机号字段支持

- 在CarCondition实体类中添加phone字段及数据库映射
- 为CarConditionAddRequest请求类增加phone参数校验
- 更新CarConditionMapper.xml中的查询字段列表
- 在数据表映射中添加phone字段的结果映射
- 为openId字段添加非空验证注解
- 完善数据库查询语句以包含新的phone字段
1 parent 8b3613f8
......@@ -18,6 +18,9 @@ public class CarConditionAiReportDetailDTO {
@Schema(description = "车况信息主键id")
private Integer carConditionId;
@Schema(description = "车况编码")
private String carConditionCode;
@Schema(description = "AI收车报告唯一id")
private String reportUuidId;
......
......@@ -252,6 +252,13 @@ public class CarCondition implements Serializable {
private String openId;
/**
* 操作人手机号
*/
@TableField(value = "phone")
@Schema(description = "操作人手机号")
private String phone;
/**
* 创建人
*/
@TableField(value = "created_by")
......
......@@ -43,6 +43,13 @@ public class CarConditionAiReport implements Serializable {
private Integer carConditionId;
/**
* 车况编码
*/
@TableField(value = "car_condition_code")
@Schema(description = "车况编码")
private String carConditionCode;
/**
* AI收车报告唯一id
*/
@Schema(description = "AI收车报告唯一id")
......
......@@ -95,8 +95,12 @@ public class CarConditionAddRequest implements Serializable {
private Integer source;
@Schema(description = "小程序openId")
@NotBlank(message = "小程序openId不能为空")
private String openId;
@Schema(description = "操作人手机号")
private String phone;
@Schema(description = "操作人姓名")
private String operator;
......
......@@ -17,4 +17,7 @@ public class CarConditionPadPageRequest implements Serializable {
@Schema(description = "关键字模糊查询(车主/车牌)")
private String keyWord;
@Schema(description = "录入状态:0-草稿(信息待补全),1-已提交(已录入)")
private Integer entryStatus;
}
......@@ -11,10 +11,7 @@ import lombok.Data;
@Schema(description = "AI报告详情请求参数")
public class CarConditionAiReportDetailRequest {
@Schema(description = "AI报告唯一UUID")
@NotBlank(message = "报告UUID不能为空")
private String reportUuidId;
@Schema(description = "操作人,前端不用传")
private String operator;
@Schema(description = "车况编码")
@NotBlank(message = "车况编码不能为空")
private String carConditionCode;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!