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
package cn.iocoder.yudao.module.mes.dal.dataobject.qc.retentionsample;
 
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.pro.workorder.MesProWorkOrderDO;
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
 *
 * @author 超级管理员
 */
@TableName("mes_qc_retention_sample")
@KeySequence("mes_qc_retention_sample_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesQcRetentionSampleDO extends BaseDO {
 
    /**
     * 编号
     */
    @TableId
    private Long id;
    /**
     * 留样编号
     */
    private String code;
    /**
     * 生产工单 ID
     *
     * 关联 {@link MesProWorkOrderDO#getId()}
     */
    private Long workOrderId;
    /**
     * 生产工单编号(冗余)
     */
    private String workOrderCode;
    /**
     * 销售订单 ID
     */
    private Long saleOrderId;
    /**
     * 销售订单号(冗余)
     */
    private String saleOrderNo;
    /**
     * 产品 ID
     *
     * 关联 {@link MesMdItemDO#getId()}
     */
    private Long productId;
    /**
     * 生产批次号
     */
    private String batchCode;
    /**
     * 留样数量
     */
    private Integer sampleQuantity;
    /**
     * 留样日期
     */
    private LocalDateTime sampleDate;
    /**
     * 留样到期日期
     */
    private LocalDateTime expiryDate;
    /**
     * 留样人用户 ID
     */
    private Long keeperUserId;
    /**
     * 备注
     */
    private String remark;
 
}