From 97fc50bd8f1921de7e30b056494f899f65f8ac4e Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 06 九月 2023 17:08:39 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/WrkMast.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkMast.java b/src/main/java/com/zy/asrs/entity/WrkMast.java index 34963fb..2a88d4b 100644 --- a/src/main/java/com/zy/asrs/entity/WrkMast.java +++ b/src/main/java/com/zy/asrs/entity/WrkMast.java @@ -15,6 +15,7 @@ import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.List; @Data @TableName("asr_wrk_mast") @@ -418,6 +419,18 @@ } return null; } + public String getOrderNo$(){ + WrkDetlService wrkDetlService = SpringUtils.getBean(WrkDetlService.class); + List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(this.wrkNo); + String orderNo = ""; + if (!Cools.isEmpty(wrkDetls) && wrkDetls.size()!=0){ + if (wrkDetls.get(0).getOrderNo() != null) { + orderNo = wrkDetls.get(0).getOrderNo(); + } + return String.valueOf(orderNo); + } + return ""; + } public String getIoTime$(){ if (Cools.isEmpty(this.ioTime)){ -- Gitblit v1.9.1