From 474103da0c9793ec9cd7559f109491ece282e269 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 28 七月 2025 17:03:16 +0800 Subject: [PATCH] 调拔单功能优化 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TransferItem.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TransferItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TransferItem.java index c81c788..25985bd 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TransferItem.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TransferItem.java @@ -5,6 +5,7 @@ import java.text.SimpleDateFormat; import java.util.Date; +import com.vincent.rsf.server.manager.service.CompanysService; import lombok.experimental.Accessors; import org.checkerframework.checker.units.qual.A; import org.springframework.format.annotation.DateTimeFormat; @@ -21,6 +22,7 @@ import com.vincent.rsf.server.system.entity.User; import java.io.Serializable; import java.util.Date; +import java.util.Objects; @Data @Accessors(chain = true) @@ -264,6 +266,28 @@ // null // 澶囨敞 // ); + public String getSplrName() { + if (null == this.splrId) { return null; } + CompanysService companysService = SpringUtils.getBean(CompanysService.class); + Companys companys = companysService.getById(this.splrId); + if (Objects.isNull(companys)) { + return null; + } else { + return companys.getName(); + } + } + + public String getSplrCode() { + if (null == this.splrId) { return null; } + CompanysService companysService = SpringUtils.getBean(CompanysService.class); + Companys companys = companysService.getById(this.splrId); + if (Objects.isNull(companys)) { + return null; + } else { + return companys.getCode(); + } + } + public String getStatus$(){ if (null == this.status){ return null; } switch (this.status){ -- Gitblit v1.9.1