From ff9aadec4d118c41dd2b99ff81bcf86698050dc8 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期二, 24 十二月 2024 16:31:01 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/OrderDetl.java | 97 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 96 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/OrderDetl.java b/src/main/java/com/zy/asrs/entity/OrderDetl.java index ab68615..327aaa3 100644 --- a/src/main/java/com/zy/asrs/entity/OrderDetl.java +++ b/src/main/java/com/zy/asrs/entity/OrderDetl.java @@ -7,6 +7,7 @@ import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.asrs.service.OrderService; +import com.zy.common.model.DetlDto; import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; @@ -17,6 +18,7 @@ import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.List; @Data @TableName("man_order_detl") @@ -308,7 +310,25 @@ */ @ApiModelProperty(value= "琛屽彿") @TableField("line_number") - private Integer lineNumber; + private Long lineNumber; + + /** + * 澶囩敤1 + */ + @ApiModelProperty(value= "澶囩敤1") + private String standby1; + + /** + * 澶囩敤2 + */ + @ApiModelProperty(value= "澶囩敤2") + private String standby2; + + /** + * 澶囩敤3 + */ + @ApiModelProperty(value= "澶囩敤3") + private String standby3; public OrderDetl() {} @@ -353,6 +373,54 @@ this.updateTime = updateTime; this.memo = memo; } + + public OrderDetl(OrderDetl orderDetl) { + this.orderId = orderDetl.getOrderId(); + this.orderNo = orderDetl.getOrderNo(); + this.anfme = orderDetl.getAnfme(); + this.qty = orderDetl.getQty(); + this.matnr = orderDetl.getMatnr(); + this.maktx = orderDetl.getMaktx(); + this.batch = orderDetl.getBatch(); + this.specs = orderDetl.getSpecs(); + this.model = orderDetl.getModel(); + this.color = orderDetl.getColor(); + this.brand = orderDetl.getBrand(); + this.unit = orderDetl.getUnit(); + this.price = orderDetl.getPrice(); + this.sku = orderDetl.getSku(); + this.units = orderDetl.getUnits(); + this.barcode = orderDetl.getBarcode(); + this.origin = orderDetl.getOrigin(); + this.manu = orderDetl.getManu(); + this.manuDate = orderDetl.getManuDate(); + this.itemNum = orderDetl.getItemNum(); + this.safeQty = orderDetl.getSafeQty(); + this.weight = orderDetl.getWeight(); + this.manLength = orderDetl.getManLength(); + this.volume = orderDetl.getVolume(); + this.threeCode = orderDetl.getThreeCode(); + this.supp = orderDetl.getSupp(); + this.suppCode = orderDetl.getSuppCode(); + this.beBatch = orderDetl.getBeBatch(); + this.deadTime = orderDetl.getDeadTime(); + this.deadWarn = orderDetl.getDeadWarn(); + this.source = orderDetl.getSource(); + this.inspect = orderDetl.getInspect(); + this.danger = orderDetl.getDanger(); + this.status = orderDetl.getStatus(); + this.createBy = orderDetl.getCreateBy(); + this.createTime = orderDetl.getCreateTime(); + this.updateBy = orderDetl.getUpdateBy(); + this.updateTime = orderDetl.getUpdateTime(); + this.memo = orderDetl.getMemo(); + this.pakinPakoutStatus = orderDetl.getPakinPakoutStatus(); + this.lineNumber = orderDetl.getLineNumber(); + this.standby1 = orderDetl.getStandby1(); + this.standby2 = orderDetl.getStandby2(); + this.standby3 = orderDetl.getStandby3(); + } + public String getOrderId$(){ OrderService service = SpringUtils.getBean(OrderService.class); @@ -474,7 +542,34 @@ return "鏈畬鎴�"; } + public boolean beSimilar(OrderDetl orderDetl){ + return ( + this.orderNo.equals(orderDetl.getOrderNo()) + && this.matnr.equals(orderDetl.getMatnr()) + && this.batch.equals(orderDetl.getBatch()) + && this.brand.equals(orderDetl.getBrand()) + && this.standby1.equals(orderDetl.getStandby1()) + && this.standby2.equals(orderDetl.getStandby2()) + && this.standby3.equals(orderDetl.getStandby3()) + ); + } + + public static OrderDetl find(List<OrderDetl> detlDtos, String matnr, String batch, String brand, String standby1, String standby2, String standby3) { + if (Cools.isEmpty(matnr)) { + return null; + } + for (OrderDetl detlDto : detlDtos) { + if (matnr.equals(detlDto.getMatnr()) && Cools.eq(batch, detlDto.getBatch()) + && brand.equals(detlDto.getBrand()) && standby1.equals(detlDto.getStandby1()) + && standby2.equals(detlDto.getStandby2()) && standby3.equals(detlDto.getStandby3())) { + return detlDto; + } + } + return null; + } + public String getPakinPakoutStatus$(){ + if (Cools.isEmpty(this.pakinPakoutStatus)) return null; switch (this.pakinPakoutStatus){ case 1: return "Y"; -- Gitblit v1.9.1