hsy
2026-08-28 a8e4132c3e2e9c3b3fcb0360901b35571b6464ea
src/main/java/com/ruoyi/sales/pojo/SalesLedger.java
@@ -1,11 +1,16 @@
package com.ruoyi.sales.pojo;
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.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;
/**
 * 销售台账对象 sales_ledger
@@ -33,8 +38,9 @@
    /**
     * 客户合同号
     */
    @Excel(name = "客户合同号")
    @Excel(name = "客户合同号", type = Excel.Type.IMPORT)
    private String customerContractNo;
    /**
     * 项目名称
@@ -45,8 +51,9 @@
    /**
     * 录入日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date entryDate;
    /**
@@ -69,8 +76,12 @@
    /**
     * 录入人
     */
    @Excel(name = "录入人")
    private String entryPerson;
    @TableField(exist = false)
    @Schema(description = "录入人")
    @Excel(name = "录入人")
    private String entryPersonName;
    /**
     * 备注
@@ -81,11 +92,95 @@
    /**
     * 附件材料,存储文件名等相关信息
     */
    @Excel(name = "附件材料,存储文件名等相关信息")
    private String attachmentMaterials;
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
    /**
     * 合同金额(产品含税总价)
     */
    @Excel(name = "合同金额")
    private BigDecimal contractAmount;
    @Schema(description = "签订日期")
    private LocalDate executionDate;
    @Schema(description = "付款方式")
    private String paymentMethod;
    @Schema(description = "实际合同金额")
    private BigDecimal netContractAmount;
    @TableField(exist = false)
    @Schema(description = "生产状态")
    private String productionStatus = "未开始";
    //交货日期
    @Schema(description = "交货日期")
    @TableField(value = "delivery_date")
    private LocalDate deliveryDate;
    @TableField(exist = false)
    @Schema(description = "交货天数差")
    private Integer deliveryDaysDiff;
    @TableField(exist = false)
    //是否发货(台账页面颜色控制)
    private Boolean isFh;
    @TableField(exist = false)
    //是否可编辑
    private Boolean isEdit;
    @Schema(description = "创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
    @Schema(description = "是否有生产记录")
    @TableField(exist = false)
    private Boolean hasProductionRecord;
    @Schema(description = "项目ID")
    private Long projectId;
    @Schema(description = "年份")
    @Excel(name = "年份")
    private Integer year;
    @Schema(description = "签单单位ID")
    private Long signingUnitId;
    @Schema(description = "办事处ID")
    private Long officeId;
    @Schema(description = "组负责人ID")
    private Long groupLeaderId;
    @Schema(description = "是否开发票(1是 0否)")
    private Integer isInvoice;
    @Schema(description = "中标价")
    @Excel(name = "中标价")
    private BigDecimal bidPrice;
    @Schema(description = "是否中标(1是 0否)")
    private Integer isBid;
    @Schema(description = "未中标原因")
    private String unbidReason;
    @Schema(description = "合同原件约定回传日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "合同原件约定回传日期", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate contractOriginalReturnDate;
    @TableField(exist = false)
    @Schema(description = "关联合同ID列表")
    private List<Long> associatedContractIds;
}