From b10436f32e3442972f0a96476e5e87361fad02e5 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 25 Apr 2024 09:11:11 +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 --- .../Entity/TaskManagePlat/TaskSISubmitted.cs | 80 +++++++++++++++++++ .../Enum/TaskFileCategoryEnum.cs | 5 ++ .../Dtos/TaskManageOrderSIFeedBackInfo.cs | 22 +++++ .../TaskManagePlat/TaskManageService.cs | 14 +++- 4 files changed, 118 insertions(+), 3 deletions(-) diff --git a/Myshipping.Application/Entity/TaskManagePlat/TaskSISubmitted.cs b/Myshipping.Application/Entity/TaskManagePlat/TaskSISubmitted.cs index 6e8ea4ce..606a9a21 100644 --- a/Myshipping.Application/Entity/TaskManagePlat/TaskSISubmitted.cs +++ b/Myshipping.Application/Entity/TaskManagePlat/TaskSISubmitted.cs @@ -51,5 +51,85 @@ namespace Myshipping.Application /// public Nullable BOOKING_ID { get; set; } + /// + /// 截单上传时间 + /// + public Nullable SUBMITTED_DATE { get; set; } + + /// + /// 提单份数 + /// + public Nullable BILLOF_NUM { get; set; } + + /// + /// 放单方式 + /// + public string RELEASE_INSTRUCTION { get; set; } + + /// + /// 是否拆单 SPLIT-标识已拆单 + /// + public string SI_SUBTYPE { get; set; } + + /// + /// 发货人 + /// + public string SHIPPER { get; set; } + + /// + /// 收货人 + /// + public string CONSIGNEE { get; set; } + + /// + /// 通知人 + /// + public string NOTIFYPARTY { get; set; } + + /// + /// 第二通知人 + /// + public string NOTIFYPARTY2 { get; set; } + + /// + /// 订舱方 + /// + public string TRANSPORT_RECEIVER { get; set; } + + /// + /// 唛头 + /// + public string MARKS { get; set; } + + /// + /// HS代码 + /// + public string HSCODE { get; set; } + + /// + /// 货描 + /// + public string DESCRIPTION { get; set; } + + /// + /// 件数 + /// + public Nullable PKGS { get; set; } + + /// + /// 包装 + /// + public string KINDPKGS { get; set; } + + /// + /// 毛重 + /// + public Nullable KGS { get; set; } + + /// + /// 尺码 + /// + public Nullable CBM { get; set; } + } } diff --git a/Myshipping.Application/Enum/TaskFileCategoryEnum.cs b/Myshipping.Application/Enum/TaskFileCategoryEnum.cs index c246102e..da982df0 100644 --- a/Myshipping.Application/Enum/TaskFileCategoryEnum.cs +++ b/Myshipping.Application/Enum/TaskFileCategoryEnum.cs @@ -53,6 +53,11 @@ namespace Myshipping.Application [Description("Draft Notice")] DRAFT_NOTICE, /// + /// SI Submitted + /// + [Description("SI Submitted")] + SI_SUBMITTED, + /// /// 空 /// [Description("NONE")] diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderSIFeedBackInfo.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderSIFeedBackInfo.cs index fe34ddb3..5b544216 100644 --- a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderSIFeedBackInfo.cs +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderSIFeedBackInfo.cs @@ -40,10 +40,27 @@ namespace Myshipping.Application /// 通知人 /// public string NotifyParty { get; set; } + + /// + /// 第二通知人 + /// + public string NotifyParty2 { get; set; } + + /// + /// 订舱方 + /// + public string TransportReceiver { get; set; } + /// /// 唛头 /// public string Marks{ get; set; } + + /// + /// HS CODE + /// + public string HSCode { get; set; } + /// /// 货描 /// @@ -154,6 +171,11 @@ namespace Myshipping.Application /// public string ReleaseInstruction { get; set; } + /// + /// 是否拆单 SPLIT-标识已拆单 + /// + public string SISubType { get; set; } + /// /// 箱信息 /// diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs index 6f5e458f..a22357f3 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs @@ -347,18 +347,20 @@ namespace Myshipping.Application tenantName = UserManager.TENANT_NAME }; - taskInfo.IS_PUBLIC = 1; + //这里只有派车不是公共任务,其他基本都是公共任务 + if (info.Main.TaskType != TaskBaseTypeEnum.TRUCK_DISPATCH) + taskInfo.IS_PUBLIC = 1; } else if (!string.IsNullOrWhiteSpace(info.Main.DJYRecvUserId) && string.IsNullOrWhiteSpace(info.Main.TaskUserId)) { userTendInfo = GetUserTendInfoByDJYUserId(info.Main.DJYRecvUserId, info.Main.DJYRecvUserEmail); - if(userTendInfo != null) + if (userTendInfo != null) { taskInfo.IS_PUBLIC = 0; } } - else if(string.IsNullOrWhiteSpace(info.Main.DJYRecvUserId) && string.IsNullOrWhiteSpace(info.Main.TaskUserId) && + else if (string.IsNullOrWhiteSpace(info.Main.DJYRecvUserId) && string.IsNullOrWhiteSpace(info.Main.TaskUserId) && !string.IsNullOrWhiteSpace(info.Main.TaskRecvEmail) && info.Main.TaskTenatId.HasValue && info.Main.TaskTenatId.Value > 0) { userTendInfo = GetUserTendInfoByEmail(info.Main.TaskTenatId.Value, info.Main.TaskRecvEmail); @@ -435,6 +437,12 @@ namespace Myshipping.Application fileCategory = TaskFileCategoryEnum.DRAFT.ToString(); } + else if (TaskBaseTypeEnum.SI_FEEDBACK.ToString() == taskInfo.TASK_BASE_TYPE) + { + attachFileType = "sisubmittedfiles"; + + fileCategory = TaskFileCategoryEnum.SI_SUBMITTED.ToString(); + } var noExtensionFileName = Path.GetFileNameWithoutExtension(file.FileName); var fileFullName = await FileAttachHelper.SaveFile(taskInfo.PK_ID, bytes, batchNo, noExtensionFileName,