8 小时以前 7bf754a7835d06f26240c4ca15bc5f83650de377
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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
 * <p>
 * 一次油品出库可绑定多个销售台账(对应多个客户),每行带本台账分摊到的出库数量。
 * 绑定表才是权威数据源;{@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;
}