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
package cn.iocoder.yudao.module.mes.dal.dataobject.wm.outsourceissue;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.mes.dal.dataobject.md.item.MesMdItemDO;
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
 *
 * @author 超级管理员
 */
@TableName("mes_wm_outsource_issue_line")
@KeySequence("mes_wm_outsource_issue_line_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MesWmOutsourceIssueLineDO extends BaseDO {
 
    /**
     * 行ID
     */
    @TableId
    private Long id;
    /**
     * 发料单ID
     *
     * 关联 {@link MesWmOutsourceIssueDO#getId()}
     */
    private Long issueId;
    /**
     * 库存ID
     */
    private Long materialStockId;
    /**
     * 物料ID
     *
     * 关联 {@link MesMdItemDO#getId()}
     */
    private Long itemId;
    /**
     * 物料型号编号
     *
     * 关联 {@link cn.iocoder.yudao.module.mdm.dal.dataobject.item.MdmItemModelDO#getId()}
     */
    private Long itemModelId;
    /**
     * 录入单位编号
     *
     * 关联 {@link cn.iocoder.yudao.module.mdm.dal.dataobject.unit.MdmUnitMeasureDO#getId()}
     * 为空或等于物料主单位时,说明本次按主单位录入
     */
    private Long enterUnitMeasureId;
    /**
     * 录入数量(按录入单位计)
     *
     * 按主单位录入时与 {@link #quantity} 相同
     */
    private BigDecimal enterQuantity;
    /**
     * 发料数量(物料主单位口径,库存与流水均以该数量为准)
     */
    private BigDecimal quantity;
    /**
     * 批次ID
     */
    private Long batchId;
    /**
     * 备注
     */
    private String remark;
 
}