From 62b94e763b07ce64e5b43274bb428c1c9c46ed6e Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期三, 25 十二月 2024 13:33:59 +0800 Subject: [PATCH] 出入库限制 --- src/main/java/com/zy/asrs/entity/RowLastno.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/RowLastno.java b/src/main/java/com/zy/asrs/entity/RowLastno.java index d4897ed..e4dedf1 100644 --- a/src/main/java/com/zy/asrs/entity/RowLastno.java +++ b/src/main/java/com/zy/asrs/entity/RowLastno.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.zy.asrs.service.BasWhsService; +import com.zy.asrs.service.RowLastnoTypeService; import com.zy.system.entity.User; import com.zy.system.service.UserService; import com.core.common.Cools; @@ -378,6 +380,16 @@ public Integer getTypeId() { return typeId; } + public String getTypeId$() { + RowLastnoTypeService rowLastnoTypeService = SpringUtils.getBean(RowLastnoTypeService.class); + RowLastnoType rowLastnoType = rowLastnoTypeService.selectById(this.typeId.longValue()); + BasWhsService basWhsService = SpringUtils.getBean(BasWhsService.class); + BasWhs basWhs = basWhsService.selectById(rowLastnoType.getType().longValue()); + if (!Cools.isEmpty(rowLastnoType)){ + return rowLastnoType.getTypeName()+"<==>"+rowLastnoType.getMemo()+"<==>"+basWhs.getWhsDesc(); + } + return typeId.toString(); + } public void setTypeId(Integer typeId) { this.typeId = typeId; -- Gitblit v1.9.1