From bcb19e8c93c3cabf0d8eb3ee34ed819b3c5a10ef Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 25 十一月 2024 13:14:11 +0800
Subject: [PATCH] #优化地图

---
 src/main/java/com/zy/asrs/entity/AgvBasDevp.java |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/AgvBasDevp.java b/src/main/java/com/zy/asrs/entity/AgvBasDevp.java
index 0442ee2..c39e1a0 100644
--- a/src/main/java/com/zy/asrs/entity/AgvBasDevp.java
+++ b/src/main/java/com/zy/asrs/entity/AgvBasDevp.java
@@ -7,6 +7,7 @@
 import com.core.common.Cools;
 import com.core.common.SpringUtils;
 import com.zy.asrs.service.BasLocStsService;
+import com.zy.asrs.service.BasLocType1Service;
 import com.zy.system.entity.User;
 import com.zy.system.service.UserService;
 import io.swagger.annotations.ApiModelProperty;
@@ -129,9 +130,9 @@
     private Integer floor;
 
     /**
-     * 瀹瑰櫒绫诲瀷
+     * 璐ф灦绫诲瀷
      */
-    @ApiModelProperty(value= "瀹瑰櫒绫诲瀷")
+    @ApiModelProperty(value= "璐ф灦绫诲瀷")
     @TableField("ctn_type")
     private Integer ctnType;
 
@@ -272,19 +273,12 @@
     }
 
     public String getLocType1$() {
-        if (null == this.locType1){ return null; }
-        switch (this.locType1){
-            case 0:
-                return "鏈煡";
-            case 1:
-                return "寰呭寘瑁�";
-            case 2:
-                return "鍘熸潗鏂�";
-            case 3:
-                return "绠卞3";
-            default:
-                return String.valueOf(this.locType1);
+        BasLocType1Service service = SpringUtils.getBean(BasLocType1Service.class);
+        BasLocType1 basLocType1 = service.selectById(this.locType1);
+        if (!Cools.isEmpty(basLocType1)){
+            return String.valueOf(basLocType1.getLocDesc());
         }
+        return null;
     }
 
     public String getModiUser$(){

--
Gitblit v1.9.1