From 0a62180f002d8a601b6b3c46af3a6b4583f9acf6 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期二, 14 四月 2026 18:06:59 +0800
Subject: [PATCH] 添加库区查询接口返回字段:区域

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs   |   13 +++++++++----
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs |    2 +-
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs"
index e978596..4ad2f40 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs"
@@ -137,7 +137,7 @@
                 //搴撳唴鍒扮幇杈圭殑鐐瑰埌鐐逛换鍔★紝鏄惁闇�瑕佸垽鏂揣浣嶇姸鎬侊紵
                 if (taskType == (int)TaskTypeEnum.STU0003)
                 {
-                    var reslut = _stationInfo.Repository.QueryFirst(x => x.StationCode == taskDTO.toLocationCode) ?? throw new Exception($"鏈壘鍒扮粓鐐硅揣浣嶃�恵taskDTO.fromLocationCode}銆�");
+                    var reslut = _stationInfo.Repository.QueryFirst(x => x.StationCode == taskDTO.toLocationCode) ?? throw new Exception($"鏈壘鍒扮粓鐐硅揣浣嶃�恵taskDTO.toLocationCode}銆�");
                     if (reslut.StationStatus != (int)LocationStatusEnum.Free)
                     {
                         throw new Exception($"缁堢偣绔欏彴銆恵taskDTO.toLocationCode}銆戠姸鎬佷笉涓虹┖闂诧紒");
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
index a939d58..ade4182 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
@@ -1155,7 +1155,8 @@
                             LoctionCode = item.LocationCode,
                             LocationStatus = item.LocationStatus,
                             EnableStatus = item.EnableStatus,
-                            PalletCode = item.PalletCode
+                            PalletCode = item.PalletCode,
+                            AreaCode=item.WarehouseId
 
                         });
                     }
@@ -1175,7 +1176,8 @@
                             LoctionCode = item.LocationCode,
                             LocationStatus = item.LocationStatus,
                             EnableStatus = item.EnableStatus,
-                            PalletCode = item.PalletCode
+                            PalletCode = item.PalletCode,
+                            AreaCode = item.WarehouseId
                         });
                     }
                     content.OK(data: list);
@@ -1209,7 +1211,8 @@
                             LoctionCode = item.LocationCode,
                             LocationStatus = item.LocationStatus,
                             EnableStatus = item.EnableStatus,
-                            PalletCode = item.PalletCode
+                            PalletCode = item.PalletCode,
+                            AreaCode = item.WarehouseId
                         });
                     }
                     content.OK(data: list);
@@ -1247,7 +1250,9 @@
                             LoctionCode = item.StationCode,
                             LocationStatus = item.StationStatus,
                             EnableStatus = item.IsOccupied,
-                            PalletCode = item.PalletCode
+                            PalletCode = item.PalletCode,
+                            AreaCode = item.StationRegion
+
                         });
                     }
                     content.OK(data: list);

--
Gitblit v1.9.3