liyong
4 天以前 be5783c8a7e13bbc76d33c95643d75779cce21db
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
package cn.iocoder.yudao.module.mes.dal.dataobject.pro.task;
 
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.process.MesProProcessDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.route.MesProRouteDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.workorder.MesProWorkOrderDO;
import cn.iocoder.yudao.module.mes.enums.pro.MesProTaskStatusEnum;
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_task")
@KeySequence("mes_pro_task_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesProTaskDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 任务编码
     */
    private String code;
    /**
     * 任务名称
     */
    private String name;
    /**
     * 生产工单编号
     *
     * 关联 {@link MesProWorkOrderDO#getId()}
     */
    private Long workOrderId;
    /**
     * 工作站编号
     *
     * 关联 {@link MesMdWorkstationDO#getId()}
     */
    private Long workstationId;
    /**
     * 工艺路线编号
     *
     * 关联 {@link MesProRouteDO#getId()}
     */
    private Long routeId;
    /**
     * 工序编号
     *
     * 关联 {@link MesProProcessDO#getId()}
     */
    private Long processId;
    /**
     * 产品物料编号
     *
     * 关联 {@link MesMdItemDO#getId()}
     */
    private Long itemId;
 
    /**
     * 排产数量
     */
    private BigDecimal quantity;
    /**
     * 已生产数量
     */
    private BigDecimal producedQuantity;
    /**
     * 合格品数量
     */
    private BigDecimal qualifyQuantity;
    /**
     * 不良品数量
     */
    private BigDecimal unqualifyQuantity;
    /**
     * 调整数量
     */
    private BigDecimal changedQuantity;
 
    /**
     * 客户编号
     *
     * 关联 CRM 客户 {@link cn.iocoder.yudao.module.crm.api.customer.dto.CrmCustomerRespDTO#getId()}
     */
    private Long clientId;
    /**
     * 开始生产时间
     */
    private LocalDateTime startTime;
    /**
     * 生产时长(工作日,1=8小时)
     */
    private Integer duration;
    /**
     * 结束生产时间
     */
    private LocalDateTime endTime;
    /**
     * 甘特图显示颜色
     */
    private String colorCode;
    /**
     * 完成日期
     */
    private LocalDateTime finishDate;
    /**
     * 取消日期
     */
    private LocalDateTime cancelDate;
 
    /**
     * 任务状态
     *
     * 字典 {@link DictTypeConstants#MES_PRO_TASK_STATUS}
     * 枚举 {@link MesProTaskStatusEnum}
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
 
}