6 天以前 1e123568c2f561013f5636e45dc0db30b17a3517
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
package com.ruoyi.procurementrecord.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 com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
@Data
@TableName("procurement_demand")
@Schema(name = "ProcurementDemand对象", description = "采购需求-BOM齐套缺口")
public class ProcurementDemand implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;
 
    @Schema(description = "产品规格id")
    private Long productModelId;
 
    @Excel(name = "产品名称")
    @Schema(description = "产品名称")
    private String productName;
 
    @Excel(name = "规格型号")
    @Schema(description = "规格型号")
    private String productModel;
 
    @Excel(name = "单位")
    @Schema(description = "单位")
    private String unit;
 
    @Excel(name = "缺口需求量")
    @Schema(description = "缺口需求量")
    private BigDecimal demandQuantity;
 
    @Excel(name = "可用库存快照")
    @Schema(description = "生成时可用库存快照")
    private BigDecimal stockQuantity;
 
    @Schema(description = "来源BOM id")
    private Long sourceBomId;
 
    @Excel(name = "来源BOM编号")
    @Schema(description = "来源BOM编号")
    private String sourceBomNo;
 
    @Excel(name = "状态", readConverterExp = "0=待处理,1=已转采购,2=已取消")
    @Schema(description = "0待处理 1已转采购 2已取消")
    private Integer status;
 
    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;
 
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
 
    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
 
    @Schema(description = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
 
    @Schema(description = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
 
    @Schema(description = "部门ID")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
}