2 天以前 3be684af887afe4c0e45f281cc53adfef6f12b78
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
package cn.iocoder.yudao.module.mes.dal.dataobject.pro.feedback;
 
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.md.workstation.MesMdWorkstationDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.route.MesProRouteDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.process.MesProProcessDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.workorder.MesProWorkOrderDO;
import cn.iocoder.yudao.module.mes.enums.pro.MesProFeedbackStatusEnum;
import cn.iocoder.yudao.module.mes.enums.pro.MesProFeedbackTypeEnum;
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;
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
 
/**
 * MES 生产报工 DO
 *
 * @author 芋道源码
 */
@TableName("mes_pro_feedback")
@KeySequence("mes_pro_feedback_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesProFeedbackDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 报工单编号
     */
    private String code;
    /**
     * 报工类型
     *
     * 字典 {@link DictTypeConstants#MES_PRO_FEEDBACK_TYPE}
     * 枚举 {@link MesProFeedbackTypeEnum}
     */
    private Integer type;
    // TODO @芋艿:这个字段,暂时没使用到;
    /**
     * 报工途径
     *
     * 字典类型 mes_pro_feedback_channel
     */
    private String channel;
    /**
     * 报工时间
     */
    private LocalDateTime feedbackTime;
    /**
     * 工作站编号
     *
     * 关联 {@link MesMdWorkstationDO#getId()}
     */
    private Long workstationId;
    /**
     * 工艺路线编号
     *
     * 关联 {@link MesProRouteDO#getId()}
     */
    private Long routeId;
    /**
     * 工序编号
     *
     * 关联 {@link MesProProcessDO#getId()}
     */
    private Long processId;
    /**
     * 生产工单编号
     *
     * 关联 {@link MesProWorkOrderDO#getId()}
     */
    private Long workOrderId;
    // TODO @芋艿:这里待关联;
    /**
     * 生产任务编号
     */
    private Long taskId;
    /**
     * 产品物料编号(冗余自任务)
     *
     * 关联 {@link MesMdItemDO#getId()}
     */
    private Long itemId;
    /**
     * 过期日期
     */
    private LocalDateTime expireDate;
    /**
     * 生产批号
     *
     * TODO @芋艿:预留字段,当前未启用
     */
    private String lotNumber;
    /**
     * 排产数量
     */
    private BigDecimal scheduledQuantity;
    /**
     * 本次报工数量
     */
    private BigDecimal feedbackQuantity;
    /**
     * 合格品数量
     */
    private BigDecimal qualifiedQuantity;
    /**
     * 不良品数量
     */
    private BigDecimal unqualifiedQuantity;
    /**
     * 待检测数量
     */
    private BigDecimal uncheckQuantity;
    /**
     * 工废数量
     */
    private BigDecimal laborScrapQuantity;
    /**
     * 料废数量
     */
    private BigDecimal materialScrapQuantity;
    /**
     * 其他废品数量
     */
    private BigDecimal otherScrapQuantity;
    /**
     * 报工用户编号
     *
     * 关联 AdminUserDO#getId()
     */
    private Long feedbackUserId;
    /**
     * 审核用户编号
     *
     * 关联 AdminUserDO#getId()
     */
    private Long approveUserId;
    /**
     * 状态
     *
     * 字典 {@link DictTypeConstants#MES_PRO_FEEDBACK_STATUS}
     * 枚举 {@link MesProFeedbackStatusEnum}
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
 
}