From 4098b602ee66a2151258b49ee23fffcd336e0fa8 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Mon, 7 Aug 2023 16:17:18 +0700 Subject: [PATCH] =?UTF-8?q?fix=20bug=20api=20=E0=B9=81=E0=B8=AA=E0=B8=94?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=9A=E0=B8=9A=E0=B8=AA=E0=B8=A3=E0=B8=A3=E0=B8=AB=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Command.Service/Controllers/OrderController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Command.Service/Controllers/OrderController.cs b/BMA.EHR.Command.Service/Controllers/OrderController.cs index d5f3b382..6008cb04 100644 --- a/BMA.EHR.Command.Service/Controllers/OrderController.cs +++ b/BMA.EHR.Command.Service/Controllers/OrderController.cs @@ -935,7 +935,9 @@ namespace BMA.EHR.Command.Service.Controllers { try { - var data = await _repository.GetPlacementSalaryAsync(personalId); + var record = await _repository.GetCommandReceiverAsync(personalId); + + var data = await _repository.GetPlacementSalaryAsync(record!.RefPlacementProfileId!.Value); return Success(data); }