public async Task <IActionResult> SaveData([FromBody] SaveDataInput input) { var entity = _mapper.Map <DialysisObservationEntity>(input); await _dialysisObservationApp.InsertForm(entity, input.VisitId); return(Success("操作成功。")); }
public async Task <IActionResult> SaveData([FromBody] SaveDataInput input) { var patVisitEntity = await _patVisitApp.GetForm(input.VisitId); var userId = _usersService.GetCurrentUserId(); var entity = new PunctureEntity { F_Pid = patVisitEntity.F_Pid, F_Nurse = userId, F_OperateTime = DateTime.Now, F_Point1 = input.Point1, F_Point2 = input.Point2, F_Memo = input.Memo, F_IsSuccess = input.IsSuccess, F_EnabledMark = true }; await _punctureApp.InsertForm(entity); //更新治疗单 穿刺者信息 patVisitEntity.F_PuncturePerson = userId; await _patVisitApp.UpdateForm(patVisitEntity); return(Success("操作成功。")); }