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

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java |   75 ++++++++++++++++++-------------------
 1 files changed, 36 insertions(+), 39 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
index f9e7fa6..2b6bd03 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
@@ -5,6 +5,7 @@
 import java.text.SimpleDateFormat;
 import java.util.*;
 
+import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.vincent.rsf.server.manager.service.BatchRegularService;
 import com.vincent.rsf.server.manager.service.CompanysService;
@@ -29,7 +30,7 @@
 import java.util.Date;
 
 @Data
-@TableName("man_matnr")
+@TableName(value = "man_matnr", autoResultMap = true)
 @Accessors(chain = true)
 @ApiModel(value = "Matnr", description = "鐗╂枡鎵�鏈夊熀纭�灞炴��")
 public class Matnr implements Serializable {
@@ -224,6 +225,7 @@
      * 鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  
      */
     @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  ")
+    @TableLogic
     private Integer deleted;
 
     @ApiModelProperty("鍔ㄦ�佹墿灞曞瓧娈�")
@@ -242,6 +244,9 @@
     @ApiModelProperty(value= "娣诲姞浜哄憳")
     private Long createBy;
 
+    @TableField(exist = false)
+    private String createBy$;
+
     /**
      * 娣诲姞鏃堕棿
      */
@@ -255,6 +260,9 @@
      */
     @ApiModelProperty(value= "淇敼浜哄憳")
     private Long updateBy;
+
+    @TableField(exist = false)
+    private String updateBy$;
 
     /**
      * 淇敼鏃堕棿
@@ -270,12 +278,37 @@
     @ApiModelProperty(value= "澶囨敞")
     private String memo;
 
+    private String baseUnit;
+    private String useOrgId;
+    private String useOrgName;
+    private String erpClsId;
+
+    /**
+     * 浠撳簱闄愬埗鍚嶇О
+     */
+    @ApiModelProperty(value= "浠撳簱闄愬埗缂栫爜")
+    private String warehouseRestrictionCode;
+
+    /**
+     * 瀹瑰櫒绫诲瀷
+     */
+    @ApiModelProperty(value= "瀹瑰櫒绫诲瀷闆嗗悎")
+    @TableField(typeHandler = JacksonTypeHandler.class)
+    private List<Integer> containerTypes;
+
     /**
      * 澶囨敞
      */
     @ApiModelProperty(value= "鍒嗙被鍒楄〃")
     @TableField(exist = false)
     private List<Matnr> children;
+    @TableField(exist = false)
+    private String shipperId$;
+
+    @TableField(exist = false)
+    private String groupId$;
+
+
 
     public Matnr() {}
 
@@ -352,30 +385,12 @@
 //    );
 
     public String getShipperId$(){
-        CompanysService service = SpringUtils.getBean(CompanysService.class);
-        Companys companys = service.getById(this.shipperId);
-        if (!Cools.isEmpty(companys)){
-            return String.valueOf(companys.getName());
-        }
-        return null;
+        return this.shipperId$;
     }
 
     public String getGroupId$(){
-        MatnrGroupService service = SpringUtils.getBean(MatnrGroupService.class);
-        MatnrGroup matnrGroup = service.getById(this.groupId);
-        if (!Cools.isEmpty(matnrGroup)){
-            return String.valueOf(matnrGroup.getName());
-        }
-        return null;
+        return this.groupId$;
     }
-//    public String getRglarId$(){
-//        SerialRuleService service = SpringUtils.getBean(SerialRuleService.class);
-//        SerialRule batchRegular = service.getById(this.rglarId);
-//        if (!Cools.isEmpty(batchRegular)){
-//            return String.valueOf(batchRegular.getCode());
-//        }
-//        return null;
-//    }
 
     public String getStockLeval$(){
         if (null == this.stockLevel){ return null; }
@@ -415,29 +430,11 @@
         }
     }
 
-    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 "";
         }
         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$(){

--
Gitblit v1.9.1