From b9f5657fc9a083238a1a27ef35ef885f1e912b4f Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期二, 25 六月 2024 15:24:24 +0800 Subject: [PATCH] 后端 --- 代码管理/WMS/WMS_Server/WIDESEA_WMS/Services/system/Partial/dt_stationinfoService.cs | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Services/system/Partial/dt_stationinfoService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Services/system/Partial/dt_stationinfoService.cs" index befac78..d8f6713 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Services/system/Partial/dt_stationinfoService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WMS_Server/WIDESEA_WMS/Services/system/Partial/dt_stationinfoService.cs" @@ -338,7 +338,7 @@ WebResponseContent content = new WebResponseContent(); VOLContext volContext = new VOLContext(); Idt_stationinfoRepository dsta = new dt_stationinfoRepository(volContext); - string[] stationCodes = { "A", "S", "X", "W", "DD", "B", "C", "D01" }; + string[] stationCodes = { "W", "A", "B", "C", "D01" }; List<Tuple<List<dt_stationinfo>, int>> responseData = new List<Tuple<List<dt_stationinfo>, int>>(); foreach (string code in stationCodes) { @@ -350,5 +350,21 @@ return content; } + public WebResponseContent pcs_dt_stationinfolist() + { + WebResponseContent content = new WebResponseContent(); + VOLContext volContext = new VOLContext(); + Idt_stationinfoRepository dsta = new dt_stationinfoRepository(volContext); + string[] stationCodes = { "X01", "X02", "X03", "S", "DD001" }; + List<Tuple<List<dt_stationinfo>>> responseData = new List<Tuple<List<dt_stationinfo>>>(); + foreach (string code in stationCodes) + { + var data = dsta.Find(_ => true).Where(a => a.stationCode.Contains(code)).OrderBy(a => a.stationCode).ToList(); + responseData.Add(Tuple.Create(data)); + } + content.Data = responseData; + return content; + } + } } -- Gitblit v1.9.3