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
145
146
147
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.fasterxml.jackson.annotation.JsonFormat;
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-04
 */
@Data
@TableName("official_inventory")
@Schema
public class OfficialInventory extends MyBaseEntity {
 
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     *
     * 采购单号
     */
    @TableField(value = "purchase_number")
    @Schema(title = "采购单号")
    private String purchaseNumber;
    /**
     * 待入库id
     */
    @TableField(value = "pending_id")
    @Schema(title = "待入库id")
    private Long pendingId;
    /**
     * 供货商ID
     */
    @TableField(value = "supplier_id")
    @Schema(title = "供货商ID")
    private Long supplierId;
    /**
     * 编号
     */
    @TableField(value = "code")
    private String code;
 
    /**
     * 煤料类型 1-成品 2-原料
     */
    @TableField(value = "type")
    @Schema(title = "煤料类型 1-成品 2-原料")
    private Integer type;
 
    /**
     * 煤种
     */
    @TableField(value = "coal_id")
    @Schema(title = "煤种")
    private Long coalId;
 
    /**
     * 煤种名称
     */
    @TableField(exist = false)
    @Schema(title = "煤种名称")
    private String coalName;
    /**
     * 单位
     */
    @TableField(value = "unit")
    @Schema(title = "单位")
    private String unit;
    /**
     * 库存数量
     */
    @TableField(value = "inventory_quantity")
    @Schema(title = "库存数量")
    private BigDecimal inventoryQuantity;
    /**
     * 单价(含税)
     */
    @TableField(value = "price_including_tax")
    @Schema(title = "单价(含税)")
    private BigDecimal priceIncludingTax;
    /**
     * 总价(含税)
     */
    @TableField(value = "total_price_including_tax")
    @Schema(title = "总价(含税)")
    private BigDecimal totalPriceIncludingTax;
    /**
     * 不含税单价
     */
    @TableField(value = "price_excluding_tax")
    @Schema(title = "不含税单价")
    private BigDecimal priceExcludingTax;
    /**
     * 不含税总价
     */
    @TableField(value = "total_price_excluding_tax")
    @Schema(title = "不含税总价")
    private BigDecimal totalPriceExcludingTax;
    /**
     * 待补库
     */
    @TableField(value = "pending_replenishment")
    @Schema(title = "待补库")
    private BigDecimal pendingReplenishment;
    /**
     * 登记人id
     */
    @TableField(value = "registrant_id")
    @Schema(title = "登记人id")
    private Long registrantId;
 
    /**
     * 登记日期
     */
    @TableField(value = "registration_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(title = "登记日期")
    private LocalDate registrationDate;
 
    /**
     * 煤质方案id
     */
    @TableField(value = "coal_plan_id")
    @Schema(title = "煤质方案id")
    private Long coalPlanId;
 
    /**
     * 合并id
     */
    @TableField(value = "merge_id")
    @Schema(title = "合并id")
    private String mergeId;
}