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
package cn.iocoder.yudao.module.mes.dal.dataobject.pro.alert;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
 
/**
 * MES 工单物料超耗报警记录 DO
 *
 * @author 超级管理员
 */
@TableName("mes_pro_over_consume_alert")
@KeySequence("mes_pro_over_consume_alert_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesProOverConsumeAlertDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 生产工单编号
     */
    private Long workOrderId;
    /**
     * 生产工单编码
     */
    private String workOrderCode;
    /**
     * 产品编号
     */
    private Long productId;
    /**
     * 产品名称
     */
    private String productName;
    /**
     * 物料编号
     */
    private Long itemId;
    /**
     * 物料编码
     */
    private String itemCode;
    /**
     * 物料名称
     */
    private String itemName;
    /**
     * 标准用量(按已报工数量)
     */
    private BigDecimal standardQuantity;
    /**
     * 实际用量
     */
    private BigDecimal actualQuantity;
    /**
     * 超耗数量
     */
    private BigDecimal overQuantity;
    /**
     * 超耗比例(%)
     */
    private BigDecimal overRatio;
    /**
     * 报警阈值(%)
     */
    private BigDecimal thresholdRatio;
    /**
     * 物料单价
     */
    private BigDecimal unitPrice;
    /**
     * 超耗金额
     */
    private BigDecimal overAmount;
    /**
     * 接收人用户编号(逗号分隔)
     */
    private String notifyUserIds;
    /**
     * 站内信消息编号
     */
    private Long messageId;
    /**
     * 发送状态:SENT / FAILED
     */
    private String status;
    /**
     * 失败原因
     */
    private String errorMessage;
 
}