From 3ad65283c54059e0c61110589fb19398ac3525fe Mon Sep 17 00:00:00 2001 From: zwl <1051256694@qq.com> Date: 星期二, 08 七月 2025 08:32:32 +0800 Subject: [PATCH] 完善拣料转全板 --- src/main/java/com/zy/asrs/entity/LocDetl.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 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..a683bf5 100644 --- a/src/main/java/com/zy/asrs/entity/LocDetl.java +++ b/src/main/java/com/zy/asrs/entity/LocDetl.java @@ -7,6 +7,8 @@ import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.asrs.service.LocMastService; +import com.zy.asrs.service.LocOwnerService; +import com.zy.asrs.service.MatService; import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; @@ -158,6 +160,9 @@ @ApiModelProperty(value = "澶囨敞") private String memo; + @ApiModelProperty(value= "瀹㈡埛淇℃伅ID") + private Long owner; + public String getLocNo$() { LocMastService service = SpringUtils.getBean(LocMastService.class); @@ -167,6 +172,16 @@ } return null; } + + public String getOwner$(){ + LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); + LocOwner locOwner = service.selectById(this.owner); + if (!Cools.isEmpty(locOwner)){ + return String.valueOf(locOwner.getOwner()); + } + return null; + } + public String getBeBatch$() { if (null == this.beBatch) { @@ -270,6 +285,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