From 608e6b5a45d2e53879b10aca3475dd8df92e5e5f Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期一, 22 十二月 2025 20:18:02 +0800
Subject: [PATCH] bug修复

---
 src/main/java/com/zy/asrs/entity/Mat.java |   56 ++++++++------------------------------------------------
 1 files changed, 8 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 1ccd199..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,6 +305,7 @@
     @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("搴撲綅绫诲瀷")
@@ -379,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$(){
@@ -442,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