maven
2025-10-14 cf6b1cf6fa8f7784c6d7c64b7326d4662bc3d4b3
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDate;
 
/**
 * 采购登记表 实体类
 *
 * @author ruoyi
 * @date 2025-06-03
 */
@Data
@TableName("purchase_registration")
@Schema
public class PurchaseRegistration extends MyBaseEntity {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 采购单号
     */
    @TableField(value = "purchase_number")
    @Schema(title = "采购单号")
    private String purchaseNumber;
    /**
     *  供应商id
     */
    @TableField(value = "supplier_id")
    @Schema(title = "供应商id")
    private Long supplierId;
    /**
     * 供应商名称
     */
    @TableField(value = "supplier_name")
    @Schema(title = "供应商名称")
    private String supplierName;
    /**
     * 单位
     */
    @TableField(value = "unit")
    @Schema(title = "单位")
    private String unit;
    /**
     *
     */
    @TableField(value = "coal_id")
    @Schema(title = "煤料id")
    private Long coalId;
 
    /**
     * 煤料名称
     */
    @TableField(exist = false)
    @Schema(title = "煤料名称")
    private String coalName;
 
    /**
     * 采购数量
     */
    @TableField(value = "purchase_quantity")
    @Schema(title = "采购数量")
    private BigDecimal purchaseQuantity;
    /**
     * 单价(含税)
     */
    @TableField(value = "price_including_tax")
    @Schema(title = "单价(含税)")
    private BigDecimal priceIncludingTax;
    /**
     * 总价(含税)
     */
    @TableField(value = "total_price_including_tax")
    @Schema(title = "总价(含税)")
    private BigDecimal totalPriceIncludingTax;
    /**
     * 税率
     */
    @TableField(value = "tax_rate")
    @Schema(title = "税率")
    private BigDecimal taxRate;
    /**
     * 不含税单价
     */
    @TableField(value = "price_excluding_tax")
    @Schema(title = "不含税单价")
    private BigDecimal priceExcludingTax;
    /**
     * 不含税总价
     */
    @TableField(value = "total_price_excluding_tax")
    @Schema(title = "不含税总价")
    private BigDecimal totalPriceExcludingTax;
    /**
     * 登记人id
     */
    @TableField(value = "registrant_id")
    @Schema(title = "登记人id")
    private Long registrantId;
    /**
     * 登记日期
     */
    @TableField(value = "registration_date")
    @Schema(title = "登记日期")
    private LocalDate registrationDate;
    /**
     * 运费
     */
    @TableField(value = "freight")
    @Schema(title = "运费")
    private BigDecimal freight;
 
    /**
     * 类型(1-成品,2-原料)
     */
    @TableField(value = "type")
    @Schema(title = "类型(1-成品,2-原料)")
    private Integer type;
    /**
     * 采购类型
     */
    @TableField(value = "purchase_type")
    private Integer purchaseType;
 
    /**
     * 车牌号
     */
    @TableField(value = "license_plate")
    @Schema(title = "车牌号")
    private String licensePlate;
}