From baad30699918c536d0b96e36df70b8f352d520e4 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期五, 15 八月 2025 10:15:53 +0800
Subject: [PATCH] 同步

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
index ba7b1fb..1b01af6 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs"
@@ -253,12 +253,12 @@
                         Row = line,
                         Column = column,
                         Layer = layer,
-                        LocationCode = line.ToString().PadLeft(3, '0') + '-' + column.ToString().PadLeft(3, '0') + '-' + layer.ToString().PadLeft(3, '0'),
+                        LocationCode = 'B' + line.ToString().PadLeft(2, '0') + '-' + column.ToString().PadLeft(2, '0') + '-' + layer.ToString().PadLeft(2, '0'),
                         LocationName = ConvertToFormattedString(line, column, layer),
-                        LocationType = 1,
+                        LocationType = 2,
                         Remark = "",
-                        Depth = locType > 1 ? (((line - 1) % 4) + 1) == 2 || (((line - 1) % 4) + 1) == 3 ? 1 : 2 : 1,
-                        RoadwayNo = locType > 1 ? $"SC{((line - 1) / 4) + 1}" : $"SC{((line - 1) / 2) + 1}",
+                        Depth = 1,//locType > 1 ? (((line - 1) % 4) + 1) == 2 || (((line - 1) % 4) + 1) == 3 ? 1 : 2 : 1,
+                        RoadwayNo = "AGV",  //locType > 1 ? $"SC{((line - 1) / 4) + 1}" : $"SC{((line - 1) / 2) + 1}"
                         LocationStatus = LocationEnum.Free.ObjToInt(),
                         AreaId = areaId,
                         Creater = "systeam",
@@ -320,7 +320,7 @@
         var data = BaseDal.QueryData(x => x.AreaId == Convert.ToInt32(area.areaCode));
 
         List<LocationLayer> layers = new List<LocationLayer>();
-        foreach (var layer in data.GroupBy(t => t.Layer))
+        foreach (var layer in data.GroupBy(t => t.Column))
         {
             var rows = new List<LocationRow>();
             var data_rows = layer.GroupBy(t => t.Row);
@@ -332,7 +332,8 @@
                     cols.Add(new LocationCol()
                     {
                         //鍒�
-                        index = data_col.Column,
+                        index = data_col.Layer,
+                        locationCode = data_col.LocationCode,
                         location_state = data_col.LocationStatus.ToString(),
                         location_lock = data_col.LocationStatus.ToString(),
                     });
@@ -350,6 +351,7 @@
             {
                 //灞�
                 index = layer.Key,
+                //locationCode = layer.LocationCode,
                 rows = rows
             });
         }
@@ -542,7 +544,7 @@
         string layerString = ConvertNumberToChineseString(layer);
 
         // 鏍煎紡鍖栬緭鍑�
-        return $"{lineString}琛寋columnString}鍒梴layerString}灞�";
+        return $"B{lineString}琛寋columnString}灞倇layerString}涓�";
     }
 
     public static string ConvertNumberToChineseString(int number)

--
Gitblit v1.9.3