8 天以前 19ed9b41cf75f132fe081ece5a20966611ccd123
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
package cn.iocoder.yudao.module.mdm.dal.dataobject.item;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.mdm.dal.dataobject.category.MdmItemCategoryDO;
import cn.iocoder.yudao.module.mdm.dal.dataobject.unit.MdmUnitMeasureDO;
import cn.iocoder.yudao.module.mdm.dal.dataobject.brand.MdmBrandDO;
import cn.iocoder.yudao.module.mdm.enums.MdmItemTypeEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
 
/**
 * MDM 物料主数据 DO
 *
 * 统一物料数据,ERP/MES/WMS 共用
 *
 * @author 芋道源码
 */
@TableName("mdm_item")
@KeySequence("mdm_item_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MdmItemDO extends BaseDO {
 
    /**
     * 物料ID(全局唯一)
     */
    @TableId
    private Long id;
 
    /**
     * 物料编码(全局唯一)
     */
    private String code;
 
    /**
     * 物料名称
     */
    private String name;
 
    /**
     * 物料条码
     */
    private String barCode;
 
    /**
     * 规格型号
     */
    private String specification;
 
    /**
     * 物料分类编号
     *
     * 关联 {@link MdmItemCategoryDO#getId()}
     */
    private Long categoryId;
 
    /**
     * 主计量单位编号
     *
     * 关联 {@link MdmUnitMeasureDO#getId()}
     */
    private Long unitMeasureId;
 
    /**
     * 品牌编号
     *
     * 关联 {@link MdmBrandDO#getId()}
     */
    private Long brandId;
 
    /**
     * 物料类型
     *
     * 枚举 {@link MdmItemTypeEnum}
     * 1: 物料
     * 2: 产品
     * 3: 半成品
     */
    private Integer itemType;
 
    /**
     * 状态
     *
     * 枚举 {@link cn.iocoder.yudao.framework.common.enums.CommonStatusEnum}
     */
    private Integer status;
 
    /**
     * 采购价
     */
    private BigDecimal purchasePrice;
 
    /**
     * 销售价
     */
    private BigDecimal salesPrice;
 
    /**
     * 成本价
     */
    private BigDecimal costPrice;
 
    /**
     * 最低价
     */
    private BigDecimal minPrice;
 
    /**
     * 安全库存
     */
    private BigDecimal safetyStock;
 
    /**
     * 最低库存量
     */
    private BigDecimal minStock;
 
    /**
     * 最高库存量
     */
    private BigDecimal maxStock;
 
    /**
     * 最小订货量
     */
    private BigDecimal minOrderQty;
 
    /**
     * 采购提前期(天)
     */
    private Integer leadTime;
 
    /**
     * 是否批次管理
     */
    private Boolean isBatchManaged;
 
    /**
     * 是否序列号管理
     */
    private Boolean isSerialManaged;
 
    /**
     * 条码规则ID
     */
    private Long barcodeRuleId;
 
    /**
     * 保质期天数
     */
    private Integer expiryDay;
 
    /**
     * 是否高值物料
     */
    private Boolean highValue;
 
    /**
     * 辅单位1编号
     *
     * 关联 {@link MdmUnitMeasureDO#getId()}
     */
    private Long unitMeasureId2;
 
    /**
     * 辅单位1换算比率
     *
     * 主单位与辅单位1的换算比率,例如 1箱=12个,则比率为12
     */
    private BigDecimal unitMeasureRate1;
 
    /**
     * 辅单位2编号
     *
     * 关联 {@link MdmUnitMeasureDO#getId()}
     */
    private Long unitMeasureId3;
 
    /**
     * 辅单位2换算比率
     *
     * 主单位与辅单位2的换算比率
     */
    private BigDecimal unitMeasureRate2;
 
    /**
     * 默认仓库编号
     *
     * 关联 {@link cn.iocoder.yudao.module.mdm.dal.dataobject.warehouse.MdmWarehouseDO#getId()}
     */
    private Long warehouseId;
 
    /**
     * 默认仓库编码
     */
    private String warehouseCode;
 
    /**
     * 重量(kg)
     */
    private BigDecimal weight;
 
    /**
     * 备注
     */
    private String remark;
 
}