liding
3 天以前 c0cf736ff001bbaec59b7da6239f4670464952fd
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
package com.ruoyi.business.entity;
 
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.ruoyi.common.core.domain.MyBaseEntity;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDate;
 
/**
 * 销售记录表 实体类
 *
 * @author ruoyi
 * @date 2025-06-11
 */
@Data
@TableName("sales_record")
public class SalesRecord extends MyBaseEntity {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 销售日期
     */
    @TableField(value = "sale_date")
    private LocalDate saleDate;
    /**
     * 客户id
     */
    @TableField(value = "customer_id")
    private Long customerId;
    /**
     * 客户
     */
    @TableField(value = "customer")
    private String customer;
    /**
     * 煤种id
     */
    @TableField(value = "coal_id")
    private Long coalId;
    /**
     * 煤种
     */
    @TableField(value = "coal")
    private String coal;
    /**
     * 单价(含税)
     */
    @TableField(value = "price_including_tax")
    private BigDecimal priceIncludingTax;
    /**
     * 库存数量
     */
    @TableField(value = "inventory_quantity")
    private BigDecimal inventoryQuantity;
    /**
     * 单位
     */
    @TableField(value = "unit")
    private String unit;
    /**
     * 销售数量
     */
    @TableField(value = "sale_quantity")
    private BigDecimal saleQuantity;
    /**
     * 销售单价 (含税)
     */
    @TableField(value = "sale_price")
    private BigDecimal salePrice;
    /**
     * 销售总价 (含税)
     */
    @TableField(value = "total_amount")
    private BigDecimal totalAmount;
    /**
     * 购销煤税率13%
     */
    @TableField(value = "tax_coal")
    private String taxCoal;
    /**
     * 运输税率9%
     */
    @TableField(value = "tax_trans")
    private String taxTrans;
    /**
     * 毛利润
     */
    @TableField(value = "gross_profit")
    private BigDecimal grossProfit;
    /**
     * 净利润
     */
    @TableField(value = "net_profit")
    private BigDecimal netProfit;
    /**
     * 运费
     */
    @TableField(value = "freight")
    private BigDecimal freight;
    /**
     * 登记人id
     */
    @TableField(value = "registrant_id")
    private Long registrantId;
    /**
     * 登记人
     */
    @TableField(value = "registrant")
    private String registrant;
    /**
     * 登记日期
     */
    @TableField(value = "registration_date")
    private LocalDate registrationDate;
}