Browse Source

期间权限设置

FoShanPG
44673626 3 years ago
parent
commit
b807c452c0
  1. 8
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs

8
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<string> CentralizedControlUploadExcelImport([FromForm] IFormFileCollection files,Guid branchId)
{
ExportImporter _exportImporter = new ExportImporter();
@ -101,7 +101,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
/// <returns>实体DTO</returns>
[HttpGet]
[Route("{id}")]
[Authorize(SettleAccountPermissions.CentralizedControls.Default)]
virtual public async Task<CentralizedControlDto> GetAsync(Guid id)
{
var result = await GetFromCacheAsync(id);
@ -140,7 +139,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
/// <returns>实体DTO列表</returns>
[HttpPost]
[Route("list")]
[Authorize(SettleAccountPermissions.CentralizedControls.Default)]
virtual public async Task<PagedResultDto<CentralizedControlDto>> 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
/// <returns>实体总数</returns>
[HttpGet]
[Route("count")]
[Authorize(SettleAccountPermissions.CentralizedControls.Default)]
virtual public async Task<long> GetTotalCountAsync(Guid branchId)
{
return await _repository.GetCountAsync(branchId);
@ -171,7 +168,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
/// <returns>实体DTO列表</returns>
[HttpGet]
[Route("all")]
[Authorize(SettleAccountPermissions.CentralizedControls.Default)]
virtual public async Task<ListResultDto<CentralizedControlDto>> 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<bool> OpenVersion(List<Guid> ids)
{
foreach (var id in ids)
@ -296,6 +293,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls
}
[HttpPost]
[Route("close")]
[Authorize(SettleAccountPermissions.CentralizedControls.Create)]
/// <summary>
/// 关闭版本
/// </summary>

Loading…
Cancel
Save