2026-08-07 bb1d7eeda426e66393cf4403cb3ef082db696bd9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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 = "ID")
    @Schema(description = "发票ID")
    private Long id;
 
    @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 = "进项税额")
    @Schema(description = "进项税额")
    private BigDecimal xTaxAmount;
 
    // ========== 明细视图字段 ==========
 
    @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;
 
}