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)] /// /// 关闭版本 ///