From 1ea84a23004ebcfaf86cb436d84164602ca9091d Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期五, 08 八月 2025 17:03:36 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
---
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