From 91aa478d200d53ecf5e3032ce7f7e026a218e526 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期四, 11 十二月 2025 17:26:57 +0800
Subject: [PATCH] no message

---
 src/main/java/com/zy/asrs/entity/LocDetl.java |  138 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 133 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/LocDetl.java b/src/main/java/com/zy/asrs/entity/LocDetl.java
index 8c56411..89ae35e 100644
--- a/src/main/java/com/zy/asrs/entity/LocDetl.java
+++ b/src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -3,11 +3,13 @@
 import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
 import com.alibaba.excel.annotation.ExcelProperty;
 import com.baomidou.mybatisplus.annotations.TableField;
+import com.baomidou.mybatisplus.annotations.TableId;
 import com.baomidou.mybatisplus.annotations.TableName;
+import com.baomidou.mybatisplus.enums.IdType;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
 import com.core.common.Cools;
 import com.core.common.SpringUtils;
-import com.zy.asrs.service.LocMastService;
-import com.zy.asrs.service.LocOwnerService;
+import com.zy.asrs.service.*;
 import com.zy.common.utils.Synchro;
 import com.zy.system.entity.User;
 import com.zy.system.service.UserService;
@@ -15,6 +17,7 @@
 import lombok.Data;
 
 import java.io.Serializable;
+import java.math.BigDecimal;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
@@ -25,9 +28,21 @@
 
     private static final long serialVersionUID = 1L;
 
+    @TableId(type = IdType.AUTO)
+    private Long id;
+
+    @TableField("loc_id")
+    private Long locId;
+
     @ApiModelProperty(value= "搴撲綅鍙�")
     @TableField("loc_no")
     private String locNo;
+
+    @ApiModelProperty("area_id")
+    private Long areaId;
+
+    @ApiModelProperty("area_name")
+    private String areaName;
 
     @ApiModelProperty(value= "鎵樼洏鏉$爜")
     private String zpallet;
@@ -48,8 +63,8 @@
     @ExcelProperty("瑙勬牸")
     private String specs;
 
-    @ApiModelProperty(value= "璐у搧鐗瑰緛")
-    @ExcelProperty("璐у搧鐗瑰緛")
+    @ApiModelProperty(value= "鎵瑰彿")
+    @ExcelProperty("鎵瑰彿")
     private String batch;
 
     @ApiModelProperty(value= "鍗曟嵁缂栧彿")
@@ -103,7 +118,7 @@
     private Double weight;
 
     @ApiModelProperty(value= "闀垮害")
-    private Double man_length;
+    private Double manLength;
 
     @ApiModelProperty(value= "浣撶Н")
     private Double volume;
@@ -165,6 +180,77 @@
     @ApiModelProperty(value= "鎷ユ湁鑰� 1: 鏉板厠   ")
     private Integer owner;
 
+    /**
+     * 澶囩敤1
+     */
+    @ApiModelProperty(value= "澶囩敤1")
+    private String standby1 = "";
+
+    /**
+     * 澶囩敤2
+     */
+    @ApiModelProperty(value= "澶囩敤2")
+    private String standby2 = "";
+
+    /**
+     * 澶囩敤3
+     */
+    @ApiModelProperty(value= "澶囩敤3")
+    private String standby3 = "";
+
+    /**
+     * 澶囩敤1
+     */
+    @ApiModelProperty(value= "澶囩敤1")
+    @TableField("box_type1")
+    private String boxType1 = "1";
+
+    /**
+     * 澶囩敤2
+     */
+    @ApiModelProperty(value= "澶囩敤2")
+    @TableField("box_type2")
+    private String boxType2 = "1";
+
+    /**
+     * 澶囩敤3
+     */
+    @ApiModelProperty(value= "澶囩敤3")
+    @TableField("box_type3")
+    private String boxType3 = "1";
+
+    /**
+     * 鏄惁鍐荤粨
+     */
+    @ApiModelProperty(value= "鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁�")
+    private Integer frozen;
+
+    /**
+     * 宸紓鏁伴噺
+     */
+    @ApiModelProperty(value= "宸紓鏁伴噺")
+    @TableField("diff_qty")
+    private BigDecimal diffQty = BigDecimal.ZERO;
+
+
+
+    @ApiModelProperty(value= "璐﹂潰鏁伴噺")
+    @TableField("book_qty")
+    private BigDecimal bookQty = BigDecimal.ZERO;
+//    private BigDecimal bookQty = Cools.isEmpty(anfme)? BigDecimal.ZERO : new BigDecimal(anfme.toString());
+
+
+    public BigDecimal getBookQty() {
+
+        if (diffQty.compareTo(BigDecimal.ZERO) == 0 ) {
+            return BigDecimal.ZERO;
+        }
+        if ( diffQty.compareTo(BigDecimal.ZERO) > 0) {
+            return new  BigDecimal(anfme.toString());
+        }
+        return new BigDecimal(anfme.toString()).subtract(diffQty);
+    }
+
     public String getLocNo$(){
         LocMastService service = SpringUtils.getBean(LocMastService.class);
         LocMast locMast = service.selectById(this.locNo);
@@ -191,6 +277,15 @@
             default:
                 return String.valueOf(this.beBatch);
         }
+    }
+
+    public String getTag$() {
+        MatService service = SpringUtils.getBean(MatService.class);
+        Mat order = service.selectOne(new EntityWrapper<Mat>().eq("matnr", this.matnr));
+        if (Cools.isEmpty(order)){
+            return null;
+        }
+        return order.getTagId$();
     }
 
     public String getSource$(){
@@ -265,6 +360,9 @@
 
     public long getStoreDate(){
         long timeNow = new Date().getTime();
+        if (this.appeTime == null){
+            return 0;
+        }
         long timeCreate = this.appeTime.getTime();
 
         return (timeNow - timeCreate) /24/60/60/1000;
@@ -274,4 +372,34 @@
         Synchro.Copy(source, this);
     }
 
+    public String getFrozen$() {
+        if (null == this.frozen){ return "鏈喕缁�"; }
+        switch (this.frozen){
+            case 0:
+                return "鏈喕缁�";
+            case 1:
+                return "宸插喕缁�";
+            default:
+                return "鏈喕缁�";
+        }
+    }
+
+    public String getBoxType1$(){
+        BasProcessProceduresService service = SpringUtils.getBean(BasProcessProceduresService.class);
+        BasProcessProcedures processProcedures = service.selectOne(new EntityWrapper<BasProcessProcedures>().eq("box_type", this.boxType1));
+        if (!Cools.isEmpty(processProcedures)){
+            return String.valueOf(processProcedures.getBoxSpecs());
+        }
+        return this.boxType1;
+    }
+
+    public String getBoxType2$(){
+        BasQualityTestingService service = SpringUtils.getBean(BasQualityTestingService.class);
+        BasQualityTesting basQualityTesting = service.selectOne(new EntityWrapper<BasQualityTesting>().eq("box_type", this.boxType1));
+        if (!Cools.isEmpty(basQualityTesting)){
+            return String.valueOf(basQualityTesting.getBoxSpecs());
+        }
+        return this.boxType1;
+    }
+
 }

--
Gitblit v1.9.1