From a03bd4252a0ac08776495935178785db263e6394 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 14 Aug 2024 16:47:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=20route=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoService.cs | 6 +++--- .../EMealVoucher/Controllers/EMealVoucherController.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index 4b04cfc7..8af911b0 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -463,14 +463,14 @@ public class GainfoService : IGainfoService return departmentNos.Distinct().ToList(); //local method - void RecursionGetNext(string currentNo, List departments, List result) + void RecursionGetNext(string currentNo, List internalDepartments, List result) { - var next = departments.Where(x => x.PNo == currentNo).ToList(); + var next = internalDepartments.Where(x => x.PNo == currentNo).ToList(); foreach (var item in next) { result.Add(item.No); - RecursionGetNext(item.No, departments, result); + RecursionGetNext(item.No, internalDepartments, result); } } } diff --git a/Src/Dlhis.Canteen/EMealVoucher/Controllers/EMealVoucherController.cs b/Src/Dlhis.Canteen/EMealVoucher/Controllers/EMealVoucherController.cs index 40b9483d..a4dd5f14 100644 --- a/Src/Dlhis.Canteen/EMealVoucher/Controllers/EMealVoucherController.cs +++ b/Src/Dlhis.Canteen/EMealVoucher/Controllers/EMealVoucherController.cs @@ -35,7 +35,7 @@ public class EMealVoucherController : ControllerBase /// /// /// - [HttpGet("no")] + [HttpGet("details")] public async Task> GetDetailsByNoAsync(string no) { return await _eMealVoucherService.GetDetailsByNoAsync(no);