Add Field to Command Table

This commit is contained in:
Suphonchai Phoonsawat 2023-07-28 10:53:03 +07:00
parent 9a2e487d8d
commit 297b1efb57
6 changed files with 12061 additions and 1 deletions

View file

@ -297,7 +297,16 @@ namespace BMA.EHR.Command.Service.Controllers
{
try
{
throw new NotImplementedException();
var receivers = await _repository.GetReceiverByCommmandIdAsync(orderId);
if (receivers.Count() > 0)
{
return Success(receivers);
}
else
{
// ไม่เจอข้อมูลไปอ่านจากระบบสรรหาที่สง้รายชื่อมาแล้ว insert
return Success();
}
}
catch
{