public int ReDelete(DeleteSubCompanyParameter parameter)
 {
     this.ExecuteSQL    = "UPDATE dbo.subcompany SET deleted=@deleted WHERE subcomid=@subcomid";
     this.DataParameter = new IDbDataParameter[]
     {
         new SqlParameter("@deleted", parameter.Deleted),
         new SqlParameter("@subcomid", parameter.ComId)
     };
     return(this.ExecuteNonQuery());
 }
        public RespondWebViewData <RespondDeleteSubCompanyViewModel> ReDeleteSubCompany(RequestWebViewData <RequestDeleteSubCompanyViewModel> request)
        {
            var respond   = new RespondWebViewData <RespondDeleteSubCompanyViewModel>(WebViewErrorCode.Exception);
            var parameter = new DeleteSubCompanyParameter
            {
                ComId   = request.data.ComId,
                Deleted = (short)CommonDeleted.NotDeleted
            };
            var dataResult = this.mSubCompanyDataAccess.ReDelete(parameter);

            if (dataResult <= 0)
            {
                return(respond);
            }
            respond = new RespondWebViewData <RespondDeleteSubCompanyViewModel>(WebViewErrorCode.Success);
            MemcacheHelper.RemoveBy(ServiceMemcachedKeyManageConst.BasicSubCompany);

            //由于电脑配置不上mongodb固暂时先屏蔽掉此段mongodb的数据操作
            //this.SaveMongoDbData("恢复删除分公司资料", request, respond, this.GetType());
            return(respond);
        }