From fb77cc8fe39bd3c3f49b336bf9e664957fe2dc07 Mon Sep 17 00:00:00 2001 From: wanshenmean <cathay_xy@163.com> Date: 星期五, 15 十一月 2024 11:28:51 +0800 Subject: [PATCH] 11.06 --- Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs index b389354..a656551 100644 --- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs +++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs @@ -238,5 +238,27 @@ } return content; } + + /// <summary> + /// 鏍规嵁璁惧缂栧彿鑾峰彇鍑哄簱璺敱鐐逛綅 + /// </summary> + /// <param name="deviceCode"></param> + /// <returns></returns> + public List<string> QueryOutDeviceCodes(string deviceCode) + { + List<string> positions = new List<string>(); + try + { + List<string> outRouterPositions = BaseDal.QueryData(x => x.ChildPosiDeviceCode == deviceCode && x.InOutType == RouterInOutType.Out).GroupBy(x => x.ChildPosi).Select(x => x.Key).ToList(); + + positions.AddRange(outRouterPositions); + return positions.GroupBy(x => x).Select(x => x.Key).ToList(); + } + catch + { + + } + return positions; + } } } -- Gitblit v1.9.3