From d25c8fa670a8fea0977c85f67b13917b3bdefa89 Mon Sep 17 00:00:00 2001
From: verou <857149855@qq.com>
Date: 星期五, 14 三月 2025 17:01:24 +0800
Subject: [PATCH] fix:增加datagrid

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
index 7e6e58b..b4af411 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
@@ -6,6 +6,7 @@
 import java.util.Date;
 
 import com.vincent.rsf.server.manager.service.BatchRegularService;
+import com.vincent.rsf.server.manager.service.CompanysService;
 import com.vincent.rsf.server.manager.service.MatnrGroupService;
 import com.vincent.rsf.server.manager.service.ShipperService;
 import org.springframework.format.annotation.DateTimeFormat;
@@ -56,6 +57,9 @@
     @ApiModelProperty(value= "璐т富ID")
     private Long shipperId;
 
+//    @ApiModelProperty(value = "璐т富缂栫爜")
+//    private String shipperCode;
+
     /**
      * 鍒嗙粍ID(*)
      */
@@ -72,7 +76,7 @@
      * ERP缂栫爜
      */
     @ApiModelProperty(value= "ERP缂栫爜")
-    private String erpCode;
+    private String platCode;
 
     /**
      * 瑙勬牸
@@ -254,13 +258,13 @@
 
     public Matnr() {}
 
-    public Matnr(String name,String code,Long shipperId,Long groupId,Long rglarId,String erpCode,String spec,String model,Double weight,String color,String size,String describle,Integer nromNum,String unit,String purUnit,String stockUnit,Short stockLevel,Short flagLabelMange,Double safeQty,Double minQty,Double maxQty,Integer stagn,Integer valid,Integer validWarn,Short flagCheck,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
+    public Matnr(String name,String code,Long shipperId,Long groupId,Long rglarId,String platCode,String spec,String model,Double weight,String color,String size,String describle,Integer nromNum,String unit,String purUnit,String stockUnit,Short stockLevel,Short flagLabelMange,Double safeQty,Double minQty,Double maxQty,Integer stagn,Integer valid,Integer validWarn,Short flagCheck,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
         this.name = name;
         this.code = code;
         this.shipperId = shipperId;
         this.groupId = groupId;
         this.rglarId = rglarId;
-        this.erpCode = erpCode;
+        this.platCode = platCode;
         this.spec = spec;
         this.model = model;
         this.weight = weight;
@@ -327,10 +331,10 @@
 //    );
 
     public String getShipperId$(){
-        ShipperService service = SpringUtils.getBean(ShipperService.class);
-        Shipper shipper = service.getById(this.shipperId);
-        if (!Cools.isEmpty(shipper)){
-            return String.valueOf(shipper.getName());
+        CompanysService service = SpringUtils.getBean(CompanysService.class);
+        Companys companys = service.getById(this.shipperId);
+        if (!Cools.isEmpty(companys)){
+            return String.valueOf(companys.getName());
         }
         return null;
     }
@@ -344,7 +348,7 @@
         return null;
     }
 
-    public String getRglarId(){
+    public String getRglarId$(){
         BatchRegularService service = SpringUtils.getBean(BatchRegularService.class);
         BatchRegular batchRegular = service.getById(this.rglarId);
         if (!Cools.isEmpty(batchRegular)){

--
Gitblit v1.9.1