public BaseResponse <bool> CancelScoreApply(CancelScoreApplyParameter parameter)
        {
            BaseResponse <bool> response = new BaseResponse <bool>();

            try
            {
                var apply = scoreApplyRepository.GetDatas <ScoreApply>(t => !t.IsDeleted && t.ApplyID == parameter.ApplyID && t.ApplyStatus == (int)EnumApproveStatus.Approving, true).FirstOrDefault();
                if (apply == null)
                {
                    throw new Exception("数据异常");
                }
                apply.ApplyStatus = (int)EnumApproveStatus.Revoke;
                var operResult = scoreApplyRepository.Update <ScoreApply>(apply);
                if (operResult.ResultType != EnumOperationResultType.Success)
                {
                    throw new Exception("撤销积分申请时,数据库操作发生异常");
                }

                #region 操作日志
                new LogManager().AddOperationLog(parameter.CurrentUserID, "获取积分申请详细信息", parameter.RequestIP);
                #endregion

                return(response);
            }
            catch (Exception e)
            {
                LogHelper.WriteLog(e);
                response.IsSuccessful = false;
                response.Reason       = e.Message;

                return(response);
            }
        }
 public BaseResponse <bool> CancelScoreApply(CancelScoreApplyParameter parameter)
 {
     if (Validate(parameter))
     {
         return(officerManager.CancelScoreApply(parameter));
     }
     else
     {
         BaseResponse <bool> response = new BaseResponse <bool>();
         response.IsSuccessful = false;
         response.Reason       = "JWT_ERR";
         return(response);
     }
 }