From 0d4ef71836341f929a57e3943c5ca131e4c0a8c5 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期三, 25 十二月 2024 11:13:25 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java | 71 +++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java b/src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java index 5263418..4e91dd1 100644 --- a/src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java +++ b/src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java @@ -1,5 +1,8 @@ package com.zy.asrs.entity.result; +import com.zy.asrs.entity.LocDetl; +import com.zy.asrs.entity.WrkDetl; + public class FindLocNoAttributeVo { private String matnr = ""; private String specs = ""; @@ -9,6 +12,9 @@ private String standby1 = ""; private String standby2 = ""; private String standby3 = ""; + private String boxType1 = "1"; + private String boxType2 = "1"; + private String boxType3 = "1"; public FindLocNoAttributeVo() { } @@ -20,6 +26,20 @@ public FindLocNoAttributeVo(String matnr, String batch) { this.matnr = matnr; this.batch = batch; + } + + public FindLocNoAttributeVo(String matnr, String specs, String batch, String grade, String brand, String standby1, String standby2, String standby3, String boxType1, String boxType2, String boxType3) { + this.matnr = matnr; + this.specs = specs; + this.batch = batch; + this.grade = grade; + this.brand = brand; + this.standby1 = standby1; + this.standby2 = standby2; + this.standby3 = standby3; + this.boxType1 = boxType1; + this.boxType2 = boxType2; + this.boxType3 = boxType3; } public FindLocNoAttributeVo(String matnr, String batch, String brand) { @@ -45,6 +65,30 @@ this.standby1 = standby1; this.standby2 = standby2; this.standby3 = standby3; + } + + public String getBoxType1() { + return boxType1; + } + + public void setBoxType1(String boxType1) { + this.boxType1 = boxType1; + } + + public String getBoxType2() { + return boxType2; + } + + public void setBoxType2(String boxType2) { + this.boxType2 = boxType2; + } + + public String getBoxType3() { + return boxType3; + } + + public void setBoxType3(String boxType3) { + this.boxType3 = boxType3; } public String getMatnr() { @@ -110,4 +154,31 @@ public void setStandby3(String standby3) { this.standby3 = standby3; } + + + public boolean beSimilar(LocDetl locDetl){ + return (this.matnr.equals(locDetl.getMatnr()) + && this.batch.equals(locDetl.getBatch()) + && this.brand.equals(locDetl.getBrand()) + && this.standby1.equals(locDetl.getStandby1()) + && this.standby2.equals(locDetl.getStandby2()) + && this.standby3.equals(locDetl.getStandby3()) + && this.boxType1.equals(locDetl.getBoxType1()) + && this.boxType2.equals(locDetl.getBoxType2()) + && this.boxType3.equals(locDetl.getBoxType3()) + ); + } + + public boolean beSimilar(WrkDetl wrkDetl){ + return (this.matnr.equals(wrkDetl.getMatnr()) + && this.batch.equals(wrkDetl.getBatch()) + && this.brand.equals(wrkDetl.getBrand()) + && this.standby1.equals(wrkDetl.getStandby1()) + && this.standby2.equals(wrkDetl.getStandby2()) + && this.standby3.equals(wrkDetl.getStandby3()) + && this.boxType1.equals(wrkDetl.getBoxType1()) + && this.boxType2.equals(wrkDetl.getBoxType2()) + && this.boxType3.equals(wrkDetl.getBoxType3()) + ); + } } -- Gitblit v1.9.1