From 6cc705d10d7d0366eb7aa4797acdf137e4b7576f Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 26 五月 2023 16:36:38 +0800 Subject: [PATCH] #平库盘点完成 --- src/main/java/com/zy/asrs/entity/OrderDetl.java | 66 +++++++++++++++++++++++++++++---- 1 files changed, 58 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/OrderDetl.java b/src/main/java/com/zy/asrs/entity/OrderDetl.java index da61de9..fe8f30b 100644 --- a/src/main/java/com/zy/asrs/entity/OrderDetl.java +++ b/src/main/java/com/zy/asrs/entity/OrderDetl.java @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.enums.IdType; import com.core.common.Cools; import com.core.common.SpringUtils; +import com.zy.asrs.service.LocOwnerService; import com.zy.asrs.service.OrderService; import com.zy.common.utils.Synchro; import com.zy.system.entity.User; @@ -84,9 +85,9 @@ private String maktx; /** - * 搴忓垪鐮� + * 鎵瑰彿 */ - @ApiModelProperty(value= "搴忓垪鐮�") + @ApiModelProperty(value= "鎵瑰彿") private String batch; /** @@ -295,9 +296,57 @@ @ApiModelProperty(value= "澶囨敞") private String memo; + /** + * 鎷ユ湁鑰� + */ + @ApiModelProperty(value= "鎷ユ湁鑰� 1: 鏉板厠 ") + private Integer owner; + + /** + * 璐х墿褰㈡��:0锛氫唬閲囥��1锛氫粨鍌� + */ + @ApiModelProperty(value= "璐х墿褰㈡��:0锛氫唬閲囥��1锛氫粨鍌�") + private Integer payment; + + /** + * uuid鏃堕棿鎴� + */ + @ApiModelProperty(value= "uuid") + @TableId(value = "uuid", type = IdType.ID_WORKER_STR) + @TableField("uuid") + private String uuid; + + public String getOwner$(){ + LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); + LocOwner locOwner = service.selectById(this.owner); + if (!Cools.isEmpty(locOwner)){ + return String.valueOf(locOwner.getOwner()); + } + return null; + } + + public String getPayment$(){ + if (null == this.payment){ return null; } + switch (this.payment){ + case 1: + return "浠撳偍"; + case 0: + return "浠i噰"; + default: + return String.valueOf(this.payment); + } + } + public OrderDetl() {} - public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { + public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, + String maktx, String batch, String specs, String model, String color, + String brand, String unit, Double price, String sku, Double units, + String barcode, String origin, String manu, String manuDate, String itemNum, + Double safeQty, Double weight, Double length, Double volume, String threeCode, + String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, + Integer source, Integer inspect, Integer danger, Integer status, Long createBy, + Date createTime, Long updateBy, Date updateTime, String memo,int owner ,int payment,String uuid) { this.orderId = orderId; this.orderNo = orderNo; this.anfme = anfme; @@ -337,6 +386,9 @@ this.updateBy = updateBy; this.updateTime = updateTime; this.memo = memo; + this.owner = owner; + this.payment = payment; + this.uuid = uuid; } public String getOrderId$(){ @@ -443,12 +495,10 @@ } public Double getEnableQty() { - if (null != this.anfme && this.workQty != null) { - return this.anfme - this.workQty; + + if (null != this.anfme && this.qty != null) { + return this.anfme - this.qty; } -// if (null != this.anfme && this.qty != null) { -// return this.anfme - this.qty; -// } return null; } -- Gitblit v1.9.1