From 333b22b5523138190ea53620d03d467e05e8875e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Fri, 14 Jul 2023 09:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/INVOICE_SERVICE.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs index 9342573a..fbfd8caa 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs @@ -1,6 +1,7 @@ using Magicodes.ExporterAndImporter.Core; using Magicodes.ExporterAndImporter.Csv; using Magicodes.ExporterAndImporter.Excel; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SettleAccount.Domain.BQ; using Shouldly; @@ -19,6 +20,8 @@ using Win.Sfs.Shared.RepositoryBase; namespace Win.Sfs.SettleAccount.Entities.BQ { + [AllowAnonymous] + [Route("api/settleaccount/[controller]/[action]")] public class INVOICE_SERVICE:ApplicationService { private readonly INormalEfCoreRepository _repository; @@ -59,6 +62,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ var dtos = ObjectMapper.Map, List>(entitys); return new PagedResultDto(totalCount, dtos); } + [HttpPost] public virtual async Task DetailQueryAsync(INVOICE_GRP_REQ_DTO input) { @@ -76,6 +80,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ } + [HttpPost] public virtual async Task ExportAsync(INVOICE_GRP_REQ_DTO input) { IExporter _csv = new CsvExporter(); @@ -109,7 +114,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ ); return _fileName; } - + [HttpPost] public virtual async Task RejectAsync(INVOICE_GRP_REQ_DTO input) { return string.Empty;