From 061753c5c014862564e56f22af0a685f0efd0fde Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 19 十二月 2025 08:56:16 +0800
Subject: [PATCH] #库存预留

---
 src/main/java/com/zy/asrs/entity/InventoryReserve.java |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/InventoryReserve.java b/src/main/java/com/zy/asrs/entity/InventoryReserve.java
index 8e7072c..0a252a0 100644
--- a/src/main/java/com/zy/asrs/entity/InventoryReserve.java
+++ b/src/main/java/com/zy/asrs/entity/InventoryReserve.java
@@ -7,6 +7,10 @@
 import java.math.BigDecimal;
 import java.text.SimpleDateFormat;
 import java.util.Date;
+
+import com.core.common.SpringUtils;
+import com.zy.system.entity.User;
+import com.zy.system.service.UserService;
 import org.springframework.format.annotation.DateTimeFormat;
 import java.text.SimpleDateFormat;
 import java.util.Date;
@@ -137,7 +141,7 @@
 //            null    // 鏇存柊浜哄憳
 //    );
 
-    public String getExpiceTime$(){
+    public String getExpireTime$(){
         if (Cools.isEmpty(this.expireTime)){
             return "";
         }
@@ -158,5 +162,29 @@
         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
     }
 
+    public String getCreateBy$() {
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.selectById(this.createBy);
+        if (!Cools.isEmpty(user)) {
+            return String.valueOf(user.getUsername());
+        }
+        if (this.createBy == 9527){
+            return "super";
+        }
+        return null;
+    }
+
+    public String getUpdateBy$() {
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.selectById(this.updateBy);
+        if (!Cools.isEmpty(user)) {
+            return String.valueOf(user.getUsername());
+        }
+        if (this.createBy == 9527){
+            return "super";
+        }
+        return null;
+    }
+
 
 }

--
Gitblit v1.9.1