liyong
4 天以前 be5783c8a7e13bbc76d33c95643d75779cce21db
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
package cn.iocoder.yudao.module.mes.dal.dataobject.pro.mps;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.md.item.MesMdItemDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.workorder.MesProWorkOrderDO;
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
import cn.iocoder.yudao.module.mes.enums.pro.MesProMpsStatusEnum;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * MES 生产主计划(MPS)DO
 *
 * @author 芋道源码
 */
@TableName("mes_pro_mps")
@KeySequence("mes_pro_mps_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesProMpsDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
 
    /**
     * MPS 编码
     */
    private String code;
 
    /**
     * 状态
     *
     * 字典 {@link DictTypeConstants#MES_PRO_MPS_STATUS}
     * 枚举 {@link MesProMpsStatusEnum}
     */
    private Integer status;
 
    // ========== 来源信息(来自销售订单) ==========
 
    /**
     * 销售订单ID
     */
    private Long saleOrderId;
 
    /**
     * 销售订单号
     */
    private String saleOrderNo;
 
    /**
     * 销售订单明细ID
     */
    private Long saleOrderItemId;
 
    // ========== 产品信息 ==========
 
    /**
     * 产品编号
     *
     * 关联 {@link MesMdItemDO#getId()}
     */
    private Long productId;
 
    /**
     * 计划生产数量
     */
    private BigDecimal quantity;
 
    /**
     * 已生产数量
     */
    private BigDecimal quantityProduced;
 
    /**
     * 计量单位ID
     */
    private Long unitMeasureId;
 
    // ========== 客户信息 ==========
 
    /**
     * 客户编号
     *
     * 关联 CRM 客户 {@link cn.iocoder.yudao.module.crm.api.customer.dto.CrmCustomerRespDTO#getId()}
     */
    private Long clientId;
 
    // ========== 时间信息 ==========
 
    /**
     * 需求日期
     */
    private LocalDateTime requestDate;
 
    /**
     * 下发日期
     */
    private LocalDateTime issueDate;
 
    /**
     * 完成日期
     */
    private LocalDateTime finishDate;
 
    // ========== 生产工单关联(下发后生成) ==========
 
    /**
     * 生产工单ID
     *
     * 关联 {@link MesProWorkOrderDO#getId()}
     */
    private Long workOrderId;
 
    /**
     * 生产工单编码
     */
    private String workOrderCode;
 
    // ========== 合并下发标识 ==========
 
    /**
     * 是否合并下发(0=否 1=是)
     */
    private Integer mergeFlag;
 
    /**
     * 合并批次号
     */
    private String mergeBatchNo;
 
    /**
     * 备注
     */
    private String remark;
 
}