Blame view

src/main/java/com/huaheng/api/mes/domain/MaterialData.java 1012 Bytes
肖超群 authored
1
2
3
4
package com.huaheng.api.mes.domain;

import lombok.Data;
5
import javax.validation.constraints.NotNull;
肖超群 authored
6
7
8
9
10
11
import java.math.BigDecimal;

/**
 * @author 游杰
 */
@Data
12
public class MaterialData implements Comparable<MaterialData> {
肖超群 authored
13
14
    private Integer locationNoX = -1;
15
16
    private Integer locationNoY = -1;
17
pengyongcheng authored
18
19
20
    /**
     * 是否原材料 true: false:
     */
21
    private Boolean isMaterial;
肖超群 authored
22
23
24
25
26
27
28
29
30
    /**
     * 物料编码
     */
    private String materialCode;
    /**
     * 追溯码
     */
    private String tracingNo;
    /**
31
32
33
34
     * 批次
     */
    private String batch;
    /**
肖超群 authored
35
36
37
38
     * 数量
     */
    private BigDecimal qty;
    /**
39
     * 供应商编码
40
     */
41
    private String supplierCode;
42
    /**
43
     * 质量状态 true代表合格品,false代表不合格品
肖超群 authored
44
     */
45
    private Boolean qualityStatus;
肖超群 authored
46
47
48
    /**
     * 顺序
     */
49
50
51
52
53
54
    private int sequence;

    @Override
    public int compareTo(@NotNull MaterialData o) {
        return getSequence() - o.getSequence();
    }
肖超群 authored
55
}