From bed735aae42b6e0c75bf3fd63d9cd0996fba9355 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 21 五月 2025 14:21:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/devlop' into devlop

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java |   46 +++++++++++++++++++++++++++-------------------
 1 files changed, 27 insertions(+), 19 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java
index 206ebef..c204d8b 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java
@@ -1,10 +1,10 @@
 package com.vincent.rsf.server.manager.entity;
 
 import java.text.SimpleDateFormat;
-import java.util.Arrays;
-import java.util.Date;
+import java.util.*;
 
 import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.annotation.*;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.vincent.rsf.server.manager.service.WarehouseAreasService;
@@ -24,6 +24,7 @@
 import com.vincent.rsf.server.system.entity.User;
 import java.io.Serializable;
 import java.util.Date;
+import java.util.stream.Collectors;
 
 @Data
 @TableName("man_bas_station")
@@ -66,7 +67,7 @@
      * 鎵�灞炲簱鍖篿d
      */
     @ApiModelProperty(value= "鎵�灞炲簱鍖篿d")
-    private Integer area;
+    private Long area;
 
     /**
      * 鏄惁鍙法鍖�
@@ -96,12 +97,13 @@
      * 瀹瑰櫒绫诲瀷
      */
     @ApiModelProperty(value= "瀹瑰櫒绫诲瀷")
-    private Integer containerType;
+    private String containerType;
 
     /**
      * 鏉$爜
      */
     @ApiModelProperty(value= "鏉$爜")
+    @TableField(updateStrategy = FieldStrategy.IGNORED)
     private String barcode;
 
     /**
@@ -149,7 +151,10 @@
     private Long tenantId;
 
     @TableField(exist = false)
-    private Long[] areaIds;
+    private List<Long> areaIds;
+
+    @TableField(exist = false)
+    private List<Long> containerTypes;
 
     public BasStation() {}
 
@@ -174,6 +179,22 @@
 //            null,    // 鏇存柊浜�
 //            null    // 鏇存柊鏃堕棿
 //    );
+
+    public List<Long> getContainerTypes$(){
+        if (Cools.isEmpty(this.containerType)){
+            return new ArrayList<>();
+        }
+        DictDataService service = SpringUtils.getBean(DictDataService.class);
+
+        Object parse = JSONArray.parse(this.getContainerType());
+        List<Long> longs1 = JSONObject.parseArray(parse.toString(), Long.class);
+        List<DictData> dictData = service.list(new LambdaQueryWrapper<DictData>()
+                .eq(DictData::getDictTypeCode, "sys_container_type")
+                .in(DictData::getValue, longs1)
+        );
+        List<Long> longs = dictData.stream().map(DictData::getId).collect(Collectors.toList());
+        return longs;
+    }
 
     public String getCreateTime$(){
         if (Cools.isEmpty(this.createTime)){
@@ -204,20 +225,7 @@
         return "";
     }
 
-    public String getContainerType$(){
-        if (Cools.isEmpty(this.useStatus)){
-            return "";
-        }
-        DictDataService service = SpringUtils.getBean(DictDataService.class);
-        DictData dictData = service.getOne(new LambdaQueryWrapper<DictData>()
-                .eq(DictData::getDictTypeCode, "sys_container_type")
-                .eq(DictData::getValue, this.containerType)
-        );
-        if (!Cools.isEmpty(dictData)){
-            return String.valueOf(dictData.getLabel());
-        }
-        return "";
-    }
+
 
     public String getArea$(){
         if (null == this.area){ return null; }

--
Gitblit v1.9.1