no message
This commit is contained in:
parent
94980d9157
commit
d47df139ed
9 changed files with 532 additions and 195 deletions
|
|
@ -1065,6 +1065,31 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
.FirstOrDefaultAsync(x => x.Id == personalId);
|
||||
if (profile == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
profile.root = null;
|
||||
profile.rootId = null;
|
||||
profile.rootShortName = null;
|
||||
profile.child1 = null;
|
||||
profile.child1Id = null;
|
||||
profile.child1ShortName = null;
|
||||
profile.child2 = null;
|
||||
profile.child2Id = null;
|
||||
profile.child2ShortName = null;
|
||||
profile.child3 = null;
|
||||
profile.child3Id = null;
|
||||
profile.child3ShortName = null;
|
||||
profile.child4 = null;
|
||||
profile.child4Id = null;
|
||||
profile.child4ShortName = null;
|
||||
profile.orgRevisionId = null;
|
||||
profile.posMasterNo = null;
|
||||
profile.positionName = null;
|
||||
profile.positionField = null;
|
||||
profile.posTypeId = null;
|
||||
profile.posTypeName = null;
|
||||
profile.posLevelId = null;
|
||||
profile.posLevelName = null;
|
||||
|
||||
profile.OrganizationPosition = null;
|
||||
profile.PositionNumber = null;
|
||||
profile.PositionPath = null;
|
||||
|
|
@ -1087,6 +1112,20 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
return Success();
|
||||
}
|
||||
|
||||
|
||||
[HttpPut("date/update/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateDateDraft([FromBody] PersonDateRequest req, Guid personalId)
|
||||
{
|
||||
var profile = await _context.PlacementProfiles
|
||||
.FirstOrDefaultAsync(x => x.Id == personalId);
|
||||
if (profile == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
profile.ReportingDate = req.Date;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
[HttpGet("user/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> GetUserByOrganization(Guid personalId)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue