gaoluyang
7 天以前 7bd10d34e8a8dc2437ec8551eb511e37634d7306
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
package cn.iocoder.yudao.module.mes.dal.dataobject.wm.stockwarning;
 
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
 *
 * 需求 5.1②:为商品配置库存预警规则,库存异常时自动标记并通知
 */
@TableName("mes_wm_stock_warning_rule")
@KeySequence("mes_wm_stock_warning_rule_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesWmStockWarningRuleDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 库存物料编号
     *
     * 关联 mdm_item 的 id 字段
     */
    private Long itemId;
    /**
     * 仓库编号
     *
     * 关联 mes_wm_warehouse 的 id 字段;为空表示该物料在所有仓库合计库存上预警
     */
    private Long warehouseId;
    /**
     * 库存下限(低于该值预警)
     */
    private BigDecimal minQuantity;
    /**
     * 库存上限(高于该值预警)
     */
    private BigDecimal maxQuantity;
    /**
     * 是否启用
     */
    private Boolean enabled;
    /**
     * 通知接收人编号
     *
     * 关联 system_users 的 id 字段;为空时通知仓库负责人
     */
    private Long notifyUserId;
    /**
     * 备注
     */
    private String remark;
 
}