From e5484906bd8264f8f1333bd4131c9d7ab39f071d Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Tue, 9 Apr 2024 13:33:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManagePlat/TaskManageBCService.cs | 2 + ServiceProjectSyncWin/Program.cs | 144 ++++++++++++++++-- .../PublishProfiles/FolderProfile.pubxml.user | 2 +- 3 files changed, 131 insertions(+), 17 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs index b76351f0..de8187c7 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs @@ -2853,6 +2853,8 @@ namespace Myshipping.Application } } + slotId = bcTaskInfo.BOOKING_SLOT_ID.Value; + var bcInfo = _taskBaseRepository.AsQueryable().Filter(null, true).Where(a => a.MBL_NO == bcTaskInfo.MBL_NO && a.CARRIER_ID == bcTaskInfo.CARRIERID && a.TASK_TYPE == TaskBaseTypeEnum.BC.ToString() && a.IsDeleted == false && a.TenantId == UserManager.TENANT_ID).First(); diff --git a/ServiceProjectSyncWin/Program.cs b/ServiceProjectSyncWin/Program.cs index 95ef2ff2..a45e1b3c 100644 --- a/ServiceProjectSyncWin/Program.cs +++ b/ServiceProjectSyncWin/Program.cs @@ -6,6 +6,7 @@ using Furion.FriendlyException; using Furion.JsonSerialization; using Furion.RemoteRequest.Extensions; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using ServiceProjectSyncWin; @@ -431,7 +432,7 @@ public class SyncHisRecord: ISyncHisRecord,ITransient 1、更新任务台 2、更新舱位的截止时间记录 */ - var taskList = _db.Queryable().Where(a => (a.BUSI_TYPE == "BookingConfirmation" || a.BUSI_TYPE == "BookingAmendment") && a.TASK_ID == "08dc56ae-e1bd-4650-818e-85447143df67") + var taskList = _db.Queryable().Where(a => (a.BUSI_TYPE == "BookingConfirmation" || a.BUSI_TYPE == "BookingAmendment")) .OrderBy(t=>t.CreatedTime) .ToList(); @@ -439,8 +440,8 @@ public class SyncHisRecord: ISyncHisRecord,ITransient _logger.LogInformation($"批次={batchNo} 提取待处理任务 num={taskList.Count}"); - string bcReadUrl = "http://localhost:5110/api/TaskBCParser/ExcuteBCFileRead"; - string amendReadUrl = "http://localhost:5110/api/TaskBookingAmendmentParser/ExcuteBookingAmendmentRead"; + string bcReadUrl = "http://47.104.73.97:7115/api/TaskBCParser/ExcuteBCFileRead"; + string amendReadUrl = "http://47.104.73.97:7115/api/TaskBookingAmendmentParser/ExcuteBookingAmendmentRead"; //foreach (var task in taskList) for(int i=0;i - True|2023-09-11T12:42:58.0481784Z;True|2023-09-11T20:42:47.7986046+08:00;True|2023-09-04T17:20:02.6360803+08:00;True|2023-09-04T10:10:54.4958128+08:00; + True|2024-04-09T05:04:05.3631882Z;True|2024-04-09T13:01:10.1980474+08:00;True|2024-04-09T12:57:25.4926925+08:00;True|2023-09-11T20:42:58.0481784+08:00;True|2023-09-11T20:42:47.7986046+08:00;True|2023-09-04T17:20:02.6360803+08:00;True|2023-09-04T10:10:54.4958128+08:00; \ No newline at end of file