package com.ruoyi.sales.pojo; import java.math.BigDecimal; import java.util.Date; 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; /** * 销售台账对象 sales_ledger * * @author ruoyi * @date 2025-05-08 */ @TableName(value = "sales_ledger") @Data public class SalesLedger { private static final long serialVersionUID = 1L; /** * 销售台账主键 */ @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 销售合同号 */ @Excel(name = "销售合同号") private String salesContractNo; /** * 客户合同号 */ @Excel(name = "客户合同号") private String customerContractNo; /** * 项目名称 */ @Excel(name = "项目名称") private String projectName; /** * 录入日期 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd") private Date entryDate; /** * 业务员 */ @Excel(name = "业务员") private String salesman; /** * 客户名称 */ private Long customerId; /** * 客户名称 */ @Excel(name = "客户名称") private String customerName; /** * 录入人 */ private String entryPerson; @TableField(exist = false) @ApiModelProperty(value = "录入人") @Excel(name = "录入人") private String entryPersonName; /** * 备注 */ @Excel(name = "备注") private String remarks; /** * 附件材料,存储文件名等相关信息 */ private String attachmentMaterials; @TableField(fill = FieldFill.INSERT) private Long tenantId; /** * 合同金额(产品含税总价) */ @Excel(name = "合同金额") private BigDecimal contractAmount; @TableField(exist = false) @ApiModelProperty(value = "未开票金额(元)") private BigDecimal noInvoiceAmountTotal; }