Fancy
2024-07-10 c64161f9e685b4a2c74dcc7e6cd7ba75a35c8351
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.dy.pmsGlobal.pojoPr;
 
import com.alibaba.fastjson2.annotation.JSONField;
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dy.common.po.BaseEntity;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;
 
import java.util.Date;
 
/**
 * 组装生产任务计划
 * @TableName pr_assembly_plan
 */
@TableName(value="pr_assembly_plan", autoResultMap = true)
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PrAssemblyPlan implements BaseEntity {
    /**
     * 
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @TableId
    public Long id;
 
    /**
     * 产品实体编号
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @NotNull(message = "产品实体编号不能为空")
    public Long proId;
 
    /**
     * 批次实体编号
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long batchId;
 
    /**
     * 生产流程实体编号
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @NotNull(message = "生产流程实体编号不能为空")
    public Long processId;
 
    @TableField(exist = false)
    public PrProductionProcess process;
 
    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空")
    public String name;
 
    /**
     * 生产数量
     */
    @NotNull(message = "生产数量不能为空")
    public Integer number;
 
    /**
     * 状态:正常(1)、暂停(0)、结束(-1)
     */
    @NotNull(message = "状态不能为空")
    public Integer status;
 
    /**
     * 投入生产数量
     */
    public Integer inputNumber;
    /**
     * 产出数量
     */
    public Integer outputNumber;
 
    /**
     * 创建人
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long creator;
    @TableField(exist = false)
    public String creatorName;
    @TableField(exist = false)
    public String proName;
    @TableField(exist = false)
    public String batchNo;
    @TableField(exist = false)
    public String processName;
 
    /**
     * 创建时间
     */
    public Date dt;
 
    /**
     * 开始日期
     */
    @NotEmpty(message = "开始日期不能为空")
    public String startDate;
 
    /**
     * 结束日期
     */
    @NotEmpty(message = "结束日期不能为空")
    public String endDate;
 
    /**
     * 是否删除,1是,0否
     */
    @JSONField(serialize = false)
    public Boolean deleted;
 
    /**
     * 作业内容
     */
    @NotEmpty(message = "作业内容不能为空")
    public String content;
}