From b807c452c09647ebd742133ccf3a0ce962cff8d3 Mon Sep 17 00:00:00 2001 From: 44673626 <44673626@qq.com> Date: Thu, 13 Jan 2022 18:19:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=9F=E9=97=B4=E6=9D=83=E9=99=90=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/Controls/CentralizedControlAppService.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs index 081a1ce8..a434fa40 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs @@ -74,7 +74,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls [HttpPost] [Route("ExcelImport")] [DisableRequestSizeLimit] - [Authorize(SettleAccountPermissions.CentralizedControls.Default)] + [Authorize(SettleAccountPermissions.CentralizedControls.Create)] public async Task CentralizedControlUploadExcelImport([FromForm] IFormFileCollection files,Guid branchId) { ExportImporter _exportImporter = new ExportImporter(); @@ -101,7 +101,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls /// 实体DTO [HttpGet] [Route("{id}")] - [Authorize(SettleAccountPermissions.CentralizedControls.Default)] virtual public async Task GetAsync(Guid id) { var result = await GetFromCacheAsync(id); @@ -140,7 +139,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls /// 实体DTO列表 [HttpPost] [Route("list")] - [Authorize(SettleAccountPermissions.CentralizedControls.Default)] virtual public async Task> GetListAsync(CentralizedControlRequestDto input) { var entities = await _repository.GetListByFilterAsync(input.BranchId, input.Filters, input.Sorting, input.MaxResultCount, @@ -159,7 +157,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls /// 实体总数 [HttpGet] [Route("count")] - [Authorize(SettleAccountPermissions.CentralizedControls.Default)] virtual public async Task GetTotalCountAsync(Guid branchId) { return await _repository.GetCountAsync(branchId); @@ -171,7 +168,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls /// 实体DTO列表 [HttpGet] [Route("all")] - [Authorize(SettleAccountPermissions.CentralizedControls.Default)] virtual public async Task> GetAllAsync(Guid branchId) { var entities = await _repository.GetAllAsync(branchId, true); @@ -284,6 +280,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls } [HttpPost] [Route("open")] + [Authorize(SettleAccountPermissions.CentralizedControls.Create)] public async Task OpenVersion(List ids) { foreach (var id in ids) @@ -296,6 +293,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls } [HttpPost] [Route("close")] + [Authorize(SettleAccountPermissions.CentralizedControls.Create)] /// /// 关闭版本 ///