2 小时以前 6d910029b6c81db0a2b66caa66952781397b153a
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
package cn.iocoder.yudao.module.mes.dal.dataobject.wm.warning;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.mdm.MesMdmItemDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.wm.batch.MesWmBatchDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.wm.warehouse.MesWmWarehouseDO;
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 库存预警 DO
 * <p>
 * 预警类型见 {@link cn.iocoder.yudao.module.mes.enums.wm.MesWmStockWarningTypeEnum}:
 * 10-低库存,20-临期,30-库龄。由实时计算查询 + 定时任务落库双通道产生。
 *
 * @author 超级管理员
 */
@TableName("mes_wm_stock_warning")
@KeySequence("mes_wm_stock_warning_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesWmStockWarningDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 品种ID
     *
     * 关联 {@link MesMdmItemDO#getId()}
     */
    private Long itemId;
    /**
     * 品种编码
     */
    private String itemCode;
    /**
     * 批次ID
     *
     * 关联 {@link MesWmBatchDO#getId()}
     */
    private Long batchId;
    /**
     * 批次号
     */
    private String batchCode;
    /**
     * 仓库ID
     *
     * 关联 {@link MesWmWarehouseDO#getId()}
     */
    private Long warehouseId;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 预警类型:10-低库存,20-临期,30-库龄
     */
    private Integer warningType;
    /**
     * 阈值(低库存=最低库存,临期=剩余天数,库龄=超龄天数)
     */
    private BigDecimal thresholdValue;
    /**
     * 当前值(低库存=在库数量,临期=剩余天数,库龄=库龄天数)
     */
    private BigDecimal currentValue;
    /**
     * 过期日期(临期预警才有)
     */
    private LocalDateTime expireDate;
    /**
     * 入库时间(库龄预警才有)
     */
    private LocalDateTime receiptTime;
    /**
     * 处理状态:10-未处理,20-已处理
     */
    private Integer status;
    /**
     * 处理人ID
     */
    private Long handleUserId;
    /**
     * 处理时间
     */
    private LocalDateTime handleTime;
    /**
     * 处理备注
     */
    private String handleRemark;
 
}