เพิ่ม revisionId และแก้ตรวจสิทธิ์
This commit is contained in:
parent
f5130a4c3c
commit
e030d54b9a
2 changed files with 4 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("{path}")]
|
||||
[HttpGet()]
|
||||
public async Task<ActionResult<ResponseObject>> GetList(string path)
|
||||
{
|
||||
path = path.Trim().ToUpper();
|
||||
|
|
@ -107,6 +107,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
period_year = p.Year,
|
||||
period_isActive = p.IsActive,
|
||||
period_doc = p.ReliefDoc == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.ReliefDoc.Id,
|
||||
period_revision = p.RevisionId,
|
||||
})
|
||||
.ToListAsync();
|
||||
var data = new List<dynamic>();
|
||||
|
|
@ -124,6 +125,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
period_year = insigniaPeriod.period_year,
|
||||
period_isActive = insigniaPeriod.period_isActive,
|
||||
period_doc = insigniaPeriod.period_doc == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(insigniaPeriod.period_doc),
|
||||
period_revision = insigniaPeriod.period_revision,
|
||||
};
|
||||
data.Add(_data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1353,7 +1353,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
/// <response code="400">ค่าตัวแปรที่ส่งมาไม่ถูกต้อง</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("note/{path}")]
|
||||
[HttpGet("note")]
|
||||
public async Task<ActionResult<ResponseObject>> GetListNote(string path)
|
||||
{
|
||||
path = path.Trim().ToUpper();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue