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/AgvLocMast.java | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/AgvLocMast.java b/src/main/java/com/zy/asrs/entity/AgvLocMast.java index 11bc094..1554ca7 100644 --- a/src/main/java/com/zy/asrs/entity/AgvLocMast.java +++ b/src/main/java/com/zy/asrs/entity/AgvLocMast.java @@ -9,6 +9,7 @@ import com.zy.asrs.entity.BasLocSts; import com.zy.asrs.entity.BasWhs; import com.zy.asrs.service.BasLocStsService; +import com.zy.asrs.service.BasLocType1Service; import com.zy.asrs.service.BasWhsService; import com.zy.system.entity.User; import com.zy.system.service.UserService; @@ -184,6 +185,21 @@ @ApiModelProperty(value= "") private String status; + /** + * 鎺� + */ + @ApiModelProperty(value= "鍦板浘鎺�") + private Integer mapRow1; + + /** + * 鍒� + */ + @ApiModelProperty(value= "鍦板浘鍒�") + private Integer mapBay1; + + @ApiModelProperty(value= "鍦板浘鍒�") + private Integer rightSide; + public String getWhsType$(){ BasWhsService service = SpringUtils.getBean(BasWhsService.class); @@ -218,19 +234,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 getLocType2$() { -- Gitblit v1.9.1