From 9265301c1655fffdc71cca7b0e0cfab1af89afeb Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 16 四月 2026 19:07:48 +0800
Subject: [PATCH] 添加接口日志配置文件,优化接口日志记录方法,优化获取阻碍托生成移库任务方法

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/StationMangerService.cs |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/StationMangerService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/StationMangerService.cs"
index 0f206ac..428449c 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/StationMangerService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/StationMangerService.cs"
@@ -3,8 +3,10 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using WIDESEAWCS_Common;
 using WIDESEAWCS_Core.BaseRepository;
 using WIDESEAWCS_Core.BaseServices;
+using WIDESEAWCS_Core.Helper;
 using WIDESEAWCS_IBasicInfoService;
 using WIDESEAWCS_Model.Models;
 
@@ -17,5 +19,25 @@
         }
 
         public IRepository<Dt_StationManger> Repository => BaseDal;
+
+        public Dt_StationManger GetStationInfo(string fromLocationCode)
+        {
+            return BaseDal.QueryFirst(x => x.StationCode == fromLocationCode);
+        }
+
+        public Dt_StationManger GetInStationInfo(string fromLocationCode)
+        {
+            return BaseDal.QueryFirst(x => x.StationCode == fromLocationCode && (x.StationType == StationTypeEnum.StationType_OnlyInbound.ObjToInt() || x.StationType == StationTypeEnum.StationType_InboundAndOutbound.ObjToInt()));
+        }
+
+        /// <summary>
+        /// 鑾峰彇鍑哄簱绔欏彴
+        /// </summary>
+        /// <param name="stationCode"></param>
+        /// <returns></returns>
+        public Dt_StationManger GetOutStationInfo(string stationCode)
+        {
+            return BaseDal.QueryFirst(x => x.StationCode == stationCode && (x.StationType == StationTypeEnum.StationType_OnlyOutbound.ObjToInt() || x.StationType == StationTypeEnum.StationType_InboundAndOutbound.ObjToInt()));
+        }
     }
 }

--
Gitblit v1.9.3