From c382cb4559cf2606883e30efbbdf4bbce0465cf6 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 16 六月 2023 16:59:20 +0800 Subject: [PATCH] # 组托前先查询托盘码是否存在提示 --- src/main/java/com/zy/asrs/entity/LocDetl.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/LocDetl.java b/src/main/java/com/zy/asrs/entity/LocDetl.java index b9b4124..eb75b73 100644 --- a/src/main/java/com/zy/asrs/entity/LocDetl.java +++ b/src/main/java/com/zy/asrs/entity/LocDetl.java @@ -7,6 +7,7 @@ import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.asrs.service.LocMastService; +import com.zy.asrs.service.MatService; import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; @@ -270,6 +271,30 @@ return locMast.getLocType2$(); } + public Integer getMatType() { + if (Cools.isEmpty(this.matnr)) { + return null; + } + MatService matService = SpringUtils.getBean(MatService.class); + Mat mat = matService.selectByMatnr(this.matnr); + if (mat == null) { + return null; + } + return mat.getMatType(); + } + + public String getMatType$() { + if (Cools.isEmpty(this.matnr)) { + return ""; + } + MatService matService = SpringUtils.getBean(MatService.class); + Mat mat = matService.selectByMatnr(this.matnr); + if (mat == null) { + return ""; + } + return mat.getMatType$(); + } + public void sync(Object source) { Synchro.Copy(source, this); } -- Gitblit v1.9.1