From fb6d0e551b68468ef27110f5577b2389114a6b5a Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Sun, 23 Apr 2023 11:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B4=BE=E8=BD=A6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/TaskManagePlat/TaskManageTruckService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs index ebdd0926..5fce0f37 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs @@ -622,8 +622,6 @@ namespace Myshipping.Application reportUrl += "/"; } - var genUrl = $"{reportUrl}PrintReport"; - var truckOrder = _taskTruckRepository.AsQueryable().First(a => a.PK_ID == taskTruckId); if (truckOrder == null) @@ -667,7 +665,7 @@ namespace Myshipping.Application _logger.LogInformation($"taskTruckId={taskTruckId} 请求打印 JSON={JSON.Serialize(model)}"); - return await PrintHelper.GeneratePrintFile(JSON.Serialize(model), genUrl, PRINT_DATASOURCE_KEY, + return await PrintHelper.GeneratePrintFile(JSON.Serialize(model), reportUrl, PRINT_DATASOURCE_KEY, printFileType, printTemplate); }