CustomsInvoiceDto.java 3.12 KB
Newer Older
1 2
package pwc.taxtech.atms.dto.vatdto;

3
import com.fasterxml.jackson.annotation.JsonProperty;
4 5
import pwc.taxtech.atms.vat.entity.CustomsInvoice;

6 7 8 9 10 11 12 13 14 15 16
import java.math.BigDecimal;
import java.util.Date;

public class CustomsInvoiceDto {
    private String customsId;
    private String payNum;
    private Date issueDate;
    private BigDecimal invoiceTaxAmount;
    private BigDecimal invoiceAmount;
    private String auditResult;
    private Date createTime;
17
    @JsonProperty("creatorID")
18
    private String creatorId;
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
    private Integer periodId;
    private String dataSourceId;
    //数据源名称
    private String dataSourceName;
    private int seqNo;

    public String getCustomsId() {
        return customsId;
    }

    public void setCustomsId(String customsId) {
        this.customsId = customsId;
    }

    public String getPayNum() {
        return payNum;
    }

    public void setPayNum(String payNum) {
        this.payNum = payNum;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public BigDecimal getInvoiceTaxAmount() {
        return invoiceTaxAmount;
    }

    public void setInvoiceTaxAmount(BigDecimal invoiceTaxAmount) {
        this.invoiceTaxAmount = invoiceTaxAmount;
    }

    public BigDecimal getInvoiceAmount() {
        return invoiceAmount;
    }

    public void setInvoiceAmount(BigDecimal invoiceAmount) {
        this.invoiceAmount = invoiceAmount;
    }

    public String getAuditResult() {
        return auditResult;
    }

    public void setAuditResult(String auditResult) {
        this.auditResult = auditResult;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

81 82
    public String getCreatorId() {
        return creatorId;
83 84
    }

85 86
    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    }

    public Integer getPeriodId() {
        return periodId;
    }

    public void setPeriodId(Integer periodId) {
        this.periodId = periodId;
    }

    public String getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(String dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public String getDataSourceName() {
        return dataSourceName;
    }

    public void setDataSourceName(String dataSourceName) {
        this.dataSourceName = dataSourceName;
    }

    public int getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(int seqNo) {
        this.seqNo = seqNo;
    }
120

121 122 123 124 125 126 127 128 129 130 131
    public CustomsInvoiceDto extractFromEntity(CustomsInvoice entity) {
        setCustomsId(entity.getCustomsId());
        setPayNum(entity.getPayNum());
        setIssueDate(entity.getIssueDate());
        setInvoiceTaxAmount(entity.getInvoiceTaxAmount());
        setInvoiceAmount(entity.getInvoiceAmount());
        setAuditResult(entity.getAuditResult());
        setCreateTime(entity.getCreateTime());
        setCreatorId(entity.getCreatorId());
        setPeriodId(entity.getPeriodId());
        return this;
132
    }
133
}