Commit eb3e1830 by 崔彦峰

modify:修改车辆台账列表和导出代码。

1 parent 95f95a24
package com.gsc4cloud.gsc.vpc.api.dto.web.resdto.vehicleledger;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 车辆台账分页响应DTO
*
* @author auto-generated
*/
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class VehicleLedgerDTO implements Serializable {
private static final long serialVersionUID = 1L;
// ========== 一、直接对应数据库字段 ==========
@Schema(description = "评估单编号")
private String evalOrderNo;
@Schema(description = "买卖合同编号")
private String saleContractNo;
@Schema(description = "确认交接合同编号")
private String handoverContractNo;
@Schema(description = "补充合同编号")
private String supplementaryContractNo;
@Schema(description = "代保管合同编号")
private String custodyContractNo;
@Schema(description = "车辆管理档案ID")
private Long carManageInfoId;
@Schema(description = "车辆状态")
private Integer carStatus;
@Schema(description = "评估单来源:1-app 2-小程序 3-人工导入")
private Integer source;
@Schema(description = "评估单来源名称")
private String sourceName;
@Schema(description = "门店")
private String sellerMerchantName;
@Schema(description = "销售顾问")
private String sellerName;
@Schema(description = "驻店人员")
private String conversionName;
@Schema(description = "车牌")
private String licensePlate;
@Schema(description = "类别:1-置换车/2-报废车")
private Integer vehicleCategory;
@Schema(description = "类别名称")
private String vehicleCategoryName;
@Schema(description = "品牌")
private String carBrand;
@Schema(description = "车架号")
private String vin;
@Schema(description = "车主身份证号码")
private String partAIdentityCode;
@Schema(description = "电话")
private String partAContactMobile;
@Schema(description = "卖方单位/个人地址")
private String partAAddress;
@Schema(description = "登记证号")
private String registrationNo;
@Schema(description = "OCR识别-品牌车型")
private String brandModel;
@Schema(description = "OCR识别-车辆类型")
private String vehicleType;
@Schema(description = "拍卖平台")
private String auctionPlatform = "优加车拍";
@Schema(description = "备注")
private String sellingNotes;
// ========== 二、合同签署状态字段 ==========
@Schema(description = "转让协议签署:1-是 0-否")
private Integer transferAgreementSigned;
@Schema(description = "转让协议签署名称")
private String transferAgreementSignedName;
@Schema(description = "交接确认单签署:1-是 0-否")
private Integer handoverConfirmSigned;
@Schema(description = "交接确认单签署名称")
private String handoverConfirmSignedName;
@Schema(description = "补充协议签署:1-是 0-否")
private Integer supplementaryAgreementSigned;
@Schema(description = "补充协议签署名称")
private String supplementaryAgreementSignedName;
@Schema(description = "代保管协议签署:1-是 0-否")
private Integer custodyAgreementSigned;
@Schema(description = "代保管协议签署名称")
private String custodyAgreementSignedName;
@Schema(description = "签约人")
private String previousOwnerName;
@Schema(description = "收款方")
private String payeeName;
// ========== 三、企微审批相关字段(定金) ==========
@Schema(description = "企微审批单号(定金)")
private String depositOaFlowCode;
@Schema(description = "企微审批状态(定金):1-审核中 2-已通过 3-已驳回 4-已撤销")
private Integer depositOaFlowStatus;
@Schema(description = "企微审批状态名称(定金)")
private String depositOaFlowStatusName;
// ========== 四、企微审批相关字段(尾款/全款) ==========
@Schema(description = "企微审批单号(尾款/全款)")
private String finalPaymentOaFlowCode;
@Schema(description = "企微审批状态(尾款/全款):1-审核中 2-已通过 3-已驳回 4-已撤销")
private Integer finalPaymentOaFlowStatus;
@Schema(description = "企微审批状态名称(尾款/全款)")
private String finalPaymentOaFlowStatusName;
// ========== 五、收购价格及付款相关字段 ==========
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "收购时间(付款)")
private Date purchaseTime;
@Schema(description = "收购价格/元(包含对公流量费)")
private BigDecimal contractPrice;
@Schema(description = "是否全款:1-定金+尾款(否) 2-全款(是)")
private Integer paymentType;
@Schema(description = "是否全款名称")
private String paymentTypeName;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "定金时间")
private Date depositTime;
@Schema(description = "定金金额")
private BigDecimal depositAmount;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "尾款时间")
private Date finalPaymentTime;
@Schema(description = "尾款金额")
private BigDecimal finalPaymentAmount;
// ========== 六、车辆档案及库存相关字段 ==========
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "入库时间")
private Date storageTime;
@Schema(description = "是否交付:1-是 0-否")
private Integer isDelivered;
@Schema(description = "是否交付名称")
private String isDeliveredName;
@Schema(description = "是否在库:1-是 0-否")
private Integer isInStock;
@Schema(description = "是否在库名称")
private String isInStockName;
@Schema(description = "在库时长(天)")
private Long daysInStock;
@Schema(description = "车源号(平台唯一识别编号)")
private String sourceNo;
// ========== 七、拍卖相关字段 ==========
@Schema(description = "是否拍卖:1-是 0-否")
private Integer isAuctioned;
@Schema(description = "是否拍卖名称")
private String isAuctionedName;
@Schema(description = "拍卖价格/元")
private BigDecimal sellingPrice;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "拍卖时间")
private Date auctionTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "收款时间")
private Date sellingTime;
@Schema(description = "付款方")
private String seller;
@Schema(description = "收拍利润")
private BigDecimal profit;
// ========== 八、其他字段 ==========
@Schema(description = "是否对账")
private String isReconciled;
// ========== 九、SQL查询的中间字段(不对外暴露) ==========
@Schema(description = "转让协议签署状态(SQL查询)", hidden = true)
private Integer saleContractStatus;
@Schema(description = "交接确认单签署状态(SQL查询)", hidden = true)
private Integer handoverContractStatus;
@Schema(description = "补充协议签署状态(SQL查询)", hidden = true)
private Integer supplementaryContractStatus;
@Schema(description = "代保管协议签署状态(SQL查询)", hidden = true)
private Integer custodyContractStatus;
@Schema(description = "转让协议合同字段JSON(SQL查询)", hidden = true)
private String saleContractField;
@Schema(description = "定金付款方式(SQL查询): 1-银行转账 2-冲账", hidden = true)
private Integer depositPaymentMethod;
@Schema(description = "定金打款状态(SQL查询)", hidden = true)
private Integer depositOaFlowPaymentStatus;
@Schema(description = "定金打款时间(SQL查询)", hidden = true)
private Date depositPayTime;
@Schema(description = "定金审批更新时间(SQL查询)", hidden = true)
private Date depositUpdatedDate;
@Schema(description = "尾款/全款付款方式(SQL查询):1-银行转账 2-冲账", hidden = true)
private Integer finalPaymentMethod;
@Schema(description = "尾款/全款付款类型(SQL查询):2-尾款 3-全款", hidden = true)
private Integer finalPaymentType;
@Schema(description = "尾款/全款打款状态(SQL查询)", hidden = true)
private Integer finalOaFlowPaymentStatus;
@Schema(description = "尾款/全款打款时间(SQL查询)", hidden = true)
private Date finalPayTime;
@Schema(description = "尾款/全款审批更新时间(SQL查询)", hidden = true)
private Date finalUpdatedDate;
}
...@@ -32,15 +32,6 @@ public class VehicleLedgerExcelDTO implements Serializable { ...@@ -32,15 +32,6 @@ public class VehicleLedgerExcelDTO implements Serializable {
@ExcelProperty(value = "评估单来源") @ExcelProperty(value = "评估单来源")
private String sourceName; private String sourceName;
@ExcelProperty(value = "门店")
private String sellerMerchantName;
@ExcelProperty(value = "销售顾问")
private String sellerName;
@ExcelProperty(value = "驻店人员")
private String conversionName;
@ExcelProperty(value = "转让协议签署") @ExcelProperty(value = "转让协议签署")
private String transferAgreementSignedName; private String transferAgreementSignedName;
...@@ -53,12 +44,6 @@ public class VehicleLedgerExcelDTO implements Serializable { ...@@ -53,12 +44,6 @@ public class VehicleLedgerExcelDTO implements Serializable {
@ExcelProperty(value = "代保管协议签署") @ExcelProperty(value = "代保管协议签署")
private String custodyAgreementSignedName; private String custodyAgreementSignedName;
@ExcelProperty(value = "签约人")
private String signer;
@ExcelProperty(value = "收款方")
private String payeeName;
@ExcelProperty(value = "企微审批单号(定金)") @ExcelProperty(value = "企微审批单号(定金)")
private String depositOaFlowCode; private String depositOaFlowCode;
...@@ -71,6 +56,21 @@ public class VehicleLedgerExcelDTO implements Serializable { ...@@ -71,6 +56,21 @@ public class VehicleLedgerExcelDTO implements Serializable {
@ExcelProperty(value = "企微审批状态(尾款/全款)") @ExcelProperty(value = "企微审批状态(尾款/全款)")
private String finalPaymentOaFlowStatusName; private String finalPaymentOaFlowStatusName;
@ExcelProperty(value = "门店")
private String sellerMerchantName;
@ExcelProperty(value = "销售顾问")
private String sellerName;
@ExcelProperty(value = "驻店人员")
private String conversionName;
@ExcelProperty(value = "签约人")
private String signer;
@ExcelProperty(value = "收款方")
private String payeeName;
@ExcelProperty(value = "车牌") @ExcelProperty(value = "车牌")
private String licensePlate; private String licensePlate;
...@@ -117,14 +117,14 @@ public class VehicleLedgerExcelDTO implements Serializable { ...@@ -117,14 +117,14 @@ public class VehicleLedgerExcelDTO implements Serializable {
@ExcelProperty(value = "是否在库") @ExcelProperty(value = "是否在库")
private String isInStockName; private String isInStockName;
@ExcelProperty(value = "在库时长(天)") @ExcelProperty(value = "在库时长")
private Long daysInStock; private Long daysInStock;
@ExcelProperty(value = "是否拍卖") @ExcelProperty(value = "是否拍卖")
private String isAuctionedName; private String isAuctionedName;
@ExcelProperty(value = "拍卖价格/元") @ExcelProperty(value = "拍卖价格/元")
private BigDecimal auctionPrice; private BigDecimal sellingPrice;
@DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
@ExcelProperty(value = "拍卖时间") @ExcelProperty(value = "拍卖时间")
...@@ -132,10 +132,10 @@ public class VehicleLedgerExcelDTO implements Serializable { ...@@ -132,10 +132,10 @@ public class VehicleLedgerExcelDTO implements Serializable {
@DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
@ExcelProperty(value = "收款时间") @ExcelProperty(value = "收款时间")
private Date receivableTime; private Date sellingTime;
@ExcelProperty(value = "付款方") @ExcelProperty(value = "付款方")
private String payer; private String seller;
@ExcelProperty(value = "收拍利润") @ExcelProperty(value = "收拍利润")
private BigDecimal profit; private BigDecimal profit;
......
...@@ -68,9 +68,6 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -68,9 +68,6 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "类别:1-置换车/2-报废车") @Schema(description = "类别:1-置换车/2-报废车")
private Integer vehicleCategory; private Integer vehicleCategory;
@Schema(description = "类别名称")
private String vehicleCategoryName;
@Schema(description = "品牌") @Schema(description = "品牌")
private String carBrand; private String carBrand;
...@@ -87,16 +84,16 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -87,16 +84,16 @@ public class VehicleLedgerPageResDTO implements Serializable {
private String partAAddress; private String partAAddress;
@Schema(description = "登记证号") @Schema(description = "登记证号")
private String registrationCertificateNo; private String registrationNo;
@Schema(description = "厂牌(品牌)型号") @Schema(description = "OCR识别-品牌车型")
private String brandModel; private String brandModel;
@Schema(description = "车辆类型") @Schema(description = "OCR识别-车辆类型")
private String vehicleType; private String vehicleType;
@Schema(description = "拍卖平台") @Schema(description = "拍卖平台")
private String auctionPlatform; private String auctionPlatform = "优加车拍";
@Schema(description = "备注") @Schema(description = "备注")
private String sellingNotes; private String sellingNotes;
...@@ -106,27 +103,15 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -106,27 +103,15 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "转让协议签署:1-是 0-否") @Schema(description = "转让协议签署:1-是 0-否")
private Integer transferAgreementSigned; private Integer transferAgreementSigned;
@Schema(description = "转让协议签署名称")
private String transferAgreementSignedName;
@Schema(description = "交接确认单签署:1-是 0-否") @Schema(description = "交接确认单签署:1-是 0-否")
private Integer handoverConfirmSigned; private Integer handoverConfirmSigned;
@Schema(description = "交接确认单签署名称")
private String handoverConfirmSignedName;
@Schema(description = "补充协议签署:1-是 0-否") @Schema(description = "补充协议签署:1-是 0-否")
private Integer supplementaryAgreementSigned; private Integer supplementaryAgreementSigned;
@Schema(description = "补充协议签署名称")
private String supplementaryAgreementSignedName;
@Schema(description = "代保管协议签署:1-是 0-否") @Schema(description = "代保管协议签署:1-是 0-否")
private Integer custodyAgreementSigned; private Integer custodyAgreementSigned;
@Schema(description = "代保管协议签署名称")
private String custodyAgreementSignedName;
@Schema(description = "签约人") @Schema(description = "签约人")
private String previousOwnerName; private String previousOwnerName;
...@@ -141,9 +126,6 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -141,9 +126,6 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "企微审批状态(定金):1-审核中 2-已通过 3-已驳回 4-已撤销") @Schema(description = "企微审批状态(定金):1-审核中 2-已通过 3-已驳回 4-已撤销")
private Integer depositOaFlowStatus; private Integer depositOaFlowStatus;
@Schema(description = "企微审批状态名称(定金)")
private String depositOaFlowStatusName;
// ========== 四、企微审批相关字段(尾款/全款) ========== // ========== 四、企微审批相关字段(尾款/全款) ==========
@Schema(description = "企微审批单号(尾款/全款)") @Schema(description = "企微审批单号(尾款/全款)")
...@@ -152,9 +134,6 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -152,9 +134,6 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "企微审批状态(尾款/全款):1-审核中 2-已通过 3-已驳回 4-已撤销") @Schema(description = "企微审批状态(尾款/全款):1-审核中 2-已通过 3-已驳回 4-已撤销")
private Integer finalPaymentOaFlowStatus; private Integer finalPaymentOaFlowStatus;
@Schema(description = "企微审批状态名称(尾款/全款)")
private String finalPaymentOaFlowStatusName;
// ========== 五、收购价格及付款相关字段 ========== // ========== 五、收购价格及付款相关字段 ==========
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
...@@ -167,9 +146,6 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -167,9 +146,6 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "是否全款:1-定金+尾款(否) 2-全款(是)") @Schema(description = "是否全款:1-定金+尾款(否) 2-全款(是)")
private Integer paymentType; private Integer paymentType;
@Schema(description = "是否全款名称")
private String paymentTypeName;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "定金时间") @Schema(description = "定金时间")
private Date depositTime; private Date depositTime;
...@@ -193,15 +169,9 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -193,15 +169,9 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "是否交付:1-是 0-否") @Schema(description = "是否交付:1-是 0-否")
private Integer isDelivered; private Integer isDelivered;
@Schema(description = "是否交付名称")
private String isDeliveredName;
@Schema(description = "是否在库:1-是 0-否") @Schema(description = "是否在库:1-是 0-否")
private Integer isInStock; private Integer isInStock;
@Schema(description = "是否在库名称")
private String isInStockName;
@Schema(description = "在库时长(天)") @Schema(description = "在库时长(天)")
private Long daysInStock; private Long daysInStock;
...@@ -213,11 +183,8 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -213,11 +183,8 @@ public class VehicleLedgerPageResDTO implements Serializable {
@Schema(description = "是否拍卖:1-是 0-否") @Schema(description = "是否拍卖:1-是 0-否")
private Integer isAuctioned; private Integer isAuctioned;
@Schema(description = "是否拍卖名称")
private String isAuctionedName;
@Schema(description = "拍卖价格/元") @Schema(description = "拍卖价格/元")
private BigDecimal auctionPrice; private BigDecimal sellingPrice;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "拍卖时间") @Schema(description = "拍卖时间")
...@@ -225,10 +192,10 @@ public class VehicleLedgerPageResDTO implements Serializable { ...@@ -225,10 +192,10 @@ public class VehicleLedgerPageResDTO implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Schema(description = "收款时间") @Schema(description = "收款时间")
private Date receivableTime; private Date sellingTime;
@Schema(description = "付款方") @Schema(description = "付款方")
private String payer; private String seller;
@Schema(description = "收拍利润") @Schema(description = "收拍利润")
private BigDecimal profit; private BigDecimal profit;
......
...@@ -2,7 +2,7 @@ package com.gsc4cloud.gsc.vpc.api.feign.web.vehicleledger; ...@@ -2,7 +2,7 @@ package com.gsc4cloud.gsc.vpc.api.feign.web.vehicleledger;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gsc4cloud.gsc.common.core.util.R; import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.vehicleledger.VehicleLedgerPageResDTO; import com.gsc4cloud.gsc.vpc.api.dto.web.resdto.vehicleledger.VehicleLedgerDTO;
import com.gsc4cloud.gsc.vpc.api.req.PageRequest; import com.gsc4cloud.gsc.vpc.api.req.PageRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.vehicleledger.VehicleLedgerPageRequest; import com.gsc4cloud.gsc.vpc.api.req.web.vehicleledger.VehicleLedgerPageRequest;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
...@@ -23,7 +23,7 @@ public interface VehicleLedgerRemote { ...@@ -23,7 +23,7 @@ public interface VehicleLedgerRemote {
*/ */
@Operation(summary = "车辆台账分页列表") @Operation(summary = "车辆台账分页列表")
@PostMapping("/vehicleLedger/pageList") @PostMapping("/vehicleLedger/pageList")
R<Page<VehicleLedgerPageResDTO>> pageList(@RequestBody PageRequest<VehicleLedgerPageRequest> request); R<Page<VehicleLedgerDTO>> pageList(@RequestBody PageRequest<VehicleLedgerPageRequest> request);
/** /**
* 异步导出车辆台账 * 异步导出车辆台账
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!