public JsonResult FinishRevaluation(long id) { return(ExceptionCatch.Invoke(() => { RevaluationService.FinishRevaluation(id, UserHelper.GetCurrentUser().Id); })); }
public ResponseResult FinishRevaluation(string userKeyId, [FromBody] RevaluationBaseRequest request) { LogHelper.Error(string.Format("调用完成复估单API,userKeyId:{0},request:{1}", userKeyId, request.ToJson()), null); var responseResult = new ResponseResult(); try { var user = UserService.GetUserByKeyId(userKeyId); var revaluation = RevaluationService.GetByRevaluationNo(request.RevalutionNo, user.Id); RevaluationService.FinishRevaluation(revaluation.TId, user.Id); responseResult.Code = 0; responseResult.Message = "success"; } catch (ServiceException ex) { responseResult.Code = 1; responseResult.Message = ex.Message; } catch (Exception ex) { responseResult.Code = 1; responseResult.Message = "error"; LogHelper.Error("调用完成复估单API错误日志:", ex); } return(responseResult); }