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;
|
}
|
}
|