From a1f84c3eadb3ad10db215822a8f4c9968d52d974 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Wed, 11 Jan 2023 09:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A8=A1=E6=9D=BF=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingPrintTemplate/BookingPrintTemplateService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs b/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs index a81e7ba6..fa80629c 100644 --- a/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs +++ b/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs @@ -332,7 +332,7 @@ namespace Myshipping.Application [HttpGet("/BookingPrintTemplate/download"), AllowAnonymous] public async Task Download(long id) { - var printFile = await _rep.FirstOrDefaultAsync(u => u.Id == id); + var printFile = await _rep.AsQueryable().Filter(null, true).FirstAsync(u => u.Id == id); if (printFile == null) { throw Oops.Bah(BookingErrorCode.BOOK115);