From a4112a5d31fa3a66daafdc009ff3b3047bb98f67 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期六, 24 五月 2025 17:14:04 +0800 Subject: [PATCH] #巷道 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java index 3247606..96b195d 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/LocItem.java @@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.fasterxml.jackson.annotation.JsonFormat; +import com.vincent.rsf.server.manager.service.LocService; +import com.vincent.rsf.server.manager.service.WarehouseAreasService; import com.vincent.rsf.server.system.constant.DictTypeCode; import com.vincent.rsf.server.system.entity.DictData; import com.vincent.rsf.server.system.service.DictDataService; @@ -180,6 +182,7 @@ * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚� */ @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ") + @TableLogic private Integer deleted; /** @@ -289,6 +292,18 @@ // null // 澶囨敞 // ); + public String getWareArea(){ + if (Cools.isEmpty(this.locId)){ + return ""; + } + LocService locService = SpringUtils.getBean(LocService.class); + Loc loc = locService.getById(this.locId); + if (Objects.isNull(loc)) { + return null; + } + return loc.getAreaId$(); + } + public String getType$(){ if (Cools.isEmpty(this.type)){ return ""; -- Gitblit v1.9.1