From b110cc66907a093794b0887a6b2889e57c8c11fb Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 25 八月 2025 13:41:59 +0800
Subject: [PATCH] 库存调整功能修改

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java
index 4f26a50..917aaf5 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java
@@ -7,6 +7,7 @@
 
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.fasterxml.jackson.annotation.JsonFormat;
+import com.vincent.rsf.framework.common.DateUtils;
 import com.vincent.rsf.server.manager.service.LocService;
 import com.vincent.rsf.server.manager.service.WarehouseAreasService;
 import com.vincent.rsf.server.system.constant.DictTypeCode;
@@ -47,6 +48,7 @@
      */
     @ApiModelProperty(value= "涓诲崟ID")
     private Long locId;
+
 
     @ApiModelProperty("搴撲綅缂栫爜")
     private String locCode;
@@ -280,7 +282,7 @@
     }
 
 //    LocItem locItem = new LocItem(
-//            null,    // 涓诲崟ID
+//            null,    // 涓诲崟IDs
 //            null,    // 鍗曟嵁ID
 //            null,    // 鍗曟嵁绫诲瀷
 //            null,    // 璁㈠崟鏄庣粏id
@@ -342,6 +344,10 @@
         return dictData.getLabel();
     }
 
+    public Double getReviseQty() {
+        return this.anfme;
+    }
+
     public String getStatus$(){
         if (null == this.status){ return null; }
         switch (this.status){
@@ -354,6 +360,11 @@
         }
     }
 
+    public Integer getDeadTime() {
+        if (null == this.createTime){ return null; }
+        return DateUtils.diff(createTime, new Date());
+    }
+
     public String getCreateBy$(){
         UserService service = SpringUtils.getBean(UserService.class);
         User user = service.getById(this.createBy);

--
Gitblit v1.9.1