Task #2207 กรณีคนขอโอนอยู่ในสำนักปลัดกรุงเทพมหานคร
Some checks failed
Build & Deploy Placement Service / build (push) Failing after 36s
Some checks failed
Build & Deploy Placement Service / build (push) Failing after 36s
This commit is contained in:
parent
d7b257f0ce
commit
15f5d7cae7
1 changed files with 6 additions and 1 deletions
|
|
@ -574,6 +574,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
LastUpdatedAt = DateTime.Now,
|
||||
};
|
||||
var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
|
||||
bool isDeputy = false;
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
|
|
@ -587,6 +588,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
if (org == null || org.result == null)
|
||||
return Error("ไม่พบหน่วยงานของผู้ใช้งานคนนี้", 404);
|
||||
|
||||
isDeputy = org.result.isDeputy.HasValue ? org.result.isDeputy.Value : false;
|
||||
|
||||
placementTransfer.profileId = org.result.profileId;
|
||||
placementTransfer.prefix = org.result.prefix;
|
||||
placementTransfer.firstName = org.result.firstName;
|
||||
|
|
@ -663,6 +666,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
var baseAPIOrg = _configuration["API"];
|
||||
var apiUrlOrg = $"{baseAPIOrg}/org/workflow/add-workflow";
|
||||
using (var client = new HttpClient())
|
||||
|
|
@ -675,7 +679,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
sysName = "SYS_TRANSFER_REQ",
|
||||
posLevelName = placementTransfer.posLevelNameOld,
|
||||
posTypeName = placementTransfer.posTypeNameOld,
|
||||
fullName = $"{placementTransfer.prefix}{placementTransfer.firstName} {placementTransfer.lastName}"
|
||||
fullName = $"{placementTransfer.prefix}{placementTransfer.firstName} {placementTransfer.lastName}",
|
||||
isDeputy = isDeputy
|
||||
});
|
||||
}
|
||||
await _context.SaveChangesAsync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue