From 691bee4229856f8bf81c2720092ecee1c9f21509 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 09 四月 2026 19:18:12 +0800
Subject: [PATCH] #getter$摘出entity

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Stock.java |  170 ++++++++++++++++++++++----------------------------------
 1 files changed, 67 insertions(+), 103 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Stock.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Stock.java
index 670c7d5..aae4785 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Stock.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Stock.java
@@ -1,7 +1,14 @@
 package com.vincent.rsf.server.manager.entity;
 
 import java.text.SimpleDateFormat;
-import java.util.Date;
+import java.util.*;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.vincent.rsf.server.system.constant.DictTypeCode;
+import com.vincent.rsf.server.system.entity.DictData;
+import com.vincent.rsf.server.system.service.DictDataService;
+import lombok.experimental.Accessors;
 import org.springframework.format.annotation.DateTimeFormat;
 import com.baomidou.mybatisplus.annotation.TableLogic;
 import java.text.SimpleDateFormat;
@@ -13,6 +20,7 @@
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
@@ -24,9 +32,9 @@
 import java.util.Date;
 
 @Data
+@Accessors(chain = true)
 @TableName("man_stock")
 public class Stock implements Serializable {
-
     private static final long serialVersionUID = 1L;
 
     /**
@@ -37,59 +45,46 @@
     private Long id;
 
     /**
-     * ASN鍗曟嵁锛� 甯﹀嚭PO鍗�
+     * 缂栧彿
      */
-    @ApiModelProperty(value= "ASN鍗曟嵁锛� 甯﹀嚭PO鍗�")
-    private String asnOrder;
+    @ApiModelProperty(value= "缂栧彿")
+    private String code;
 
     /**
-     * ERP鍑瘉
+     * 婧愬崟鎹紪鐮�
      */
-    @ApiModelProperty(value= "ERP鍑瘉")
-    private String erpToken;
+    @ApiModelProperty(value= "婧愬崟鎹紪鐮�")
+    private String sourceCode;
 
     /**
-     * ERP鍗曞彿
+     * 婧愬崟鎹甀D
      */
-    @ApiModelProperty(value= "ERP鍗曞彿")
-    private String erpOrder;
+    @ApiModelProperty(value= "婧愬崟鎹甀D")
+    private Long sourceId;
 
     /**
-     * ERP搴撳瓨鍦板潃
+     * 鍗曟嵁绫诲瀷
      */
-    @ApiModelProperty(value= "ERP搴撳瓨鍦板潃")
-    private String erpStkAdr;
+    @ApiModelProperty(value= "鍗曟嵁绫诲瀷")
+    private String type;
 
     /**
-     * 鍚堝悓鏍囪瘑
+     * 涓氬姟绫诲瀷
      */
-    @ApiModelProperty(value= "鍚堝悓鏍囪瘑")
-    private String contractId;
+    @ApiModelProperty(value= "涓氬姟绫诲瀷")
+    private Short wkType;
 
     /**
-     * 閿佸畾鍘熷洜
+     * 搴撳瓨鏁伴噺
      */
-    @ApiModelProperty(value= "閿佸畾鍘熷洜")
-    private String lockReason;
+    @ApiModelProperty(value= "搴撳瓨鏁伴噺")
+    private Double anfme;
 
-    /**
-     * 閿佸畾鐘舵��
-     */
-    @ApiModelProperty(value= "閿佸畾鐘舵��")
-    private Short lockStatus;
+    @ApiModelProperty(value= "鏉″舰鐮�")
+    private String barcode;
 
-    /**
-     * 閿佸畾浜�
-     */
-    @ApiModelProperty(value= "閿佸畾浜�")
-    private String locker;
-
-    /**
-     * 閿佸畾鏃堕棿
-     */
-    @ApiModelProperty(value= "閿佸畾鏃堕棿")
-    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
-    private Date lockedTime;
+    @ApiModelProperty("搴撲綅")
+    private String locCode;
 
     /**
      * 鐘舵�� 1: 姝e父  0: 鍐荤粨  
@@ -116,11 +111,15 @@
     @ApiModelProperty(value= "娣诲姞浜哄憳")
     private Long createBy;
 
+    @TableField(exist = false)
+    private String createBy$;
+
     /**
      * 娣诲姞鏃堕棿
      */
     @ApiModelProperty(value= "娣诲姞鏃堕棿")
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
     private Date createTime;
 
     /**
@@ -129,11 +128,15 @@
     @ApiModelProperty(value= "淇敼浜哄憳")
     private Long updateBy;
 
+    @TableField(exist = false)
+    private String updateBy$;
+
     /**
      * 淇敼鏃堕棿
      */
     @ApiModelProperty(value= "淇敼鏃堕棿")
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
     private Date updateTime;
 
     /**
@@ -141,19 +144,23 @@
      */
     @ApiModelProperty(value= "澶囨敞")
     private String memo;
+    @TableField(exist = false)
+    private String type$;
+
+    @TableField(exist = false)
+    private String wkType$;
+
+
 
     public Stock() {}
 
-    public Stock(String asnOrder,String erpToken,String erpOrder,String erpStkAdr,String contractId,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
-        this.asnOrder = asnOrder;
-        this.erpToken = erpToken;
-        this.erpOrder = erpOrder;
-        this.erpStkAdr = erpStkAdr;
-        this.contractId = contractId;
-        this.lockReason = lockReason;
-        this.lockStatus = lockStatus;
-        this.locker = locker;
-        this.lockedTime = lockedTime;
+    public Stock(String code,String sourceCode,Long sourceId,String type,Short wkType,Double anfme,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
+        this.code = code;
+        this.sourceCode = sourceCode;
+        this.sourceId = sourceId;
+        this.type = type;
+        this.wkType = wkType;
+        this.anfme = anfme;
         this.status = status;
         this.deleted = deleted;
         this.tenantId = tenantId;
@@ -164,31 +171,20 @@
         this.memo = memo;
     }
 
-//    Stock stock = new Stock(
-//            null,    // ASN鍗曟嵁锛� 甯﹀嚭PO鍗昜闈炵┖]
-//            null,    // ERP鍑瘉
-//            null,    // ERP鍗曞彿
-//            null,    // ERP搴撳瓨鍦板潃
-//            null,    // 鍚堝悓鏍囪瘑
-//            null,    // 閿佸畾鍘熷洜
-//            null,    // 閿佸畾鐘舵�乕闈炵┖]
-//            null,    // 閿佸畾浜�
-//            null,    // 閿佸畾鏃堕棿
-//            null,    // 鐘舵�乕闈炵┖]
-//            null,    // 鏄惁鍒犻櫎[闈炵┖]
-//            null,    // 绉熸埛
-//            null,    // 娣诲姞浜哄憳
-//            null,    // 娣诲姞鏃堕棿[闈炵┖]
-//            null,    // 淇敼浜哄憳
-//            null,    // 淇敼鏃堕棿[闈炵┖]
-//            null    // 澶囨敞
-//    );
 
-    public String getLockedTime$(){
-        if (Cools.isEmpty(this.lockedTime)){
-            return "";
-        }
-        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.lockedTime);
+//    public String getLockedTime$(){
+//        if (Cools.isEmpty(this.lockedTime)){
+//            return "";
+//        }
+//        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.lockedTime);
+//    }
+
+    public String getType$(){
+        return this.type$;
+    }
+
+    public String getWkType$(){
+        return this.wkType$;
     }
 
     public String getStatus$(){
@@ -203,15 +199,6 @@
         }
     }
 
-    public String getCreateBy$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.getById(this.createBy);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getNickname());
-        }
-        return null;
-    }
-
     public String getCreateTime$(){
         if (Cools.isEmpty(this.createTime)){
             return "";
@@ -219,34 +206,11 @@
         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
     }
 
-    public String getUpdateBy$(){
-        UserService service = SpringUtils.getBean(UserService.class);
-        User user = service.getById(this.updateBy);
-        if (!Cools.isEmpty(user)){
-            return String.valueOf(user.getNickname());
-        }
-        return null;
-    }
-
     public String getUpdateTime$(){
         if (Cools.isEmpty(this.updateTime)){
             return "";
         }
         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
-    }
-
-
-
-    public Boolean getStatusBool(){
-        if (null == this.status){ return null; }
-        switch (this.status){
-            case 1:
-                return true;
-            case 0:
-                return false;
-            default:
-                return null;
-        }
     }
 
 }

--
Gitblit v1.9.1