From 47e0141a635eee892221795db73550de2c505dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Tue, 31 Dec 2024 14:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PostionLocationAppService.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs index e5595ba67..67aa5f73f 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs @@ -186,6 +186,25 @@ public class PostionLocationAppService return ObjectMapper.Map, List>(result); } + [HttpPost("get-loc-by-codes")] + public async Task> GetLocationByCodesAsync(List codes) + { + + var ls= await base.GetByCodesAsync(codes).ConfigureAwait(false); + List list = new List(); + foreach (var code in ls) + { + PostionLocationAgvDTO dto = new PostionLocationAgvDTO(); + dto.Code = code.Code; + dto.LocationCode = code.LocationCode; + list.Add(dto); + } + + + return list; + } + + [HttpPost("get-all-list")]