Commit 354e7471 by 林冲

Merge remote-tracking branch 'origin/v5.7.0' into v5.7.1

# Conflicts:
#	pom.xml
#	src/main/java/com/gsc4cloud/gsc/vpc/api/feign/web/evalorder/EvalOrderManageRemote.java
#	src/main/java/com/gsc4cloud/gsc/vpc/api/util/OssUtils.java
2 parents 2ff8915e caa98d25
Showing 22 changed files with 397 additions and 10 deletions
......@@ -100,10 +100,10 @@ public class CarManageInfoExcelDTO implements Serializable {
private String carCreator;
/**
* 车辆状态:0-库存中 1-已出售 2-待售 3-已预定 4-已交付 5-待排卖 6-拍卖中 7-已退库 默认:0-库存中
* 车辆状态:0-库存中 1-已出售 2-待售 3-已预定 4-已交付 5-待排卖 6-拍卖中 7-已退库 8-预展中 默认:0-库存中
*/
@ExcelProperty(value = "车辆状态", converter= ReplaceIntegerToStringConvert.class)
@ExcelValueReplace(replace = {"库存中_0", "已出售_1", "代售_2", "已预定_3", "已交付_4", "待拍卖_5", "拍卖中_6", "已退库_7"}, repeatValue = true)
@ExcelValueReplace(replace = {"库存中_0", "已出售_1", "代售_2", "已预定_3", "已交付_4", "待拍卖_5", "拍卖中_6", "已退库_7", "预展中_8"}, repeatValue = true)
private Integer carStatus;
/**
......
......@@ -120,4 +120,14 @@ public class EvalOrderEmailDTO {
* 评估单状态描述
*/
private String statusDesc;
/**
* 内饰颜色
*/
private String interiorColor;
/**
* 外观颜色
*/
private String exteriorColor;
}
\ No newline at end of file
......@@ -247,4 +247,10 @@ public class EvalCarBaseReqDTO {
@Schema(description = "车况描述")
@Size(max = 1000, message = "车况描述长度不能超过1000个字符")
private String conditionDescription;
/**
* OCR识别-行驶证住址
*/
@Schema(description = "OCR识别-行驶证住址")
private String licenseAddress;
}
......@@ -84,4 +84,10 @@ public class CarLicenseOcrResDTO implements Serializable {
*/
@Schema(description = "品牌型号")
private String completeBrandModel;
/**
* OCR识别-行驶证住址
*/
@Schema(description = "OCR识别-行驶证住址")
private String licenseAddress;
}
......@@ -221,4 +221,18 @@ public class EvalOrderPageResDTO implements Serializable {
@Schema(description = "合同企业主体: hzglsk-惠州广联数科科技有限公司、szyjzh-深圳市优加智汇科技有限公司")
private String contractOrg;
/**
* 是否展示"车辆评估"按钮
* 评估单状态为评估中(10)时展示,其他状态不展示
*/
@Schema(description = "是否展示「车辆评估」按钮")
private Boolean showEvalBtn;
/**
* 是否展示"评估核价"按钮
* 评估单状态为评估中(10)且当前最大报价轮次存在评估师报价(opType=10)时展示
*/
@Schema(description = "是否展示「评估核价」按钮")
private Boolean showCheckPriceBtn;
}
......@@ -96,6 +96,12 @@ public class CheckReportDetailResDTO {
private String reportUrl;
/**
* 报告图片url
*/
@Schema(description = "报告图片url")
private String reportImageUrl;
/**
* 报告解析json
*/
@Schema(description = "报告解析json")
......
......@@ -90,4 +90,10 @@ public class CheckReportPageResDTO implements Serializable {
*/
@Schema(description = "报告url")
private String reportUrl;
/**
* 报告url
*/
@Schema(description = "报告图片url")
private String reportImageUrl;
}
......@@ -2,6 +2,7 @@ package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.evalorder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gsc4cloud.gsc.vpc.api.dto.entitydto.evalorder.EvalPriceHistoryDTO;
import com.gsc4cloud.gsc.vpc.api.enums.EvalSourceEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
......@@ -237,6 +238,22 @@ public class EvalOrderDetailResDTO {
@Schema(description = "车辆品牌名称")
private String carBrand;
/**
* 报价历史列表(按报价时间倒序排序)
*/
@Schema(description = "报价历史列表")
private List<EvalPriceHistoryDTO> priceHistoryListDTO;
/**
* 除客户报价(opType=20)以外的最大报价轮次
*/
@Schema(description = "除客户报价以外的最大报价轮次")
private Integer maxRoundNo;
@Schema(description = "外观颜色")
private String exteriorColor;
@Schema(description = "内饰颜色")
private String interiorColor;
}
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.financialledger;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 财务台账查询结果 DTO(biz 层返回,供 Service 解析 JSON 字段后填充)
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class FinancialLedgerDTO implements Serializable {
private static final long serialVersionUID = 1L;
// ===== 评估单 =====
@Schema(description = "评估单编号")
private String evalOrderNo;
@Schema(description = "收车价")
private BigDecimal evalPrice;
// ===== 车辆基本信息 =====
@Schema(description = "车牌号")
private String licensePlate;
@Schema(description = "车架号")
private String vin;
@Schema(description = "卖方单位地址/个人地址(OCR识别-行驶证住址)")
private String licenseAddress;
@Schema(description = "登记证号")
private String registrationNo;
@Schema(description = "厂牌(品牌)型号")
private String brandModel;
@Schema(description = "车辆类型")
private String vehicleType;
// ===== 查车宝数据 =====
@Schema(description = "查车宝 data_json 原文(内部字段,不对外暴露)")
private String chaboshiDataJson;
@Schema(description = "排量")
private String displacement;
// ===== 入库时间 =====
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "入库时间")
private Date storageTime;
// ===== 电子合同(二手车转让协议甲方信息,electronic_contract_type=1),JSON 原文供 Service 解析 =====
@Schema(description = "二手车转让协议合同字段JSON(内部字段,不对外暴露)")
private String saleContractField;
// ===== 电子合同解析后的甲方字段(Service 填充) =====
@Schema(description = "卖方单位/个人(甲方名称)")
private String partAName;
@Schema(description = "卖方单位代码/车主身份证号码")
private String partAIdentityCode;
@Schema(description = "电话")
private String partAContactMobile;
// ===== 确认交车合同(electronic_contract_type=4)JSON 原文供 Service 解析 =====
@Schema(description = "确认交车合同字段JSON(内部字段,不对外暴露)")
private String confirmContractField;
// ===== 解析后的证件链接(Service 填充) =====
@Schema(description = "行驶证图片链接")
private String motorRegistrationCertificateUrl;
@Schema(description = "登记证图片链接")
private String motorBookUrl;
}
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.financialledger;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 财务台账 Excel 导出 DTO
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class FinancialLedgerExcelDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@ExcelProperty(value = "卖方单位/个人")
private String partAName;
@ExcelProperty(value = "卖方单位代码/车主身份证号码")
private String partAIdentityCode;
@ExcelProperty(value = "电话")
private String partAContactMobile;
@ExcelProperty(value = "卖方单位地址/个人地址")
private String licenseAddress;
@ExcelProperty(value = "登记证号")
private String registrationNo;
@ExcelProperty(value = "厂牌(品牌)型号")
private String brandModel;
@ExcelProperty(value = "车辆类型")
private String vehicleType;
@ExcelProperty(value = "车牌")
private String licensePlate;
@ExcelProperty(value = "车架号")
private String vin;
@ExcelProperty(value = "排量")
private String displacement;
@ExcelProperty(value = "收车价")
private BigDecimal evalPrice;
@DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
@ExcelProperty(value = "入库时间")
private Date storageTime;
}
......@@ -54,10 +54,10 @@ public class CarManageInfo implements Serializable {
private Byte pushStatus;
/**
* 车辆状态:0-库存中 1-已出售 2-待售 3-已预定 4-已交付 5-待排卖 6-拍卖中 7-已退库 默认:0-库存中
* 车辆状态:0-库存中 1-已出售 2-待售 3-已预定 4-已交付 5-待排卖 6-拍卖中 7-已退库 8-预展中 默认:0-库存中
*/
@TableField(value = "car_status")
@Schema(description = "车辆状态:0-库存中 1-已出售 2-待售 3-已预定 4-已交付 5-待排卖 6-拍卖中 7-已退库 默认:0-库存中")
@Schema(description = "车辆状态:0-库存中 1-已出售 2-待售 3-已预定 4-已交付 5-待排卖 6-拍卖中 7-已退库 8-预展中 默认:0-库存中")
private Integer carStatus;
/**
......
......@@ -110,6 +110,13 @@ public class CheckReport implements Serializable {
private String reportUrl;
/**
* 报告图片url
*/
@TableField(value = "report_image_url")
@Schema(description = "报告图片url")
private String reportImageUrl;
/**
* 报告解析json
*/
@TableField(value = "json_result")
......
......@@ -382,6 +382,14 @@ public class EvalCarBase implements Serializable {
private String brandModel;
/**
* OCR识别-行驶证住址
*/
@TableField(value = "license_address")
@Schema(description = "OCR识别-行驶证住址")
private String licenseAddress;
/**
* 通常是1,3,4级拼接组成车型
* @return 车型名称
*/
......
......@@ -44,20 +44,19 @@ public class EvalPriceHistory implements Serializable {
private Integer roundNo;
/**
* 操作类型:10评估师报价,20客户报价,30评估师驳回
* 操作类型:10评估师报价,20客户报价,30评估师驳回,40核价师核价,50核价师驳回
*/
@TableField(value = "op_type")
private Integer opType;
/**
* 评估价格(元)
* 评估价格(元),仅评估师报价或核价师核价使用
*/
@TableField(value = "eval_price")
private BigDecimal evalPrice;
/**
* 评估意见
* 评估意见,仅评估师报价或核价师核价使用
*/
@TableField(value = "eval_opinion")
private String evalOpinion;
......
......@@ -23,6 +23,7 @@ import java.util.Optional;
public enum AuctionStatusEnum implements BaseEnum<String, String> {
WAIT_AUCTION("WAIT_AUCTION", "待拍卖"),
PREVIEW("PREVIEW", "预展中"),
AUCTIONING("AUCTIONING", "拍卖中"),
WAIT_PICKUP("WAIT_PICKUP", "待提车"),
TRANSFERRING("TRANSFERRING", "车辆过户中"),
......@@ -50,6 +51,7 @@ public enum AuctionStatusEnum implements BaseEnum<String, String> {
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(PREVIEW, CarStatusEnum.PREVIEW); // 预展中
TO_CAR_STATUS.put(AUCTIONING, CarStatusEnum.AUCTIONING); // 拍卖中
TO_CAR_STATUS.put(WAIT_PICKUP, CarStatusEnum.RESERVED); // 待提车 -> 已预定
TO_CAR_STATUS.put(TRANSFERRING, CarStatusEnum.DELIVERED); // 过户中 -> 已交付
......
......@@ -17,7 +17,8 @@ public enum CarStatusEnum implements BaseEnum<Integer, String> {
DELIVERED(4, "已交付"),
WAITING_AUCTION(5, "待拍卖"),
AUCTIONING(6, "拍卖中"),
RETURNED(7, "已退库");
RETURNED(7, "已退库"),
PREVIEW(8, "预展中");
private final Integer code;
private final String desc;
......@@ -49,6 +50,7 @@ public enum CarStatusEnum implements BaseEnum<Integer, String> {
STATUS_ORDER.put(WAITING_AUCTION, 5);
STATUS_ORDER.put(AUCTIONING, 6);
STATUS_ORDER.put(RETURNED, 7);
STATUS_ORDER.put(PREVIEW, 8);
}
// 状态流转规则:key为当前状态,value为可流转到的状态集合
......
......@@ -31,6 +31,8 @@ public enum EvalOrderLogOperateTypeEnum implements BaseEnum<String, String> {
OA_APPROVING("OA_APPROVE_SUCCESS", "发送oa审批"),
OA_APPROVE_REJECT("OA_APPROVE_REJECT", "OA审批驳回"),
REVOKE_SALE_CONTRACT("REVOKE_SALE_CONTRACT", "撤回合同"),
CHECK_PRICE_APPROVE("CHECK_PRICE_APPROVE", "核价通过"),
CHECK_PRICE_REJECT("CHECK_PRICE_REJECT", "核价驳回"),
;
private final String operateType;
......
......@@ -4,7 +4,9 @@ public enum EvalPriceHistroyOptTypeEnum implements BaseEnum<Integer, String>{
APPRAISER_QUOTE(10, "评估师报价"),
CUSTOMER_QUOTE(20, "客户报价"),
APPRAISER_REJECT(30, "评估师驳回");
APPRAISER_REJECT(30, "评估师驳回"),
CHECK_PRICE_APPROVE(40, "核价通过"),
CHECK_PRICE_REJECT(50, "核价驳回");
private final Integer code;
......
......@@ -42,4 +42,7 @@ public interface EvalOrderManageRemote {
@PostMapping("/evalOrder/create")
R<EvalOrderCreateResDTO> create(EvalOrderCreateRequest request);
@PostMapping("/evalOrder/checkPrice")
R<Boolean> checkPrice(EvalOrderCheckPriceRequest request);
}
package com.gsc4cloud.gsc.vpc.api.feign.web.financialledger;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.financialledger.FinancialLedgerDTO;
import com.gsc4cloud.gsc.vpc.api.req.PageRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.financialledger.FinancialLedgerPageRequest;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
* 财务台账远程调用接口
*/
@FeignClient(contextId = "com.gsc4cloud.gsc.vpc.api.feign.web.financialledger.FinancialLedgerRemote", value = "gsc-vcp-biz")
public interface FinancialLedgerRemote {
/**
* 财务台账分页列表
*/
@Operation(summary = "财务台账分页列表")
@PostMapping("/financialLedger/pageList")
R<Page<FinancialLedgerDTO>> pageList(@RequestBody PageRequest<FinancialLedgerPageRequest> request);
/**
* 异步导出财务台账
*/
@Operation(summary = "异步导出财务台账")
@PostMapping("/financialLedger/exportAsync")
R<String> exportAsync(@RequestBody PageRequest<FinancialLedgerPageRequest> request);
}
package com.gsc4cloud.gsc.vpc.api.req.web.evalorder;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "评估单核价请求")
@Data
public class EvalOrderCheckPriceRequest {
/**
* 评估单编号/工单编号
*/
@Schema(description = "评估单编号/工单编号")
@NotEmpty(message = "评估单单号不能为空")
private String evalOrderNo;
@Schema(description = "车架号")
@NotEmpty(message = "车架号不能为空")
private String vin;
@Schema(description = "操作类型:40核价通过,50核价驳回")
@NotNull(message = "操作类型不能为空")
private Integer opType;
@Schema(description = "核价(元)")
private BigDecimal checkPrice;
@Schema(description = "核价意见")
private String checkOpinion;
@Schema(description = "驳回原因,仅驳回使用")
private String rejectReason;
@Schema(description = "驳回意见,仅驳回使用")
private String rejectSuggestion;
@Schema(description = "操作人")
private String operator;
@Schema(description = "操作人手机号")
private String operatorPhone;
}
package com.gsc4cloud.gsc.vpc.api.req.web.financialledger;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
* 财务台账分页查询请求
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class FinancialLedgerPageRequest implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 评估单编号(模糊搜索)
*/
@Schema(description = "评估单编号(模糊搜索)")
private String evalOrderNo;
/**
* 车牌号(模糊搜索)
*/
@Schema(description = "车牌号(模糊搜索)")
private String licensePlate;
/**
* 车架号(模糊搜索)
*/
@Schema(description = "车架号(模糊搜索)")
private String vin;
/**
* 卖方单位/个人(模糊搜索)
*/
@Schema(description = "卖方单位/个人(模糊搜索)")
private String partAName;
/**
* 入库时间-开始
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "入库时间-开始")
private Date storageStartTime;
/**
* 入库时间-结束
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "入库时间-结束")
private Date storageEndTime;
/**
* 操作人
*/
@Schema(description = "操作人")
private String updatedBy;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!