From e1b879af2e3144c378c4687f5522ba0f1f587876 Mon Sep 17 00:00:00 2001
From: wet <1034391973@qq.com>
Date: Fri, 11 Nov 2022 11:58:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E6=8F=90=E7=A4=BA=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Enum/BookingErrorCode.cs | 17 ++++++++++
.../BookingOrder/BookingOrderService.cs | 3 +-
Myshipping.Core/Enum/ErrorCode.cs | 5 +++
Myshipping.Core/Myshipping.Core.xml | 34 ++++++++++++++++++-
.../Myshipping.Report.csproj.user | 2 +-
5 files changed, 58 insertions(+), 3 deletions(-)
create mode 100644 Myshipping.Application/Enum/BookingErrorCode.cs
diff --git a/Myshipping.Application/Enum/BookingErrorCode.cs b/Myshipping.Application/Enum/BookingErrorCode.cs
new file mode 100644
index 00000000..a1cb6827
--- /dev/null
+++ b/Myshipping.Application/Enum/BookingErrorCode.cs
@@ -0,0 +1,17 @@
+using Furion.FriendlyException;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Myshipping.Application.Enum
+{
+ public enum BookingErrorCode
+ { ///
+ /// 附件不存在
+ ///
+ [ErrorCodeItemMetadata("附件不存在")]
+ BOOK200,
+ }
+}
diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index f2d55ce7..45786b8a 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -35,6 +35,7 @@ using System.Text;
using System.Web;
using Newtonsoft.Json.Linq;
using Myshipping.Core.Helper;
+using Myshipping.Application.Enum;
namespace Myshipping.Application
{
@@ -471,7 +472,7 @@ namespace Myshipping.Application
//未上传打印模板文件
if (file == null || file.Length == 0)
{
- throw Oops.Oh(ErrorCode.BOOK113);
+ throw Oops.Oh(BookingErrorCode.BOOK200);
}
var opt = App.GetOptions();
diff --git a/Myshipping.Core/Enum/ErrorCode.cs b/Myshipping.Core/Enum/ErrorCode.cs
index 515242e3..393b66a5 100644
--- a/Myshipping.Core/Enum/ErrorCode.cs
+++ b/Myshipping.Core/Enum/ErrorCode.cs
@@ -454,6 +454,11 @@ public enum ErrorCode
///
[ErrorCodeItemMetadata("放舱信息不存在")]
BOOK116,
+ ///
+ /// 附件不存在
+ ///
+ [ErrorCodeItemMetadata("附件不存在")]
+ BOOK117,
#endregion
#region 邮箱账号
diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml
index 612bc28b..2ab001d5 100644
--- a/Myshipping.Core/Myshipping.Core.xml
+++ b/Myshipping.Core/Myshipping.Core.xml
@@ -6645,7 +6645,7 @@
- 新增编辑船公司映射信息
+ 新增编辑箱型映射信息
@@ -6653,6 +6653,21 @@
付费方式
+
+
+ 新增付费方式
+
+
+
+
+ 获取付费映射列表信息
+
+
+
+
+ 新增编辑付费映射信息
+
+
模块
@@ -6734,6 +6749,23 @@
+
+
+ 获取箱型映射
+
+
+
+
+
+ 付费方式
+
+
+
+
+
+ 付费方式映射
+
+
获取库表信息
diff --git a/Myshipping.Report/Myshipping.Report.csproj.user b/Myshipping.Report/Myshipping.Report.csproj.user
index 5831b7bf..c54031d1 100644
--- a/Myshipping.Report/Myshipping.Report.csproj.user
+++ b/Myshipping.Report/Myshipping.Report.csproj.user
@@ -8,7 +8,7 @@
- Debug|Any CPU
+ Release|Any CPU