fix #1511 และเปลี่ยน Env เพิ่ม VITE_URL_MGT

This commit is contained in:
Suphonchai Phoonsawat 2025-05-07 14:23:39 +07:00
parent 0b407f3c68
commit 48baf99adf
4 changed files with 9 additions and 6 deletions

View file

@ -152,7 +152,7 @@ namespace BMA.EHR.Leave.Service.Controllers
var lastLeaveRequest =
await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync(data.KeycloakUserId,
data.Type.Id);
data.Type.Id, data.LeaveStartDate.Date);
//var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken);
//var approver = string.Empty;
@ -593,7 +593,7 @@ namespace BMA.EHR.Leave.Service.Controllers
child3 = profileLeave.Child3 == null ? "" : profileLeave.Child3!.ToThaiNumber(),
child4 = profileLeave.Child4 == null ? "" : profileLeave.Child4!.ToThaiNumber(),
positions = profileLeave.Positions.Select(x => new
positions = profileLeave.Positions.Select(x => new
{
positionName = x.PositionName == null ? "" : x.PositionName.ToThaiNumber(),
dateStart = x.DateStart.ToThaiShortDate().ToThaiNumber(),