Commit 9f2673be by 林冲

Merge branch 'v5.4.0_20251120' into 'master'

上线合并

See merge request !1
2 parents 4491c116 d8f21c75
Showing 32 changed files with 1380 additions and 82 deletions
...@@ -50,6 +50,12 @@ ...@@ -50,6 +50,12 @@
<artifactId>hutool-all</artifactId> <artifactId>hutool-all</artifactId>
<version>5.8.38</version> <version>5.8.38</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.5.0-jre</version>
</dependency>
<!--feign 注解依赖--> <!--feign 注解依赖-->
<dependency> <dependency>
<groupId>com.gsc4cloud</groupId> <groupId>com.gsc4cloud</groupId>
......
...@@ -40,6 +40,9 @@ public class CarManageInfoExcelDTO implements Serializable { ...@@ -40,6 +40,9 @@ public class CarManageInfoExcelDTO implements Serializable {
@ExcelProperty("车架号") @ExcelProperty("车架号")
private String vin; private String vin;
@ExcelProperty("车源号")
private String sourceNo;
/** /**
* 车型名称(车系+车型) * 车型名称(车系+车型)
*/ */
......
...@@ -135,6 +135,9 @@ public class CarManageInfoPageDTO implements Serializable { ...@@ -135,6 +135,9 @@ public class CarManageInfoPageDTO implements Serializable {
@Schema(description = "车辆识别码 VIN") @Schema(description = "车辆识别码 VIN")
private String vin; private String vin;
@Schema(description = "车源号")
private String sourceNo;
/** /**
* 发动机号 * 发动机号
*/ */
......
package com.gsc4cloud.gsc.vpc.api.dto.entitydto.car; package com.gsc4cloud.gsc.vpc.api.dto.car;
import com.gsc4cloud.gsc.vpc.api.entity.car.CarAuctionLog; import com.gsc4cloud.gsc.vpc.api.entity.car.DeliveryOrderOpLog;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
/** /**
* 车辆拍卖平台交互日志表 * 车辆交付工单操作日志表
* *
* @author zhangfk * @author zhangfk
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class CarAuctionLogDTO extends CarAuctionLog { public class DeliveryOrderOpLogDTO extends DeliveryOrderOpLog {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
...@@ -129,6 +129,9 @@ public class CarManageInfoDetailDTO implements Serializable { ...@@ -129,6 +129,9 @@ public class CarManageInfoDetailDTO implements Serializable {
@Schema(description = "车辆识别码 VIN") @Schema(description = "车辆识别码 VIN")
private String vin; private String vin;
@Schema(description = "车源号")
private String sourceNo;
/** /**
* 上牌时间 * 上牌时间
*/ */
......
...@@ -62,12 +62,36 @@ public class PushCarDTO implements Serializable { ...@@ -62,12 +62,36 @@ public class PushCarDTO implements Serializable {
@NotEmpty(message = "车辆图片列表不能为空") @NotEmpty(message = "车辆图片列表不能为空")
private List<CarImage> carImages; private List<CarImage> carImages;
@Schema(description = "车型数据json,json字段参考查博士文档https://doc.chaboshi.cn/web/shareDoc/f98cbf2e13c37f7fd39ccdaf2b61a295")
private String carModelData;
@Schema(description = "基础信息") @Schema(description = "基础信息")
@Data @Data
public static class BaseInfo { public static class BaseInfo {
@Schema(description = "车辆品牌id")
@NotEmpty(message = "车辆品牌id不能为空")
private Integer carBrandId;
@Schema(description = "车辆品牌名称")
@NotEmpty(message = "车辆品牌名称不能为空")
private String carBrand;
@Schema(description = "子品牌id")
@NotEmpty(message = "子品牌id不能为空")
private Integer carChildsBrandId;
@Schema(description = "子品牌名字")
@NotEmpty(message = "子品牌名字不能为空")
private String carChildsBrandName;
@Schema(description = "车系id")
@NotEmpty(message = "车系id不能为空")
private Integer carSeriesId;
@Schema(description = "车系名字")
@NotEmpty(message = "车系名字不能为空")
private String carSeriesName;
@Schema(description = "车型id")
@NotEmpty(message = "车型id不能为空")
private Integer carTypeId;
@Schema(description = "车型名称(品牌/车系/年款/配置)", example = "2020款 Sportback 35 TFSI 欧洲版", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "车型名称(品牌/车系/年款/配置)", example = "2020款 Sportback 35 TFSI 欧洲版", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "车型名称不能为空") @NotEmpty(message = "车型名称不能为空")
// 来源表: vcp_eval_car_base, 字段: car_type_name
private String carTypeName; private String carTypeName;
@Schema(description = "表显里程(公里)", example = "35800", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "表显里程(公里)", example = "35800", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "表显里程不能为空") @NotNull(message = "表显里程不能为空")
...@@ -109,41 +133,27 @@ public class PushCarDTO implements Serializable { ...@@ -109,41 +133,27 @@ public class PushCarDTO implements Serializable {
@NotNull(message = "排放标准不能为空") @NotNull(message = "排放标准不能为空")
// 来源表: vcp_eval_car_base, 字段: emission_standard // 来源表: vcp_eval_car_base, 字段: emission_standard
private Integer emissionStandard; private Integer emissionStandard;
@Schema(description = "排量(L),遵循VIN文档字段", example = "2.0L", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "排量(L),遵循VIN文档字段", example = "2.0L")
@NotEmpty(message = "排量不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: base, 字段: displacement
private String displacement; private String displacement;
@Schema(description = "进气形式(自然吸气/涡轮增压等)", example = "涡轮增压", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "进气形式(自然吸气/涡轮增压等)", example = "涡轮增压")
@NotEmpty(message = "进气形式不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: engine, 字段: jqxs
private String jqxs; private String jqxs;
@Schema(description = "燃料形式(汽油/柴油等)", example = "汽油", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "燃料形式(汽油/柴油等)", example = "汽油")
@NotEmpty(message = "燃料形式不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: engine, 字段: rlxs
private String rlxs; private String rlxs;
@Schema(description = "变速箱类型(自动/手动等)", example = "双离合", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "变速箱类型(自动/手动等)", example = "双离合")
@NotEmpty(message = "变速箱类型不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: gearbox, 字段: bxslx
private String bxslx; private String bxslx;
@Schema(description = "驱动方式(前驱/后驱/四驱等)", example = "前驱", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "驱动方式(前驱/后驱/四驱等)", example = "前驱")
@NotEmpty(message = "驱动方式不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: gearbox, 字段: qdfs
private String qdfs; private String qdfs;
@Schema(description = "车型分类名称(级别)", example = "紧凑型轿车", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "车型分类名称(级别)", example = "紧凑型轿车")
@NotEmpty(message = "车型分类名称不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: base, 字段: vehicleClass
private String vehicleClass; private String vehicleClass;
@Schema(description = "外观颜色", example = "冰川白", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "外观颜色", example = "冰川白", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "外观颜色不能为空")
// 来源表: vcp_eval_car_base, 字段: exterior_color // 来源表: vcp_eval_car_base, 字段: exterior_color
@NotEmpty(message = "外观颜色不能为空")
private String exteriorColor; private String exteriorColor;
@Schema(description = "内饰颜色", example = "黑色", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "内饰颜色", example = "黑色", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "内饰颜色不能为空") @NotEmpty(message = "内饰颜色不能为空")
// 来源表: vcp_eval_car_base, 字段: interior_color // 来源表: vcp_eval_car_base, 字段: interior_color
private String interiorColor; private String interiorColor;
@Schema(description = "座位数", example = "5座", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "座位数", example = "5座")
@NotEmpty(message = "座位数不能为空")
// 来源文档: 根据vin普通车型识别.md, 区块: base, 字段: seat
private String seat; private String seat;
@Schema(description = "天窗:1-无天窗/2-普通天窗/3-全景天窗", example = "3", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "天窗:1-无天窗/2-普通天窗/3-全景天窗", example = "3", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "天窗不能为空") @NotNull(message = "天窗不能为空")
...@@ -258,6 +268,10 @@ public class PushCarDTO implements Serializable { ...@@ -258,6 +268,10 @@ public class PushCarDTO implements Serializable {
// 来源表: vcp_eval_order, 字段: eval_opinion // 来源表: vcp_eval_order, 字段: eval_opinion
private String evalOpinion; private String evalOpinion;
@Schema(description = "收购价格(元)", example = "300000", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "收购价格不能为空")
private BigDecimal purchasePrice;
@Schema(description = "车辆来源门店", example = "上海嘉定二手车门店", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "车辆来源门店", example = "上海嘉定二手车门店", requiredMode = Schema.RequiredMode.REQUIRED)
......
package com.gsc4cloud.gsc.vpc.api.dto.pad.resdto.deliveryorder;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
@Data
public class DeliveryOrderListCountResDTO implements Serializable {
private static final long serialVersionUID = -779052382485266275L;
@Schema(description = "全部交付单数量")
private Long deliveryNum;
@Schema(description = "待交付交付单数量")
private Long deliveryWaitingNum;
@Schema(description = "交付中交付单数量")
private Long deliveringNum;
@Schema(description = "交付完成交付单数量")
private Long deliveryEndNum;
}
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class DeliveryOrderDetailResDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Schema(description = "主键ID")
private Long id;
@Schema(description = "转化用户id(园区店)")
private String conversionUserId;
/**
* 拍品号
*/
@Schema(description = "拍品号")
private Integer lotNumber;
/**
* 车源号(平台唯一识别编号)
*/
@Schema(description = "车源号(平台唯一识别编号)")
private String sourceNo;
/**
* 交付工单唯一识别编号(如 DL-20231026-001)
*/
@Schema(description = "交付工单唯一识别编号(如 DL-20231026-001)")
private String deliveryOrderId;
/**
* 工单状态:0-待交付 1-准备交付 2-交付完成
*/
@Schema(description = "工单状态:0-待交付 1-准备交付 2-交付完成")
private Integer orderStatus;
/**
* 交付专员ID(如 EMP-0123)
*/
@Schema(description = "交付专员ID(如 EMP-0123)")
private String handlerId;
/**
* 交付专员姓名
*/
@Schema(description = "交付专员姓名")
private String handlerName;
/**
* 交付专员姓名
*/
@Schema(description = "交付专员手机号")
private String handlerPhone;
/**
* 关联拍卖编号(如 PM-20231025-088)
*/
@Schema(description = "关联拍卖编号(如 PM-20231025-088)")
private String auctionId;
/**
* 车辆成交时间
*/
@Schema(description = "车辆成交时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date transactionTime;
/**
* 车辆标题(品牌/车系/型号等)
*/
@Schema(description = "车辆标题(品牌/车系/型号等)")
private String vehicleTitle;
/**
* 车辆识别代号(车架号)
*/
@Schema(description = "车辆识别代号(车架号)")
private String vin;
/**
* 车辆当前车牌号
*/
@Schema(description = "车辆当前车牌号")
private String licensePlate;
/**
* 车辆当前停放位置/城市
*/
@Schema(description = "车辆当前停放位置/城市")
private String currentLocation;
/**
* 其他费用(JSON数组),如 [{"name": "物流费", "amount": 1200.00}]
*/
@Schema(description = "其他费用(JSON数组),如 [{\"name\": \"物流费\", \"amount\": 1200.00}]")
private String otherFees;
/**
* 待付尾款总额(含所有费用)
*/
@Schema(description = "待付尾款总额(含所有费用)")
private BigDecimal totalPayable;
/**
* 尾款支付状态:0-未支付 1-已结清
*/
@Schema(description = "尾款支付状态:0-未支付 1-已结清")
private Integer paymentStatus;
/**
* 买家姓名
*/
@Schema(description = "买家姓名")
private String buyerName;
/**
* 买家联系电话
*/
@Schema(description = "买家联系电话")
private String buyerContact;
/**
* 买家平台用户ID
*/
@Schema(description = "买家平台用户ID")
private String buyerId;
/**
* 交付方式:0-客户自提 1-安排送车
*/
@Schema(description = "交付方式:0-客户自提 1-安排送车")
private Integer deliveryType;
/**
* 客户自提地址
*/
@Schema(description = "客户自提地址")
private String pickupAddress;
/**
* 送车上门地址
*/
@Schema(description = "送车上门地址")
private String deliveryAddress;
/**
* 预约交付/提车时间
*/
@Schema(description = "预约交付/提车时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date scheduledTime;
/**
* 实际完成交付时间
*/
@Schema(description = "实际完成交付时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date actualTime;
/**
* 车辆保管人姓名
*/
@Schema(description = "车辆保管人姓名")
private String custodianName;
/**
* 车辆保管人联系方式
*/
@Schema(description = "车辆保管人联系方式")
private String custodianPhone;
@Schema(description = "交付照片,多个用英文逗号隔开")
private String confirmImages;
/**
* 交付备注
*/
@Schema(description = "交付备注")
private String remark;
@Schema(description = "工单创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
/**
* 交付单最后更新时间
*/
@Schema(description = "交付单最后更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedDate;
/**
* 提车时间
*/
@Schema(description = "提车时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date pickUpTime;
}
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace;
import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class DeliveryOrderExportResDTO implements Serializable {
@Serial
private static final long serialVersionUID = -7851186783943277269L;
/**
* 交付工单唯一识别编号(如 DL-20231026-001)
*/
@ExcelProperty(value = "交付单编号")
private String deliveryOrderId;
/**
* 车辆当前车牌号
*/
@ExcelProperty(value = "车牌号")
private String licensePlate;
/**
* 车辆识别代号(车架号)
*/
@ExcelProperty(value = "车架号")
private String vin;
/**
* 车辆标题(品牌/车系/型号等)
*/
@ExcelProperty(value = "车型")
private String vehicleTitle;
/**
* 车辆当前停放位置/城市
*/
@ExcelProperty(value = "车辆当前停放位置")
private String currentLocation;
/**
* 交付专员姓名
*/
@ExcelProperty(value = "交付专员姓名")
private String handlerName;
/**
* 交付专员姓名
*/
@ExcelProperty(value = "交付专员电话")
private String handlerPhone;
/**
* 买家姓名
*/
@ExcelProperty(value = "买家姓名")
private String buyerName;
/**
* 买家联系电话
*/
@ExcelProperty(value = "买家联系电话")
private String buyerContact;
/**
* 车辆保管人姓名
*/
@ExcelProperty(value = "车辆保管人姓名")
private String custodianName;
/**
* 车辆保管人联系方式
*/
@ExcelProperty(value = "车辆保管人联系方式")
private String custodianPhone;
@ExcelProperty(value = "交付单创建时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date createdDate;
@ExcelProperty(value = "交付单最后更新时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date updatedDate;
/**
* 车辆成交时间
*/
@ExcelProperty(value = "成交时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date transactionTime;
/**
* 工单状态:-1-已取消 0-待交付 1-进行中 2-交付完成
*/
@ExcelValueReplace(replace={"已取消_-1","待交付_0","进行中_1","交付完成_2"},repeatValue=true)
@ExcelProperty(value = "交付状态",converter= ReplaceIntegerToStringConvert.class)
private Integer orderStatus;
/**
* 尾款支付状态:0-未支付 1-已结清
*/
@ExcelValueReplace(replace={"未支付_0","已结清_1"},repeatValue=true)
@ExcelProperty(value = "付款状态",converter= ReplaceIntegerToStringConvert.class)
private Integer paymentStatus;
/**
* 交付方式:0-客户自提 1-安排送车
*/
@ExcelValueReplace(replace={"客户自提_0","安排送车_1"},repeatValue=true)
@ExcelProperty(value = "交付方式",converter= ReplaceIntegerToStringConvert.class)
private Integer deliveryType;
/**
* 关联拍卖编号(如 PM-20231025-088)
*/
@ExcelProperty(value = "拍卖场次")
private String auctionId;
/**
* 车源号(平台唯一识别编号)
*/
@ExcelProperty(value = "车源编号")
private String sourceNo;
/**
* 待付尾款总额(含所有费用)
*/
@ExcelProperty(value = "待付尾款总额")
private BigDecimal totalPayable;
@ExcelProperty(value = "其他费用")
private String otherFees;
/**
* 客户自提地址
*/
@ExcelProperty(value = "客户自提地址")
private String pickupAddress;
/**
* 送车上门地址
*/
@ExcelProperty(value = "送车上门地址")
private String deliveryAddress;
/**
* 预约交付/提车时间
*/
@ExcelProperty(value = "预约提车时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date scheduledTime;
/**
* 实际完成交付时间
*/
@ExcelProperty(value = "实际交付时间")
@DateTimeFormat(value="yyyy-MM-dd HH:mm:ss")
private Date actualTime;
}
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class DeliveryOrderListResDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Schema(description = "主键ID")
private Long id;
/**
* 拍品号
*/
@Schema(description = "拍品号")
private Integer lotNumber;
/**
* 车源号(平台唯一识别编号)
*/
@Schema(description = "车源号(平台唯一识别编号)")
private String sourceNo;
/**
* 交付工单唯一识别编号(如 DL-20231026-001)
*/
@Schema(description = "交付工单唯一识别编号(如 DL-20231026-001)")
private String deliveryOrderId;
/**
* 工单状态:-1-已取消 0-待交付 1-进行中 2-交付完成
*/
@Schema(description = "工单状态:-1-已取消 0-待交付 1-进行中 2-交付完成")
private Integer orderStatus;
/**
* 交付专员姓名
*/
@Schema(description = "交付专员姓名")
private String handlerName;
/**
* 交付专员姓名
*/
@Schema(description = "交付专员手机号")
private String handlerPhone;
/**
* 关联拍卖编号(如 PM-20231025-088)
*/
@Schema(description = "关联拍卖编号(如 PM-20231025-088)")
private String auctionId;
/**
* 车辆成交时间
*/
@Schema(description = "车辆成交时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date transactionTime;
/**
* 车辆标题(品牌/车系/型号等)
*/
@Schema(description = "车辆标题(品牌/车系/型号等)")
private String vehicleTitle;
/**
* 车辆识别代号(车架号)
*/
@Schema(description = "车辆识别代号(车架号)")
private String vin;
/**
* 车辆当前车牌号
*/
@Schema(description = "车辆当前车牌号")
private String licensePlate;
/**
* 车辆当前停放位置/城市
*/
@Schema(description = "车辆当前停放位置/城市")
private String currentLocation;
/**
* 待付尾款总额(含所有费用)
*/
@Schema(description = "待付尾款总额(含所有费用)")
private BigDecimal totalPayable;
/**
* 尾款支付状态:0-未支付 1-已结清
*/
@Schema(description = "尾款支付状态:0-未支付 1-已结清")
private Integer paymentStatus;
/**
* 买家姓名
*/
@Schema(description = "买家姓名")
private String buyerName;
/**
* 买家联系电话
*/
@Schema(description = "买家联系电话")
private String buyerContact;
/**
* 交付方式:0-客户自提 1-安排送车
*/
@Schema(description = "交付方式:0-客户自提 1-安排送车")
private Integer deliveryType;
/**
* 客户自提地址
*/
@Schema(description = "客户自提地址")
private String pickupAddress;
/**
* 送车上门地址
*/
@Schema(description = "送车上门地址")
private String deliveryAddress;
/**
* 预约交付/提车时间
*/
@Schema(description = "预约交付/提车时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date scheduledTime;
/**
* 提车时间
*/
@Schema(description = "提车时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date pickUpTime;
/**
* 实际完成交付时间
*/
@Schema(description = "实际完成交付时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date actualTime;
/**
* 车辆保管人姓名
*/
@Schema(description = "车辆保管人姓名")
private String custodianName;
/**
* 车辆保管人联系方式
*/
@Schema(description = "车辆保管人联系方式")
private String custodianPhone;
@Schema(description = "工单创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
/**
* 交付单最后更新时间
*/
@Schema(description = "交付单最后更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedDate;
/**
* 车辆照片 取车辆照片左前45度
*/
@Schema(description = "车辆照片,取车辆照片左前45度")
private String carPhoto;
}
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class DeliveryOrderOpLogResDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 操作项类型 1-创建交付工单 2-确认客户到店 3-确认客户提车
*/
@Schema(description = "操作项类型 1-创建交付工单 2-确认客户到店 3-确认客户提车")
private Integer opType;
/**
* 操作人
*/
@Schema(description = "操作人")
private String opUserName;
/**
* 创建时间
*/
@Schema(description = "操作时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdDate;
}
...@@ -118,6 +118,13 @@ public class CarAuction implements Serializable { ...@@ -118,6 +118,13 @@ public class CarAuction implements Serializable {
private String finalWinnerId; private String finalWinnerId;
/** /**
* 中标者/购买者ID
*/
@Schema(description = "最终成交价格(售价)")
@TableField(value = "selling_price")
private BigDecimal sellingPrice;
/**
* 成交时间 * 成交时间
*/ */
@Schema(description = "成交时间") @Schema(description = "成交时间")
......
...@@ -391,6 +391,10 @@ public class CarManageInfo implements Serializable { ...@@ -391,6 +391,10 @@ public class CarManageInfo implements Serializable {
@Schema(description = "过户次数") @Schema(description = "过户次数")
private Integer transfersNumber; private Integer transfersNumber;
@TableField(value = "car_model_data")
@Schema(description = "车型数据json,json字段参考查博士文档https://doc.chaboshi.cn/web/shareDoc/f98cbf2e13c37f7fd39ccdaf2b61a295")
private String carModelData;
/** /**
* 创建人 * 创建人
*/ */
......
package com.gsc4cloud.gsc.vpc.api.entity.car; package com.gsc4cloud.gsc.vpc.api.entity.car;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -37,6 +34,11 @@ public class DeliveryOrder implements Serializable { ...@@ -37,6 +34,11 @@ public class DeliveryOrder implements Serializable {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
@Schema(description = "转化用户id(园区店)")
@TableField(value = "conversion_user_id")
private String conversionUserId;
/** /**
* 拍品号 * 拍品号
*/ */
...@@ -80,6 +82,13 @@ public class DeliveryOrder implements Serializable { ...@@ -80,6 +82,13 @@ public class DeliveryOrder implements Serializable {
private String handlerName; private String handlerName;
/** /**
* 交付专员姓名
*/
@Schema(description = "交付专员手机号")
@TableField(value = "handler_phone")
private String handlerPhone;
/**
* 关联拍卖编号(如 PM-20231025-088) * 关联拍卖编号(如 PM-20231025-088)
*/ */
@Schema(description = "关联拍卖编号(如 PM-20231025-088)") @Schema(description = "关联拍卖编号(如 PM-20231025-088)")
...@@ -143,6 +152,10 @@ public class DeliveryOrder implements Serializable { ...@@ -143,6 +152,10 @@ public class DeliveryOrder implements Serializable {
@TableField(value = "payment_status") @TableField(value = "payment_status")
private Integer paymentStatus; private Integer paymentStatus;
@TableField(value = "sign_status")
@Schema(description = "交割合同签署状态 0-未签署,1-已签署")
private Integer signStatus;
/** /**
* 买家姓名 * 买家姓名
*/ */
...@@ -194,6 +207,14 @@ public class DeliveryOrder implements Serializable { ...@@ -194,6 +207,14 @@ public class DeliveryOrder implements Serializable {
private Date scheduledTime; private Date scheduledTime;
/** /**
* 提车时间
*/
@Schema(description = "提车时间")
@TableField(value = "pick_up_time")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date pickUpTime;
/**
* 实际完成交付时间 * 实际完成交付时间
*/ */
@Schema(description = "实际完成交付时间") @Schema(description = "实际完成交付时间")
...@@ -215,10 +236,13 @@ public class DeliveryOrder implements Serializable { ...@@ -215,10 +236,13 @@ public class DeliveryOrder implements Serializable {
@TableField(value = "custodian_phone") @TableField(value = "custodian_phone")
private String custodianPhone; private String custodianPhone;
@Schema(description = "交付照片,多个用英文逗号隔开")
@TableField(value = "confirm_images")
private String confirmImages;
/** /**
* 备注信息 * 交付备注
*/ */
@Schema(description = "备注信息") @Schema(description = "交付备注")
@TableField(value = "remark") @TableField(value = "remark")
private String remark; private String remark;
...@@ -253,10 +277,11 @@ public class DeliveryOrder implements Serializable { ...@@ -253,10 +277,11 @@ public class DeliveryOrder implements Serializable {
private Date updatedDate; private Date updatedDate;
/** /**
* 是否删除:0-否 1-是 * 删除标识:N未删除,D已删除
*/ */
@Schema(description = "是否删除:0-否 1-是")
@TableField(value = "is_deleted") @TableField(value = "deleted_flag")
private Integer isDeleted; @TableLogic(value = "N", delval = "D")
private String deletedFlag;
} }
...@@ -15,7 +15,7 @@ import java.io.Serializable; ...@@ -15,7 +15,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
/** /**
* 车辆拍卖平台交互日志表 * 车辆交付工单操作日志表
* *
* @author zhangfk * @author zhangfk
*/ */
...@@ -23,8 +23,8 @@ import java.util.Date; ...@@ -23,8 +23,8 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
@SuperBuilder @SuperBuilder
@Data @Data
@TableName("vcp_car_auction_log") @TableName("vcp_delivery_order_op_log")
public class CarAuctionLog implements Serializable { public class DeliveryOrderOpLog implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -34,28 +34,28 @@ public class CarAuctionLog implements Serializable { ...@@ -34,28 +34,28 @@ public class CarAuctionLog implements Serializable {
*/ */
@Schema(description = "主键ID") @Schema(description = "主键ID")
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Integer id;
/** /**
* 车源号(平台唯一识别编号) * 交付工单唯一识别编号(如 DL-20231026-001)
*/ */
@Schema(description = "车源号(平台唯一识别编号)") @Schema(description = "交付工单唯一识别编号(如 DL-20231026-001)")
@TableField(value = "source_no") @TableField(value = "delivery_order_id")
private String sourceNo; private String deliveryOrderId;
/** /**
* 1-车辆拍卖状态同步,2-生成交付工单 3-推送交付工单状态变更 4-交付单付款状态同步 * 操作项类型 1-新增交付工单 2-确认客户到店 3-确认客户提车
*/ */
@Schema(description = "1-车辆拍卖状态同步,2-生成交付工单 3-推送交付工单状态变更 4-交付单付款状态同步") @Schema(description = "操作项类型 1-新增交付工单 2-确认客户到店 3-确认客户提车")
@TableField(value = "opt_type") @TableField(value = "op_type")
private Integer optType; private Integer opType;
/** /**
* 请求json * 操作人
*/ */
@Schema(description = "请求json") @Schema(description = "操作人")
@TableField(value = "request_json") @TableField(value = "op_user_name")
private String requestJson; private String opUserName;
/** /**
* 创建人 * 创建人
......
package com.gsc4cloud.gsc.vpc.api.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import java.util.EnumMap;
import java.util.Map;
import java.util.Optional;
/**
* 拍卖端状态(平台视角)
* 触发口径:
* - WAIT_AUCTION 收车推送档案后,默认切为此状态
* - AUCTIONING 拍卖端已关联拍场后,同步
* - WAIT_PICKUP 拍卖端:待提车
* - TRANSFERRING 拍卖端:车辆过户中
* - COMPLETED 拍卖端:已完成
* - CANCELED 拍卖端:已取消
*/
@Getter
@AllArgsConstructor
public enum AuctionStatusEnum implements BaseEnum<String, String> {
WAIT_AUCTION("WAIT_AUCTION", "待拍卖"),
AUCTIONING("AUCTIONING", "拍卖中"),
WAIT_PICKUP("WAIT_PICKUP", "待提车"),
TRANSFERRING("TRANSFERRING", "车辆过户中"),
COMPLETED("COMPLETED", "已完成"),
CANCELED("CANCELED", "已取消");
private final String code;
private final String desc;
public static Optional<AuctionStatusEnum> ofCode(String code) {
if (code == null) {
return Optional.empty();
}
return Arrays.stream(values()).filter(e -> e.code.equals(code)).findFirst();
}
/**
* 校验拍卖状态code是否合法(是否存在于枚举中)
*/
public static boolean isValidCode(String code) {
return ofCode(code).isPresent();
}
// —— 拍卖端 -> 收车端 映射 —— //
private static final Map<AuctionStatusEnum, CarStatusEnum> TO_CAR_STATUS = new EnumMap<>(AuctionStatusEnum.class);
static {
TO_CAR_STATUS.put(WAIT_AUCTION, CarStatusEnum.WAITING_AUCTION); // 待拍卖
TO_CAR_STATUS.put(AUCTIONING, CarStatusEnum.AUCTIONING); // 拍卖中
TO_CAR_STATUS.put(WAIT_PICKUP, CarStatusEnum.RESERVED); // 待提车 -> 已预定
TO_CAR_STATUS.put(TRANSFERRING, CarStatusEnum.DELIVERED); // 过户中 -> 已交付
TO_CAR_STATUS.put(COMPLETED, CarStatusEnum.SOLD); // 已完成 -> 已出售
TO_CAR_STATUS.put(CANCELED, CarStatusEnum.WAITING_AUCTION); // 取消 -> 回到待拍卖池
}
/** 根据拍卖端状态枚举映射到收车端 */
public static Optional<CarStatusEnum> mapToCarStatus(AuctionStatusEnum auctionStatus) {
if (auctionStatus == null) {
return Optional.empty();
}
return Optional.ofNullable(TO_CAR_STATUS.get(auctionStatus));
}
/** 根据拍卖端 code 映射到收车端 */
public static Optional<CarStatusEnum> mapCodeToCarStatus(String auctionCode) {
return ofCode(auctionCode).flatMap(AuctionStatusEnum::mapToCarStatus);
}
}
package com.gsc4cloud.gsc.vpc.api.enums;
/**
* Delivery order status enum to replace magic numbers in code.
* Codes definition:
* -1: 已取消
* 0: 待交付
* 1: 准备交付/交付中/过户中(进行中)
* 2: 交付完成
*/
public enum DeliveryOrderStatusEnum implements BaseEnum<Integer, String> {
CANCELLED(-1, "已取消"),
PENDING(0, "待交付"),
IN_PROGRESS(1, "进行中"),
COMPLETED(2, "交付完成");
private final Integer code;
private final String desc;
DeliveryOrderStatusEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
@Override
public Integer getCode() {
return code;
}
@Override
public String getDesc() {
return desc;
}
/**
* Get enum by numeric code
*/
public static DeliveryOrderStatusEnum ofCode(Integer code) {
return BaseEnum.getEnumByCode(code, DeliveryOrderStatusEnum.class);
}
}
\ No newline at end of file \ No newline at end of file
...@@ -4,6 +4,7 @@ import com.gsc4cloud.gsc.common.core.constant.ServiceNameConstants; ...@@ -4,6 +4,7 @@ import com.gsc4cloud.gsc.common.core.constant.ServiceNameConstants;
import com.gsc4cloud.gsc.common.core.util.R; import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.vpc.api.req.thirdparty.auction.DeliveryOrderPayFinishRequest; import com.gsc4cloud.gsc.vpc.api.req.thirdparty.auction.DeliveryOrderPayFinishRequest;
import com.gsc4cloud.gsc.vpc.api.req.thirdparty.auction.DeliveryOrderRequest; import com.gsc4cloud.gsc.vpc.api.req.thirdparty.auction.DeliveryOrderRequest;
import com.gsc4cloud.gsc.vpc.api.req.thirdparty.auction.DeliveryOrderSignRequest;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
...@@ -16,4 +17,7 @@ public interface DeliveryOrderRemote { ...@@ -16,4 +17,7 @@ public interface DeliveryOrderRemote {
@PostMapping("/deliveryOrder/payFinish") @PostMapping("/deliveryOrder/payFinish")
R payFinish(DeliveryOrderPayFinishRequest request); R payFinish(DeliveryOrderPayFinishRequest request);
@PostMapping("/deliveryOrder/signFinish")
R signFinish(DeliveryOrderSignRequest request);
} }
...@@ -9,6 +9,7 @@ import com.gsc4cloud.gsc.vpc.api.req.PageRequest; ...@@ -9,6 +9,7 @@ import com.gsc4cloud.gsc.vpc.api.req.PageRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.car.CarManageInfoEditRequest; import com.gsc4cloud.gsc.vpc.api.req.web.car.CarManageInfoEditRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.car.CarManageInfoPageRequest; import com.gsc4cloud.gsc.vpc.api.req.web.car.CarManageInfoPageRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.car.CarManageInfoRequest; import com.gsc4cloud.gsc.vpc.api.req.web.car.CarManageInfoRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.car.PushCarRequest;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
...@@ -44,6 +45,14 @@ public interface CarManagementRemote { ...@@ -44,6 +45,14 @@ public interface CarManagementRemote {
R<Boolean> edit(@RequestBody CarManageInfoEditRequest request); R<Boolean> edit(@RequestBody CarManageInfoEditRequest request);
/** /**
* 推送车辆数据到拍卖平台
* @param request 推送请求
* @return 推送结果
*/
@PostMapping("/carManageInfo/pushCarData")
R<Boolean> pushCarData(@RequestBody PushCarRequest request);
/**
* 车辆管理日志 * 车辆管理日志
*/ */
@Operation(summary = "车辆管理日志") @Operation(summary = "车辆管理日志")
......
package com.gsc4cloud.gsc.vpc.api.feign.web.deliveryorder;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gsc4cloud.gsc.common.core.constant.ServiceNameConstants;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.vpc.api.dto.pad.resdto.deliveryorder.DeliveryOrderListCountResDTO;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder.DeliveryOrderDetailResDTO;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder.DeliveryOrderListResDTO;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.deliveryorder.DeliveryOrderOpLogResDTO;
import com.gsc4cloud.gsc.vpc.api.req.PageRequest;
import com.gsc4cloud.gsc.vpc.api.req.pad.car.DeliveryOrderArriveRequest;
import com.gsc4cloud.gsc.vpc.api.req.pad.car.DeliveryOrderConfirmRequest;
import com.gsc4cloud.gsc.vpc.api.req.pad.deliveryorder.DeliveryOrderListPadReq;
import com.gsc4cloud.gsc.vpc.api.req.web.deliveryorder.DeliveryOrderDetailReq;
import com.gsc4cloud.gsc.vpc.api.req.web.deliveryorder.DeliveryOrderListReq;
import com.gsc4cloud.gsc.vpc.api.req.web.deliveryorder.DeliveryOrderOpLogReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.List;
@FeignClient(contextId = "com.gsc4cloud.gsc.vpc.api.feign.web.deliveryorder.DeliveryOrderManageRemote",
// url = "http://localhost:4001",
value = ServiceNameConstants.GSC_VCP_BIZ)
public interface DeliveryOrderManageRemote {
@PostMapping("/deliveryOrderManage/getDeliveryOrderPageList")
R<Page<DeliveryOrderListResDTO>> getDeliveryOrderPageList(PageRequest<DeliveryOrderListReq> request);
@PostMapping("/deliveryOrderManage/getDeliveryOrderDetail")
R<DeliveryOrderDetailResDTO> getDeliveryOrderDetail(DeliveryOrderDetailReq request);
@PostMapping("/deliveryOrderManage/exportDeliveryOrderAsync")
R<String> exportDeliveryOrderAsync(PageRequest<DeliveryOrderListReq> request);
@PostMapping("/deliveryOrderManage/getDeliveryOrderOpLog")
R<List<DeliveryOrderOpLogResDTO>> getDeliveryOrderOpLog(DeliveryOrderOpLogReq request);
@PostMapping("/deliveryOrderManage/getDeliveryOrderListCount")
R<DeliveryOrderListCountResDTO> getDeliveryOrderListCount(DeliveryOrderListPadReq request);
@PostMapping("/deliveryOrderManage/confirmArrive")
R<Boolean> confirmArrive(DeliveryOrderArriveRequest request);
@PostMapping("/deliveryOrderManage/confirmDelivery")
R<Boolean> confirmDelivery(DeliveryOrderConfirmRequest request);
}
package com.gsc4cloud.gsc.vpc.api.req.pad.car;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "确认到店请求")
@Data
public class DeliveryOrderArriveRequest {
@Schema(description = "交付工单唯一识别编号")
@NotEmpty(message = "交付工单唯一识别编号不能为空")
private String deliveryOrderId;
@Schema(description = "操作人名称,无需前端传递,后端自己查询")
private String operator;
}
package com.gsc4cloud.gsc.vpc.api.req.pad.car;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "确认提车请求")
@Data
public class DeliveryOrderConfirmRequest {
@Schema(description = "交付工单唯一识别编号")
@NotEmpty(message = "交付工单唯一识别编号不能为空")
private String deliveryOrderId;
@Schema(description = "操作人名称,无需前端传递,后端自己查询")
private String operator;
@Schema(description = "交付照片,多个用英文逗号隔开")
@NotEmpty(message = "此订单未上传交付照片,请上传!")
private String confirmImages;
@Schema(description = "交付备注")
private String remark;
}
package com.gsc4cloud.gsc.vpc.api.req.pad.deliveryorder;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
@Data
@Tag(name = "交付单分页查询")
public class DeliveryOrderListPadReq {
/**
* 车辆标题(品牌/车系/型号等)、买家姓名、买家联系电话
*/
@Schema(description = "模糊搜索字段")
private String searchText;
/**
* 工单状态:0-待交付 1-准备交付 2-交付完成
*/
@Schema(description = "工单状态:0-待交付 1-准备交付 2-交付完成")
private Integer orderStatus;
/**
* 工单创建开始时间
*/
@Schema(description = "工单创建开始时间")
private String createdStartDate;
/**
* 工单创建结束时间
*/
@Schema(description = "工单创建结束时间")
private String createdEndDate;
@Schema(description = "转化用户id(园区店),前端不需要传")
private String conversionUserId;
}
...@@ -22,15 +22,12 @@ public class CarAuctionRequest { ...@@ -22,15 +22,12 @@ public class CarAuctionRequest {
private StatusInfo statusInfo; private StatusInfo statusInfo;
@Schema(description = "拍卖参数", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "拍卖参数", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "拍卖参数不能为空")
private AuctionParams auctionParams; private AuctionParams auctionParams;
@Schema(description = "撮合信息,仅在 IN_NEGOTIATION 及后续状态下有值", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "撮合信息,仅在 IN_NEGOTIATION 及后续状态下有值", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "撮合信息不能为空")
private NegotiationInfo negotiationInfo; private NegotiationInfo negotiationInfo;
@Schema(description = "最终成交结果", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "最终成交结果", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "最终成交结果不能为空")
private FinalResult finalResult; private FinalResult finalResult;
@Schema(description = "核心标识") @Schema(description = "核心标识")
...@@ -62,7 +59,6 @@ public class CarAuctionRequest { ...@@ -62,7 +59,6 @@ public class CarAuctionRequest {
@Schema(description = "该状态的最后更新时间", example = "2023-10-25 16:10:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "该状态的最后更新时间", example = "2023-10-25 16:10:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@NotNull(message = "最后更新时间不能为空")
private Date updatedDate; private Date updatedDate;
} }
...@@ -71,54 +67,47 @@ public class CarAuctionRequest { ...@@ -71,54 +67,47 @@ public class CarAuctionRequest {
public static class AuctionParams { public static class AuctionParams {
@Schema(description = "拍卖的预定开始时间", example = "2023-10-25 14:00:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "拍卖的预定开始时间", example = "2023-10-25 14:00:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@NotNull(message = "拍卖开始时间不能为空")
private Date auctionStartTime; private Date auctionStartTime;
@Schema(description = "拍卖的预定结束时间", example = "2023-10-25 16:00:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "拍卖的预定结束时间", example = "2023-10-25 16:00:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@NotNull(message = "拍卖结束时间不能为空")
private Date auctionEndTime; private Date auctionEndTime;
@Schema(description = "拍卖剩余时间的秒数", example = "120", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "拍卖剩余时间的秒数", example = "120")
@NotNull(message = "剩余时间不能为空")
private Integer timeRemainingSeconds; private Integer timeRemainingSeconds;
} }
@Schema(description = "撮合信息,仅在 IN_NEGOTIATION 及后续状态下有值") @Schema(description = "撮合信息,仅在 IN_NEGOTIATION 及后续状态下有值")
@Data @Data
public static class NegotiationInfo { public static class NegotiationInfo {
@Schema(description = "拍卖结束时的最高出价,作为撮合起点", example = "178000.00", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "拍卖结束时的最高出价,作为撮合起点", example = "178000.00")
@NotNull(message = "最高出价不能为空")
private BigDecimal highestAuctionBid; private BigDecimal highestAuctionBid;
@Schema(description = "撮合过程中,当前买家给出的最优报价", example = "179000.00", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "撮合过程中,当前买家给出的最优报价", example = "179000.00")
@NotNull(message = "当前报价不能为空")
private BigDecimal currentOfferPrice; private BigDecimal currentOfferPrice;
@Schema(description = "负责该车辆撮合工作的销售或客服专员ID", example = "EMP-007", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "负责该车辆撮合工作的销售或客服专员ID", example = "EMP-007")
@NotEmpty(message = "撮合专员ID不能为空")
private String negotiatorId; private String negotiatorId;
@Schema(description = "撮合议价的截止时间", example = "2023-10-27 18:00:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "撮合议价的截止时间", example = "2023-10-27 18:00:00", type = "string", format = "date-time")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@NotNull(message = "撮合截止时间不能为空")
private Date negotiationDeadline; private Date negotiationDeadline;
} }
@Schema(description = "最终成交结果") @Schema(description = "最终成交结果")
@Data @Data
public static class FinalResult { public static class FinalResult {
@Schema(description = "最终中标者或购买者的用户ID", example = "USER-****-9527", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "最终中标者或购买者的用户ID", example = "USER-****-9527")
@NotEmpty(message = "中标者ID不能为空")
private String winnerId; private String winnerId;
@Schema(description = "最终确认成交的时间", example = "2023-10-26 11:30:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "最终确认成交的时间", example = "2023-10-26 11:30:00", type = "string", format = "date-time")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@NotNull(message = "成交时间不能为空")
private Date transactionTime; private Date transactionTime;
@Schema(description = "成交方式", example = "AUCTION", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "成交方式", example = "AUCTION")
@NotEmpty(message = "成交方式不能为空")
private String transactionType; private String transactionType;
@Schema(description = "最终成交价格(售价)", example = "179000.00")
private BigDecimal sellingPrice;
} }
} }
...@@ -54,10 +54,6 @@ public class DeliveryOrderRequest { ...@@ -54,10 +54,6 @@ public class DeliveryOrderRequest {
@NotEmpty(message = "交付工单编号不能为空") @NotEmpty(message = "交付工单编号不能为空")
private String deliveryOrderId; private String deliveryOrderId;
@Schema(description = "交付工单的当前状态:准备交付/交付中/过户中/已完成/已取消", example = "准备交付", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "交付工单状态不能为空")
private String orderStatus;
@Schema(description = "工单创建时间", example = "2023-10-26 10:35:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "工单创建时间", example = "2023-10-26 10:35:00", type = "string", format = "date-time", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@NotNull(message = "工单创建时间不能为空") @NotNull(message = "工单创建时间不能为空")
...@@ -75,6 +71,10 @@ public class DeliveryOrderRequest { ...@@ -75,6 +71,10 @@ public class DeliveryOrderRequest {
@Schema(description = "交付专员姓名", example = "王小明", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "交付专员姓名", example = "王小明", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "交付专员姓名不能为空") @NotEmpty(message = "交付专员姓名不能为空")
private String handlerName; private String handlerName;
@Schema(description = "交付专员电话", example = "1342222222", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "交付专员电话不能为空")
private String handlerPhone;
} }
@Schema(description = "关联拍卖信息") @Schema(description = "关联拍卖信息")
...@@ -165,9 +165,9 @@ public class DeliveryOrderRequest { ...@@ -165,9 +165,9 @@ public class DeliveryOrderRequest {
@Schema(description = "交付与物流信息") @Schema(description = "交付与物流信息")
@Data @Data
public static class LogisticsInfo { public static class LogisticsInfo {
@Schema(description = "交付方式:客户自提/安排送车", example = "安排送车", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "交付方式:0-客户自提/1-安排送车", example = "0", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "交付方式不能为空") @NotNull(message = "交付方式不能为空")
private String deliveryType; private Integer deliveryType;
@Schema(description = "客户自提地址", example = "广东省深圳市南山区XX交付中心", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "客户自提地址", example = "广东省深圳市南山区XX交付中心", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "自提地址不能为空") @NotEmpty(message = "自提地址不能为空")
......
package com.gsc4cloud.gsc.vpc.api.req.thirdparty.auction;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "交割合同签署请求")
@Data
public class DeliveryOrderSignRequest {
@Schema(description = "车辆在系统中的唯一ID", example = "VEH-202310-1001")
@NotEmpty(message = "车源号不能为空")
private String sourceNo;
@Schema(description = "交付工单的唯一识别编号", example = "DL-20231026-001", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "交付工单编号不能为空")
private String deliveryOrderId;
}
...@@ -36,6 +36,9 @@ public class CarManageInfoPageRequest implements Serializable { ...@@ -36,6 +36,9 @@ public class CarManageInfoPageRequest implements Serializable {
@Schema(description = "车架号") @Schema(description = "车架号")
private String vin; private String vin;
@Schema(description = "车源号")
private String sourceNo;
/** /**
* 车型名称 * 车型名称
*/ */
......
package com.gsc4cloud.gsc.vpc.api.req.web.deliveryorder;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class DeliveryOrderDetailReq {
/**
* 主键ID
*/
@Schema(description = "主键ID")
private Long id;
}
package com.gsc4cloud.gsc.vpc.api.req.web.deliveryorder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
@Tag(name = "交付单分页查询")
public class DeliveryOrderListReq {
/**
* 车源号(平台唯一识别编号)
*/
@Schema(description = "车源号(平台唯一识别编号)")
private String sourceNo;
/**
* 交付工单唯一识别编号(如 DL-20231026-001)
*/
@Schema(description = "交付工单唯一识别编号(如 DL-20231026-001)")
private String deliveryOrderId;
/**
* 工单状态:0-待交付 1-准备交付 2-交付完成
*/
@Schema(description = "工单状态:0-待交付 1-准备交付 2-交付完成")
private Integer orderStatus;
/**
* 交付专员姓名
*/
@Schema(description = "交付专员姓名")
private String handlerName;
/**
* 交付专员姓名
*/
@Schema(description = "交付专员手机号")
private String handlerPhone;
/**
* 关联拍卖编号(如 PM-20231025-088)
*/
@Schema(description = "关联拍卖编号(如 PM-20231025-088)")
private String auctionId;
/**
* 车辆标题(品牌/车系/型号等)
*/
@Schema(description = "车辆标题(品牌/车系/型号等)")
private String vehicleTitle;
/**
* 车辆识别代号(车架号)
*/
@Schema(description = "车辆识别代号(车架号)")
private String vin;
/**
* 车辆当前车牌号
*/
@Schema(description = "车辆当前车牌号")
private String licensePlate;
/**
* 尾款支付状态:0-未支付 1-已结清
*/
@Schema(description = "尾款支付状态:0-未支付 1-已结清")
private Integer paymentStatus;
/**
* 买家姓名
*/
@Schema(description = "买家姓名")
private String buyerName;
/**
* 买家联系电话
*/
@Schema(description = "买家联系电话")
private String buyerContact;
/**
* 交付方式:0-客户自提 1-安排送车
*/
@Schema(description = "交付方式:0-客户自提 1-安排送车")
private Integer deliveryType;
/**
* 客户自提地址
*/
@Schema(description = "客户自提地址")
private String pickupAddress;
/**
* 车辆保管人姓名
*/
@Schema(description = "车辆保管人姓名")
private String custodianName;
/**
* 车辆保管人联系方式
*/
@Schema(description = "车辆保管人联系方式")
private String custodianPhone;
/**
* 工单创建开始时间
*/
@Schema(description = "工单创建开始时间")
private String createdStartDate;
/**
* 工单创建结束时间
*/
@Schema(description = "工单创建结束时间")
private String createdEndDate;
/**
* 车辆成交开始时间
*/
@Schema(description = "车辆成交开始时间")
private String transactionStartTime;
/**
* 车辆成交结束时间
*/
@Schema(description = "车辆成交结束时间")
private String transactionEndTime;
/**
* 预约交付/提车开始时间
*/
@Schema(description = "预约交付/提车开始时间")
private String scheduledStartTime;
/**
* 预约交付/提车结束时间
*/
@Schema(description = "预约交付/提车结束时间")
private String scheduledEndTime;
/**
* 实际完成交付开始时间
*/
@Schema(description = "实际完成交付开始时间")
private String actualStartTime;
/**
* 实际完成交付结束时间
*/
@Schema(description = "实际完成交付结束时间")
private String actualEndTime;
/**
* 交付单最后更新时间
*/
@Schema(description = "交付单最后更新开始时间")
private String updatedStartDate;
/**
* 交付单最后更新时间
*/
@Schema(description = "交付单最后更新结束时间")
private String updatedEndDate;
/**
* 车辆标题(品牌/车系/型号等)、买家姓名、买家联系电话
*/
@Schema(description = "模糊搜索字段")
private String searchText;
@Schema(description = "主键ids,多个以英文逗号隔开")
private String idsStr;
@Schema(description = "转化用户id(园区店)")
private String conversionUserId;
@Schema(description = "修改人,不需要前端传")
private String updatedBy;
@Schema(description = "查询来源:0-web 1-pad,前端不需要传")
private Integer querySource;
@Schema(description = "主键ids")
private List<Long> ids;
}
package com.gsc4cloud.gsc.vpc.api.req.web.deliveryorder;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class DeliveryOrderOpLogReq {
/**
* 交付工单唯一识别编号(如 DL-20231026-001)
*/
@Schema(description = "交付工单唯一识别编号(如 DL-20231026-001)")
private String deliveryOrderId;
}
package com.gsc4cloud.gsc.vpc.api.util;
import com.google.common.hash.Hashing;
/**
* @BelongsProject: glsx-accounts-test
* @BelongsPackage: com.accounts.devtool.hashing.shorturi
* @Author: dell_xw
* @CreateTime: 2022-06-22 18:36
* @Description: TODO
* @Version: 1.0
*/
public class CommonUtil {
/**
* murmurhash算法
* @param param
* @return
*/
public static long murmurHash32(String param){
long murmurHash32 = Hashing.murmur3_32().hashUnencodedChars(param).padToLong();
return murmurHash32;
}
}
package com.gsc4cloud.gsc.vpc.api.util;
import org.springframework.stereotype.Component;
/**
* @BelongsProject: glsx-accounts-test
* @BelongsPackage: com.accounts.devtool.hashing.shorturi
* @Author: dell_xw
* @CreateTime: 2022-06-22 18:38
* @Description: TODO
* @Version: 1.0
*/
@Component
public class ShortLinkComponent {
/**
* 62个字符
*/
private static final String CHARS = "123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
private static final int DEFAULT_CODE_LENGTH = 6;
/**
* 生成短链码
* @param param
* @return
*/
public String createShortLinkCode(String param){
long murmurhash = CommonUtil.murmurHash32(param);
//进制转换
String code = encodeToBase61(murmurhash);
if (code.length() < DEFAULT_CODE_LENGTH) {
StringBuilder builder = new StringBuilder(code);
while (builder.length() < DEFAULT_CODE_LENGTH) {
builder.append('0');
}
code = builder.toString();
}
return code;
}
/**
* 10进制转61进制
* @param num
* @return
*/
private String encodeToBase61(long num){
// StringBuffer线程安全,StringBuilder线程不安全
StringBuffer sb = new StringBuffer();
do{
int i = (int )(num%61);
sb.append(CHARS.charAt(i));
num = num/61;
}while (num>0);
String value = sb.reverse().toString();
return value;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!