package com.ruoyi.purchase.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * 采购台账(简)对象 purchase_ledger_simple * * 仅保留采购日期、支出日期、金额、采购物品、发票号码、付款方式、备注等基础信息, * 不与合同、供应商、产品、入库等模块关联。 */ @Getter @Setter @TableName("purchase_ledger_simple") @Schema(name = "PurchaseLedgerSimple对象", description = "采购台账(简)") public class PurchaseLedgerSimple implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "主键ID") @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 支出日期 */ @Schema(description = "支出日期") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "支出日期", width = 20, dateFormat = "yyyy-MM-dd") private Date paymentDate; /** * 采购日期 */ @Schema(description = "采购日期") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "采购日期", width = 20, dateFormat = "yyyy-MM-dd") private Date purchaseDate; /** * 金额 */ @Schema(description = "金额") @Excel(name = "金额") private BigDecimal amount; /** * 采购物品 */ @Schema(description = "采购物品") @Excel(name = "采购物品") private String purchaseGoods; /** * 发票号码 */ @Schema(description = "发票号码") @Excel(name = "发票号码") private String invoiceNumber; /** * 付款方式 */ @Schema(description = "付款方式") @Excel(name = "付款方式") private String paymentMethod; /** * 备注 */ @Schema(description = "备注") @Excel(name = "备注") private String remark; /** * 录入人id */ @Schema(description = "录入人id") private Long recorderId; /** * 录入人 */ @Schema(description = "录入人") @Excel(name = "录入人") private String recorderName; /** * 录入日期 */ @Schema(description = "录入日期") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "录入日期", width = 20, dateFormat = "yyyy-MM-dd") private Date entryDate; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Long createUser; @TableField(fill = FieldFill.INSERT) private Long deptId; @Schema(description = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; @Schema(description = "更新时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date updateTime; }