From 7f2b8c8a298990991b8c7ab8f88b41d20b8348a4 Mon Sep 17 00:00:00 2001
From: zhangxiaofeng <1939543722@qq.com>
Date: Fri, 18 Oct 2024 18:10:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=92=8C=E5=B7=9D=E5=AF=B9=E6=8E=A5=E6=96=B0VG?=
=?UTF-8?q?M=E5=B9=B3=E5=8F=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Entity/BookingVGMStatus.cs | 54 ++
.../BookingOrder/BookingOrderService.cs | 846 +++++++++++++-----
.../Service/BookingOrder/Dto/VgmPlatDto.cs | 191 ++++
Myshipping.Web.Entry/appsettings.json | 5 +-
4 files changed, 865 insertions(+), 231 deletions(-)
create mode 100644 Myshipping.Application/Entity/BookingVGMStatus.cs
create mode 100644 Myshipping.Application/Service/BookingOrder/Dto/VgmPlatDto.cs
diff --git a/Myshipping.Application/Entity/BookingVGMStatus.cs b/Myshipping.Application/Entity/BookingVGMStatus.cs
new file mode 100644
index 00000000..2875e274
--- /dev/null
+++ b/Myshipping.Application/Entity/BookingVGMStatus.cs
@@ -0,0 +1,54 @@
+using Myshipping.Core.Entity;
+using SqlSugar;
+using System.ComponentModel;
+namespace Myshipping.Application.Entity
+{
+ ///
+ /// VGM发送状态表
+ ///
+ [SugarTable("booking_vgm_status")]
+ [Description("VGM发送状态表")]
+ public class BookingVGMStatus : DBEntityTenant
+ {
+ ///
+ /// 业务id
+ ///
+ public long BookingId { get; set; }
+
+ ///
+ /// VGM平台主键
+ ///
+ public string MFNO { get; set; }
+
+ ///
+ /// 是否已发送船司
+ ///
+ public bool IsSendCarrier { get; set; }
+ ///
+ /// 发送船司是否成功
+ ///
+ public bool IsSendCarrierSuccess { get; set; }
+ ///
+ /// 发送船司是否直发
+ ///
+ public bool IsSendCarrierDirect { get; set; }
+ ///
+ /// 发送船司结果消息
+ ///
+ public string SendCarrierMessage { get; set; }
+
+
+ ///
+ /// 是否已发送云港通
+ ///
+ public bool IsSendYgt { get; set; }
+ ///
+ /// 发送云港通是否成功
+ ///
+ public bool IsSendYgtSuccess { get; set; }
+ ///
+ /// 发送云港通结果消息
+ ///
+ public string SendYgtMessage { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index 74df3cd3..0a02731c 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -1,93 +1,64 @@
-using Myshipping.Core;
+using Furion;
using Furion.DependencyInjection;
+using Furion.DistributedIDGenerator;
using Furion.DynamicApiController;
+using Furion.EventBus;
+using Furion.FriendlyException;
+using Furion.JsonSerialization;
+using Furion.RemoteRequest.Extensions;
using Mapster;
-using Microsoft.AspNetCore.Mvc;
-using SqlSugar;
-using System.Linq;
-using System.Threading.Tasks;
-using Myshipping.Application.Entity;
using Microsoft.AspNetCore.Authorization;
-using Furion;
using Microsoft.AspNetCore.Http;
-using Furion.DataEncryption;
-using System.Collections.Generic;
-using System.Security.Claims;
-using Microsoft.AspNetCore.Authentication.Cookies;
-using Microsoft.AspNetCore.Authentication;
-using Microsoft.AspNetCore.Identity;
-using Furion.FriendlyException;
-using Furion.Logging;
-using System;
+using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
-using System.Reflection;
-using System.ComponentModel;
-using Myshipping.Application.Service.BookingOrder.Dto;
using Myshipping.Application.ConfigOption;
-using System.IO;
-using Yitter.IdGenerator;
-using Myshipping.Core.Entity;
-using Furion.RemoteRequest.Extensions;
-using System.Net.Http;
-using Myshipping.Core.Service;
using Myshipping.Application.EDI;
-using System.Text;
-using System.Web;
-using Newtonsoft.Json.Linq;
-using Myshipping.Core.Helper;
-using Myshipping.Application.Enum;
-using Org.BouncyCastle.Asn1.X500;
-using System.Drawing.Drawing2D;
-using StackExchange.Profiling.Internal;
-using Myshipping.Application;
+using Myshipping.Application.EDI.ESL;
using Myshipping.Application.EDI.PIL;
-using Newtonsoft.Json;
+using Myshipping.Application.EDI.SeaLead;
+using Myshipping.Application.EDI.SITC;
using Myshipping.Application.EDI.TSL;
+using Myshipping.Application.EDI.VOLTA;
using Myshipping.Application.EDI.WY;
using Myshipping.Application.EDI.YML;
using Myshipping.Application.EDI.YT;
-using System.Runtime.InteropServices;
-using System.Threading;
-using Furion.JsonSerialization;
-using System.Xml.Linq;
+using Myshipping.Application.Entity;
+using Myshipping.Application.Enum;
using Myshipping.Application.Helper;
-using System.Net;
-using Furion.DistributedIDGenerator;
-using System.Linq.Expressions;
+using Myshipping.Application.Service.BookingOrder.Dto;
+using Myshipping.Application.Service.BookingOrder.Dto.MSKAPI;
+using Myshipping.Application.Service.BookingSlot.Dto;
+using Myshipping.Application.Service.DataSync.Dto;
+using Myshipping.Core;
+using Myshipping.Core.Const;
+using Myshipping.Core.Entity;
+using Myshipping.Core.Entity.PingTai;
using Myshipping.Core.Extension;
-using System.Text.RegularExpressions;
-using MathNet.Numerics.Distributions;
-using Microsoft.IdentityModel.Tokens;
-using Myshipping.Application.EDI.ESL;
+using Myshipping.Core.Helper;
+using Myshipping.Core.Service;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
-using NPOI.SS.Formula.Functions;
-using NPOI.HPSF;
-using MimeKit;
-using NPOI.SS.Formula;
-using NPOI.Util;
+using RabbitMQ.Client;
+using SqlSugar;
+using StackExchange.Profiling.Internal;
+using System;
+using System.Collections.Generic;
using System.Collections.Specialized;
+using System.ComponentModel;
+using System.IO;
+using System.Linq;
+using System.Net.Http;
using System.Net.Http.Headers;
-using MySqlX.XDevAPI.Common;
-using Ubiety.Dns.Core;
-using static ICSharpCode.SharpZipLib.Zip.ExtendedUnixData;
-using System.Security.Cryptography;
-using Myshipping.Application.Service.DataSync.Dto;
-using RabbitMQ.Client;
-using System.Configuration;
-using System.Collections;
-using System.Security.Principal;
-using Myshipping.Core.Const;
-using ICSharpCode.SharpZipLib.BZip2;
-using Myshipping.Application.EDI.VOLTA;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Web;
using TinyPinyin;
-using Furion.EventBus;
-using Myshipping.Application.Service.BookingSlot.Dto;
-using Myshipping.Application.Service.BookingOrder.Dto.MSKAPI;
-using Microsoft.AspNetCore.Routing.Template;
-using Myshipping.Application.EDI.SeaLead;
-using Myshipping.Application.EDI.SITC;
-using Myshipping.Core.Entity.PingTai;
+using Yitter.IdGenerator;
namespace Myshipping.Application
{
@@ -5240,10 +5211,418 @@ namespace Myshipping.Application
///
/// 直发VGM(单票)
///
- ///
+ /// 订单Id
+ /// 是否发送船司
+ /// 是否发送云港通
+ /// 是否检查重复发送
///
[HttpPost("/BookingOrder/VgmSend")]
- public async Task