From 7ce43ee45a831891318f75e5be822c53f44f5b2c Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 6 Nov 2024 16:06:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A2=9E=E5=8A=A0BusinessPlace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.External/OpenApi/Controllers/CanteenController.cs | 4 +++- Src/Dlhis.External/OpenApi/Response/BalanceRecordResponse.cs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.External/OpenApi/Controllers/CanteenController.cs b/Src/Dlhis.External/OpenApi/Controllers/CanteenController.cs index 2ed59af2..4d4ff92f 100644 --- a/Src/Dlhis.External/OpenApi/Controllers/CanteenController.cs +++ b/Src/Dlhis.External/OpenApi/Controllers/CanteenController.cs @@ -1,4 +1,5 @@ -using Dlhis.Entity.Canteen.Entities; +using Dlhis.Entity.Basic.Entity; +using Dlhis.Entity.Canteen.Entities; using Dlhis.Entity.Canteen.Enums; using Dlhis.External.OpenApi.Response; using Kurisu.AspNetCore.CustomClass; @@ -72,6 +73,7 @@ public class CanteenController : ControllerBase CostDateTime = x.CostDateTime, Amount = x.Amount, Type = x.Type, + BusinessPlace = SqlFunc.Subqueryable().Where(p => p.Code == x.BusinessPlaceCode).Select(p => p.CustomCode), Remark = x.Remark }) .ToListAsync(); diff --git a/Src/Dlhis.External/OpenApi/Response/BalanceRecordResponse.cs b/Src/Dlhis.External/OpenApi/Response/BalanceRecordResponse.cs index 335afc79..0040acd8 100644 --- a/Src/Dlhis.External/OpenApi/Response/BalanceRecordResponse.cs +++ b/Src/Dlhis.External/OpenApi/Response/BalanceRecordResponse.cs @@ -12,5 +12,7 @@ public class BalanceRecordResponse public BalanceRecordTypeEnumType Type { get; set; } + public string BusinessPlace { get; set; } + public string Remark { get; set; } } \ No newline at end of file