2026-08-13 4498a6cf17b55e14b39ae03bec4c569e4b95480b
src/main/java/com/ruoyi/purchase/dto/VatDto.java
@@ -1,27 +1,89 @@
package com.ruoyi.purchase.dto;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
@Data
@Schema(name = "VatDto", description = "增值税比对明细")
@ExcelIgnoreUnannotated
public class VatDto {
    //月份
    @Excel(name = "月份")
    private String month ;
    @Excel(name = "ID")
    @Schema(description = "发票ID")
    private Long id;
    //进项税
    @Excel(name = "进项税额")
    @Excel(name = "发票号码")
    @Schema(description = "发票号码")
    private String invoiceNumber;
    @Excel(name = "开票日期")
    @Schema(description = "开票日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate issueDate;
    @Excel(name = "类型")
    @Schema(description = "类型 sales-销项 purchase-进项")
    private String type;
    @Excel(name = "发票类型")
    @Schema(description = "发票类型")
    private String invoiceType;
    @Excel(name = "税额")
    @Schema(description = "税额")
    private BigDecimal taxAmount;
    @Excel(name = "价税合计")
    @Schema(description = "价税合计")
    private BigDecimal totalAmount;
    @Excel(name = "客户名称")
    @Schema(description = "客户名称")
    private String customerName;
    @Excel(name = "供应商名称")
    @Schema(description = "供应商名称")
    private String supplierName;
    @Excel(name = "月份")
    @Schema(description = "月份")
    private String month;
    @Excel(name = "销项税额")
    @Schema(description = "销项税额")
    private BigDecimal jTaxAmount;
    //销项税
    @Excel(name = "销项税额")
    @Excel(name = "进项税额")
    @Schema(description = "进项税额")
    private BigDecimal xTaxAmount;
    @Excel(name = "销-进")
    private BigDecimal taxAmount;
    // ========== 明细视图字段 ==========
    @Excel(name = "发票号")
    @Schema(description = "发票号")
    private String invoiceNo;
    @Excel(name = "销售合同号")
    @Schema(description = "销售合同号")
    private String salesContractNo;
    @Excel(name = "订单类型")
    @Schema(description = "类型 进项/销项")
    private String orderType;
    @Excel(name = "开票日期")
    @Schema(description = "开票日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate invoiceDate;
    @Excel(name = "税率")
    @Schema(description = "税率")
    private BigDecimal taxRate;
}