public JsonResult AcceptRevaluation(long id)
 {
     return(ExceptionCatch.Invoke(() =>
     {
         RevaluationService.AcceptRevaluation(id, UserHelper.GetCurrentUser().Id);
     }));
 }
        public ResponseResult AcceptRevaluation(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.AcceptRevaluation(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);
        }