From 290e5fd2e74efe19326f56e38c3391aaae23ffc5 Mon Sep 17 00:00:00 2001
From: IZCD4L12RTSW0VZ\Administrator <skyouc>
Date: 星期三, 24 十二月 2025 17:14:09 +0800
Subject: [PATCH] Merge branch 'jsxswms' of http://47.97.1.152:5880/r/zy-asrs into jsxswms

---
 src/main/java/com/zy/asrs/entity/Mat.java |   57 +++++++++------------------------------------------------
 1 files changed, 9 insertions(+), 48 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/Mat.java b/src/main/java/com/zy/asrs/entity/Mat.java
index bdd9654..6efecb1 100644
--- a/src/main/java/com/zy/asrs/entity/Mat.java
+++ b/src/main/java/com/zy/asrs/entity/Mat.java
@@ -7,9 +7,9 @@
 import com.baomidou.mybatisplus.enums.IdType;
 import com.core.common.Cools;
 import com.core.common.SpringUtils;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.zy.api.enums.MatLocType;
 import com.zy.asrs.enums.ContainerType;
-import com.zy.asrs.service.BasContainerService;
-import com.zy.asrs.service.TagService;
 import com.zy.common.utils.Synchro;
 import com.zy.system.entity.User;
 import com.zy.system.service.UserService;
@@ -305,10 +305,12 @@
     @ApiModelProperty(value= "淇敼鏃堕棿")
     @TableField("update_time")
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date updateTime;
 
     @ApiModelProperty("搴撲綅绫诲瀷")
     @TableField("loc_type")
+    @ExcelProperty(value = "搴撲綅绫诲瀷")
     private Long locType;
 
     /**
@@ -378,53 +380,8 @@
         this.memo = memo;
     }
 
-//    Mat mat = new Mat(
-//            null,    // 缂栧彿
-//            null,    // 鎵�灞炲綊绫�
-//            null,    // 鍟嗗搧缂栧彿
-//            null,    // 鍟嗗搧鍚嶇О
-//            null,    // 鍒悕
-//            null,    // 瑙勬牸
-//            null,    // 鍨嬪彿
-//            null,    // 棰滆壊
-//            null,    // 鍝佺墝
-//            null,    // 鍗曚綅
-//            null,    // 鍗曚环
-//            null,    // sku
-//            null,    // 鍗曚綅閲�
-//            null,    // 鏉$爜
-//            null,    // 浜у湴
-//            null,    // 鍘傚
-//            null,    // 鐢熶骇鏃ユ湡
-//            null,    // 鍝侀」鏁�
-//            null,    // 瀹夊叏搴撳瓨閲�
-//            null,    // 閲嶉噺
-//            null,    // 闀垮害
-//            null,    // 浣撶Н
-//            null,    // 涓夋柟缂栫爜
-//            null,    // 渚涘簲鍟�
-//            null,    // 渚涘簲鍟嗙紪鐮�
-//            null,    // 鏄惁鎵规
-//            null,    // 淇濊川鏈�
-//            null,    // 棰勮澶╂暟
-//            null,    // 鍒惰喘
-//            null,    // 瑕佹眰妫�楠�
-//            null,    // 鍗遍櫓鍝�
-//            null,    // 鐘舵�乕闈炵┖]
-//            null,    // 娣诲姞浜哄憳
-//            null,    // 娣诲姞鏃堕棿
-//            null,    // 淇敼浜哄憳
-//            null,    // 淇敼鏃堕棿
-//            null    // 澶囨敞
-//    );
-
     public String getTagId$(){
-        TagService service = SpringUtils.getBean(TagService.class);
-        Tag tag = service.selectById(this.tagId);
-        if (!Cools.isEmpty(tag)){
-            return String.valueOf(tag.getName());
-        }
-        return null;
+        return MatLocType.getTagName(this.tagId + "");
     }
 
     public String getLocType$(){
@@ -441,6 +398,10 @@
         return null;
     }
 
+    public String getProType(){
+        return MatLocType.getMatTag(this.tagId + "");
+    }
+
     public String getBeBatch$(){
         if (null == this.beBatch){ return null; }
         switch (this.beBatch){

--
Gitblit v1.9.1