แก้ไขการลา
This commit is contained in:
parent
1de9e837f4
commit
0f74869a8c
1 changed files with 1 additions and 3 deletions
|
|
@ -704,8 +704,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId);
|
var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId);
|
||||||
|
|
||||||
var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken);
|
var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(userId, AccessToken);
|
||||||
|
var govAge = (profile?.DateStart?.Date ?? DateTime.Now.Date).DiffDay(DateTime.Now.Date);
|
||||||
var govAge = profile!.DateStart!.Value.Date.DiffDay(DateTime.Now.Date);
|
|
||||||
|
|
||||||
if (profile == null)
|
if (profile == null)
|
||||||
{
|
{
|
||||||
|
|
@ -1483,7 +1482,6 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
posLevelName = profile.PosLevel?.PosLevelName ?? "",
|
posLevelName = profile.PosLevel?.PosLevelName ?? "",
|
||||||
posTypeName = profile.PosType?.PosTypeName ?? "",
|
posTypeName = profile.PosType?.PosTypeName ?? "",
|
||||||
});
|
});
|
||||||
Console.WriteLine(_res);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Success();
|
return Success();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue