From 98651050745b62c1adb9a2845003a23dd4396a22 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 01 三月 2024 18:31:05 +0800 Subject: [PATCH] #车锁 --- src/main/java/com/zy/asrs/entity/BasRgvMap.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/BasRgvMap.java b/src/main/java/com/zy/asrs/entity/BasRgvMap.java index 190dec9..300d642 100644 --- a/src/main/java/com/zy/asrs/entity/BasRgvMap.java +++ b/src/main/java/com/zy/asrs/entity/BasRgvMap.java @@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.enums.IdType; +import com.core.common.SpringUtils; +import com.zy.asrs.service.BasRgvMapService; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -77,8 +79,10 @@ this.lockEndRoute = lockEndRoute; } - public Integer getRgvNoOther(){ - return 3-this.rgvNo; + public Integer getRgvNoOther(Integer rgvNo){ + BasRgvMapService basRgvMapService = SpringUtils.getBean(BasRgvMapService.class); + BasRgvMap basRgvMap = basRgvMapService.selectByOtherRgvNo(rgvNo); + return basRgvMap.getRgvNo(); } -- Gitblit v1.9.1