From f72b0dc0ae80fee81a7a678deb0e3d97f89a0e1b Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期三, 21 八月 2024 09:23:46 +0800 Subject: [PATCH] #优化 --- src/main/java/com/zy/asrs/entity/LocDetl.java | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 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 760adbd..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) { @@ -258,6 +273,42 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } + public String getLocType2$() { + if (Cools.isEmpty(this.locNo)) { + return ""; + } + LocMastService locMastService = SpringUtils.getBean(LocMastService.class); + LocMast locMast = locMastService.selectById(this.locNo); + if (locMast == null) { + return ""; + } + 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