package com.ruoyi.purchase.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; import java.time.LocalDate; import java.util.Date; /** * 来票登记对象 ticket_registration * * @author ruoyi * @date 2025-05-13 */ @Data @TableName("ticket_registration") public class TicketRegistration{ private static final long serialVersionUID = 1L; /** * 主键ID */ @TableId(value = "id", type = IdType.AUTO) @ApiModelProperty(value = "来票登记ID") private Long id; @ApiModelProperty(value = "供应商ID") private Long supplierId; @ApiModelProperty(value = "发票代码") private String invoiceCode; @ApiModelProperty(value = "发票类型") private String invoiceType; @ApiModelProperty(value = "税率") private BigDecimal taxRate; @ApiModelProperty(value = "税额") private BigDecimal taxAmount; @ApiModelProperty(value = "币种") private String currency; @ApiModelProperty(value = "发票状态:0草稿,1已登记,2红冲,3作废") private Integer invoiceStatus; @ApiModelProperty(value = "核验状态:0未核验,1通过,2异常") private Integer verificationStatus; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "创建用户ID") private Long createUser; @ApiModelProperty(value = "更新用户ID") private Long updateUser; @ApiModelProperty(value = "更新时间") private Date updateTime; @ApiModelProperty(value = "删除标志:0正常,1删除") private Integer deleteFlag; /** * 状态 */ @Excel(name = "状态") @TableField(exist = false) private String statusName; /** * 采购台账id */ private Long purchaseLedgerId; /** * 采购合同号 */ @Excel(name = "采购合同号") private String purchaseContractNumber; /** * 销售合同号 */ @Excel(name = "销售合同号") private String salesContractNo; /** * 供应商名称 */ @Excel(name = "供应商名称") private String supplierName; /** * 客户名称 */ private String customerName; // /** // * 业务员 // */ // @Excel(name = "业务员") // private String businessPerson; // // /** // * 业务员id // */ // private Long businessPersonId; /** * 发票号 */ @Excel(name = "发票号") private String invoiceNumber; /** * 发票金额(元) */ @Excel(name = "发票金额(元)") private BigDecimal invoiceAmount; /** * 开票人ID */ @Excel(name = "开票人") private String issUerId; /** * 开票人 */ @Excel(name = "开票人") private String issUer; /** * 开票日期 */ @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8") @Excel(name = "开票日期", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate issueDate; /** * 项目名称 */ @Excel(name = "项目名称") private String projectName; /** * 产品信息 */ private Long productId; /** * 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd") private Date createdAt; /** * 更新时间 */ @JsonFormat(pattern = "yyyy-MM-dd") private Date updatedAt; /** * 关联销售台账主表主键 */ private Long salesLedgerId; /** * 合同金额(产品含税总价) */ private BigDecimal contractAmount; @TableField(fill = FieldFill.INSERT) private Long tenantId; @ApiModelProperty(value = "已付款总金额") @TableField(exist = false) @Excel(name = "已付款总金额") private BigDecimal paymentAmountTotal; @ApiModelProperty(value = "未付款总金额") @TableField(exist = false) @Excel(name = "未付款总金额") private BigDecimal unPaymentAmountTotal; @TableField(exist = false) private Boolean status; @TableField(exist = false) private String issueDateStart; @TableField(exist = false) private String issueDateEnd; @TableField(exist = false) private String supplierNameOrContractNo; @ApiModelProperty(value = "录入时间") private LocalDate enterDate; }