package com.zy.asrs.entity.param;
|
|
import com.core.common.Cools;
|
import com.zy.asrs.entity.BasArmMast;
|
import lombok.Data;
|
|
/*
|
* Created by Monkey D. Luffy on 2025.09.09
|
* */
|
@Data
|
public class ArmBarcodeTwoParam {
|
|
private String orderNo;
|
private String po;
|
private String item;
|
private String sku;
|
private String upc;
|
|
public ArmBarcodeTwoParam() {}
|
|
public ArmBarcodeTwoParam(String[][] barcodeArr) {
|
for (String[] barcodes : barcodeArr){
|
if (barcodes[0].equals("orderNo")){
|
this.orderNo = barcodes[1];
|
}
|
if (barcodes[0].equals("po")){
|
this.po = barcodes[1];
|
}
|
if (barcodes[0].equals("item")){
|
this.item = barcodes[1];
|
}
|
if (barcodes[0].equals("sku")){
|
this.sku = barcodes[1];
|
}
|
if (barcodes[0].equals("upc")){
|
this.upc = barcodes[1];
|
}
|
}
|
}
|
|
public ArmBarcodeTwoParam(String orderNo, String po, String item, String sku, String upc) {
|
this.orderNo = orderNo;
|
this.po = po;
|
this.item = item;
|
this.sku = sku;
|
this.upc = upc;
|
}
|
|
public boolean allBool(){
|
if (Cools.isEmpty(orderNo)){
|
return false;
|
}
|
if (Cools.isEmpty(po)){
|
return false;
|
}
|
if (Cools.isEmpty(item)){
|
return false;
|
}
|
if (Cools.isEmpty(sku)){
|
return false;
|
}
|
if (Cools.isEmpty(upc)){
|
return false;
|
}
|
return true;
|
}
|
|
public boolean allBool(BasArmMast basArmMast){
|
if (!basArmMast.getOrderNo().equals(orderNo)){
|
return false;
|
}
|
// if (!basArmMast.getPo().equals(po)){
|
// return false;
|
// }
|
// if (!basArmMast.getSku().equals(sku)){
|
// return false;
|
// }
|
if (!basArmMast.getMatnr().equals(item)){
|
return false;
|
}
|
// if (!basArmMast.getUpc().equals(upc)){
|
// return false;
|
// }
|
return true;
|
}
|
}
|