package com.ruoyi.sales.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 lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 出库记录-销售台账绑定对象 stock_out_record_sales_ledger *

* 一次油品出库可绑定多个销售台账(对应多个客户),每行带本台账分摊到的出库数量。 * 绑定表才是权威数据源;{@code stock_out_record.sales_ledger_id/customer_id/customer_name} * 只冗余首项,供既有单台账查询展示用。 * * @author ruoyi * @date 2026-09-21 */ @TableName("stock_out_record_sales_ledger") @Data public class StockOutRecordSalesLedger implements Serializable { private static final long serialVersionUID = 1L; @TableId(type = IdType.AUTO) private Long id; /** * 出库记录id(stock_out_record.id) */ private Long stockOutRecordId; /** * 销售台账id(sales_ledger.id) */ private Long salesLedgerId; /** * 销售台账销售明细id(sales_ledger_product.id,type=1) */ private Long salesLedgerProductId; /** * 客户id(冗余自台账) */ private Long customerId; /** * 客户名称(冗余自台账) */ private String customerName; /** * 本台账对应的出库数量(吨) */ private BigDecimal quantity; @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @TableField(fill = FieldFill.INSERT) private Long createUser; @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Long updateUser; @TableField(fill = FieldFill.INSERT) private Long tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }