郑永安
2023-06-19 f65443d8abeaedc9d102324565e8368e7c9d90c8
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
package com.gk.firework.Domain.Vo;
 
import com.gk.firework.Domain.ProductInfo;
import io.swagger.models.auth.In;
 
import java.math.BigDecimal;
import java.util.*;
 
/**
 * @author : jingjy
 * @date : 2021/3/19 9:37
 */
public class ProductVo extends ProductInfo {
    /** 产品条码 */
    private String itemCode ;
    /** 日期码*/
    private String dateCode ;
    /** 序列号 */
    private String serialNo;
    /** 箱码 */
    private String boxNo ;
    /** 可入库标记 */
    private String entryFlag ;
    /** 数量 */
    private Integer num;
 
    private BigDecimal price;
 
    private Integer changenum;
 
    public String getItemCode() {
        return itemCode;
    }
 
    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }
 
    public String getDateCode() {
        return dateCode;
    }
 
    public void setDateCode(String dateCode) {
        this.dateCode = dateCode;
    }
 
    public String getSerialNo() {
        return serialNo;
    }
 
    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }
 
    public String getBoxNo() {
        return boxNo;
    }
 
    public void setBoxNo(String boxNo) {
        this.boxNo = boxNo;
    }
 
    public String getEntryFlag() {
        return entryFlag;
    }
 
    public void setEntryFlag(String entryFlag) {
        this.entryFlag = entryFlag;
    }
 
    public Integer getNum() {
        return num;
    }
 
    public void setNum(Integer num) {
        this.num = num;
    }
 
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ProductVo productVo = (ProductVo) o;
        return Objects.equals(getDirectionCode(), productVo.getDirectionCode()) ;
    }
 
    @Override
    public int hashCode() {
        return Objects.hash(getDirectionCode());
    }
 
    public static List<ProductVo> removeListDuplicateObject(List<ProductVo> list) {
        Set<ProductVo> set = new HashSet<>(list);
        return new ArrayList<>(set);
    }
 
    public BigDecimal getPrice() {
        return price;
    }
 
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
 
    public Integer getChangenum() {
        return changenum;
    }
 
    public void setChangenum(Integer changenum) {
        this.changenum = changenum;
    }
}