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/LocTypeRela.java |   29 ++++++-----------------------
 1 files changed, 6 insertions(+), 23 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocTypeRela.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocTypeRela.java
index 80a51e7..8044084 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocTypeRela.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocTypeRela.java
@@ -2,6 +2,7 @@
 
 
 import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.baomidou.mybatisplus.annotation.TableName;
@@ -45,6 +46,10 @@
      */
     @ApiModelProperty(value= "搴撲綅绫诲瀷")
     private Long typeId;
+    @TableField(exist = false)
+    private String areaId$;
+
+
 
     public LocTypeRela() {}
 
@@ -53,22 +58,6 @@
         this.typeId = typeId;
     }
 
-//    /**
-//     * @author Ryan
-//     * @description 鑾峰彇搴撲綅
-//     * @param
-//     * @return
-//     * @time 2025/3/24 10:28
-//     */
-//    public String getLocId$() {
-//        if (this.warehouseId == null) { return null; }
-//        WarehouseService warehouseService = SpringUtils.getBean(WarehouseService.class);
-//        Warehouse warehouse = warehouseService.getById(this.warehouseId);
-//        if (Objects.isNull(warehouse)) {
-//            return null;
-//        }
-//        return warehouse.getName();
-//    }
 
     /**
      * @author Ryan
@@ -78,13 +67,7 @@
      * @time 2025/3/24 10:27
      */
     public String getAreaId$() {
-        if (this.locId == null) { return null; }
-        LocService locService = SpringUtils.getBean(LocService.class);
-        Loc byId = locService.getById(this.locId);
-        if (Objects.isNull(byId)) {
-            return null;
-        }
-        return  byId.getCode();
+        return this.areaId$;
     }
 
 

--
Gitblit v1.9.1