コード例 #1
0
 public JsonResult FinishRevaluation(long id)
 {
     return(ExceptionCatch.Invoke(() =>
     {
         RevaluationService.FinishRevaluation(id, UserHelper.GetCurrentUser().Id);
     }));
 }
コード例 #2
0
        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);
        }