云
11 小时以前 02a1ae81eba7b48223052fb833859f0a65dd7d21
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.pro.bagcode;
 
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.time.LocalDateTime;
 
/**
 * MES 袋码批量生成任务 DO
 * <p>
 * 几十万条袋码不在请求线程内完成:提交后落任务,由后台线程分段落库,
 * 前端据 {@link #finishedCount}/{@link #totalCount} 展示进度,并支持取消。
 */
@TableName("mes_pro_bag_code_generate_task")
@KeySequence("mes_pro_bag_code_generate_task_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesProBagCodeGenerateTaskDO extends BaseDO {
 
    @TableId
    private Long id;
 
    /**
     * 幂等键:前端每次提交生成一个 UUID,网络重试复用同一个值
     */
    private String requestId;
 
    /**
     * 业务类型,见 {@link cn.iocoder.yudao.module.mes.enums.pro.MesProBagCodeGenerateBizTypeEnum}
     */
    private String bizType;
 
    /**
     * 生成组 UUID(提交时生成,失败/取消后据此清理部分数据)
     */
    private String uuid;
 
    /**
     * 品种编号
     */
    private Long itemId;
 
    /**
     * 品种编码(快照)
     */
    private String itemCode;
 
    /**
     * 品种名称(快照)
     */
    private String itemName;
 
    /**
     * 计量单位类型(吨 / 48袋 / 100袋)
     */
    private String unitType;
 
    /**
     * 每托盘袋数(吨类型为 0)
     */
    private Integer perPallet;
 
    /**
     * 托盘数(原始数据为 0)
     */
    private Integer palletCount;
 
    /**
     * 袋码总数
     */
    private Integer totalCount;
 
    /**
     * 已生成袋码数
     */
    private Integer finishedCount;
 
    /**
     * 状态,见 {@link cn.iocoder.yudao.module.mes.enums.pro.MesProBagCodeGenerateTaskStatusEnum}
     */
    private Integer status;
 
    /**
     * 备注(写入生成的袋码)
     */
    private String remark;
 
    /**
     * 失败原因
     */
    private String errorMsg;
 
    /**
     * 完成/终止时间
     */
    private LocalDateTime finishTime;
 
}