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 01/12] =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=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 From 3ca6171f7d9280c2628c3b30856f8651bbab6db2 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 11 Nov 2022 11:59:13 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E6=8F=90=E7=AE=B1=E5=B0=8F=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Myshipping.Application.xml | 7 +++ .../BookingOrder/BookingOrderService.cs | 48 +++++++++++++++++- Myshipping.Core/Enum/ErrorCode.cs | 18 +++++++ Myshipping.Core/Myshipping.Core.xml | 49 ++++++++++++++++++- 4 files changed, 120 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Myshipping.Application.xml b/Myshipping.Application/Myshipping.Application.xml index b0f7835a..ae725a9b 100644 --- a/Myshipping.Application/Myshipping.Application.xml +++ b/Myshipping.Application/Myshipping.Application.xml @@ -3363,6 +3363,13 @@ 类型,1:pdf、2:xlsx + + + 获取提箱小票链接 + + + + 获取用户报表的json diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index f2d55ce7..8fe7d8ee 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -61,13 +61,15 @@ namespace Myshipping.Application private readonly SqlSugarRepository _repPrintTemplate; private readonly SqlSugarRepository _repLetterYard; private readonly SqlSugarRepository _repUser; + private readonly SqlSugarRepository _repOrderUrl; public BookingOrderService(SqlSugarRepository rep, SqlSugarRepository repCtn, SqlSugarRepository ctndetailrep, SqlSugarRepository bookinglog, SqlSugarRepository bookinglogdetail, SqlSugarRepository bookingremark, SqlSugarRepository bookingfile, SqlSugarRepository webconfig, SqlSugarRepository repPrint, SqlSugarRepository dicdata, SqlSugarRepository statuslog, SqlSugarRepository statuslogdetail, ILogger logger, ISysCacheService cache, - SqlSugarRepository repPrintTemplate, SqlSugarRepository repLetterYard, SqlSugarRepository repUser) + SqlSugarRepository repPrintTemplate, SqlSugarRepository repLetterYard, SqlSugarRepository repUser, + SqlSugarRepository repOrderUrl) { this._logger = logger; this._rep = rep; @@ -86,6 +88,7 @@ namespace Myshipping.Application this._repPrintTemplate = repPrintTemplate; this._repLetterYard = repLetterYard; this._repUser = repUser; + this._repOrderUrl = repOrderUrl; } #region 主表和箱信息 @@ -784,6 +787,49 @@ namespace Myshipping.Application #endregion + #region 小票链接 + + /// + /// 获取提箱小票链接 + /// + /// + /// + [HttpGet("/BookingOrder/txxplink")] + public async Task TxxpLink(long bookingId) + { + var order = _rep.FirstOrDefault(x => x.Id == bookingId); + var ordUrl = _repOrderUrl.FirstOrDefault(x => x.BookingId == bookingId); + if (order == null) + { + ordUrl = new BookingOrderUrl(); + ordUrl.BookingId = bookingId; + await _repOrderUrl.InsertAsync(ordUrl); + } + + + //校验船公司 + if (string.IsNullOrEmpty(order.CARRIERID)) + { + throw Oops.Oh(ErrorCode.BOOK118); + } + + //判断船公司是否支持 + var allowCarrier = _cache.GetAllDictData().Result.Where(x => x.TypeCode == "txxp_carrier_list").Select(x => x.Code).ToList(); + if (allowCarrier.Contains(order.CARRIERID)) + { + throw Oops.Oh(ErrorCode.BOOK117); + } + + //亿通账号 + var ytAcc = _webconfig.FirstOrDefault(x => x.CreatedUserId == UserManager.UserId && x.TypeCode == "YitongWeb"); + if(ytAcc == null) + { + throw Oops.Oh(ErrorCode.BOOK119); + } + + } + #endregion + #region 其他 /// /// 获取用户报表的json diff --git a/Myshipping.Core/Enum/ErrorCode.cs b/Myshipping.Core/Enum/ErrorCode.cs index 515242e3..38b38f5b 100644 --- a/Myshipping.Core/Enum/ErrorCode.cs +++ b/Myshipping.Core/Enum/ErrorCode.cs @@ -454,6 +454,24 @@ public enum ErrorCode /// [ErrorCodeItemMetadata("放舱信息不存在")] BOOK116, + + /// + /// 不支持的船公司 + /// + [ErrorCodeItemMetadata("不支持的船公司")] + BOOK117, + + /// + /// 船公司未正确填写 + /// + [ErrorCodeItemMetadata("船公司未正确填写")] + BOOK118, + + /// + /// 亿通账号未正确配置 + /// + [ErrorCodeItemMetadata("亿通账号未正确配置")] + BOOK119, #endregion #region 邮箱账号 diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index 612bc28b..bbf56f6d 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -3920,6 +3920,21 @@ 放舱信息不存在 + + + 不支持的船公司 + + + + + 船公司未正确填写 + + + + + 亿通账号未正确配置 + + 邮箱账号已存在 @@ -6645,7 +6660,7 @@ - 新增编辑船公司映射信息 + 新增编辑箱型映射信息 @@ -6653,6 +6668,21 @@ 付费方式 + + + 新增付费方式 + + + + + 获取付费映射列表信息 + + + + + 新增编辑付费映射信息 + + 模块 @@ -6734,6 +6764,23 @@ + + + 获取箱型映射 + + + + + + 付费方式 + + + + + + 付费方式映射 + + 获取库表信息 From 83540877bd4c6dfab4247311b38bedd9ed14888a Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 11 Nov 2022 13:42:11 +0800 Subject: [PATCH 03/12] ErrorCode --- .../Enum/BookingErrorCode.cs | 79 ++++++++++++++++++- .../Myshipping.Application.xml | 55 +++++++++++++ .../BookingOrder/BookingOrderService.cs | 22 +++--- .../BookingPrintTemplateService.cs | 15 ++-- .../BookingTemplate/BookingTemplateService.cs | 5 +- Myshipping.Core/Enum/ErrorCode.cs | 68 ---------------- Myshipping.Core/Myshipping.Core.xml | 55 ------------- 7 files changed, 153 insertions(+), 146 deletions(-) diff --git a/Myshipping.Application/Enum/BookingErrorCode.cs b/Myshipping.Application/Enum/BookingErrorCode.cs index a1cb6827..f0c499ed 100644 --- a/Myshipping.Application/Enum/BookingErrorCode.cs +++ b/Myshipping.Application/Enum/BookingErrorCode.cs @@ -7,11 +7,84 @@ using System.Threading.Tasks; namespace Myshipping.Application.Enum { + [ErrorCodeType] public enum BookingErrorCode - { /// - /// 附件不存在 - /// + { + + #region 订舱 + /// + /// 订舱数据不存在 + /// + [ErrorCodeItemMetadata("订舱数据不存在")] + BOOK001, + + + + /// + /// 已存在同类型且名称相同的收发通模板 + /// + [ErrorCodeItemMetadata("已存在同类型且名称相同的收发通模板")] + BOOK101, + + /// + /// 收发通模板不存在 + /// + [ErrorCodeItemMetadata("收发通模板不存在")] + BOOK111, + + /// + /// 打印模板不存在 + /// + [ErrorCodeItemMetadata("打印模板不存在")] + BOOK112, + + /// + /// 未上传模板文件 + /// + [ErrorCodeItemMetadata("未上传模板文件")] + BOOK113, + + /// + /// 不允许的文件类型 + /// + [ErrorCodeItemMetadata("不允许的文件类型")] + BOOK114, + /// + /// 模板文件不存在 + /// + [ErrorCodeItemMetadata("模板文件不存在")] + BOOK115, + + /// + /// 放舱信息不存在 + /// + [ErrorCodeItemMetadata("放舱信息不存在")] + BOOK116, + + /// + /// 不支持的船公司 + /// + [ErrorCodeItemMetadata("不支持的船公司")] + BOOK117, + + /// + /// 船公司未正确填写 + /// + [ErrorCodeItemMetadata("船公司未正确填写")] + BOOK118, + + /// + /// 亿通账号未正确配置 + /// + [ErrorCodeItemMetadata("亿通账号未正确配置")] + BOOK119, + + + /// + /// 附件不存在 + /// [ErrorCodeItemMetadata("附件不存在")] BOOK200, + #endregion } } diff --git a/Myshipping.Application/Myshipping.Application.xml b/Myshipping.Application/Myshipping.Application.xml index 1cf27b8b..9461ad03 100644 --- a/Myshipping.Application/Myshipping.Application.xml +++ b/Myshipping.Application/Myshipping.Application.xml @@ -2511,6 +2511,61 @@ 运踪id + + + 订舱数据不存在 + + + + + 已存在同类型且名称相同的收发通模板 + + + + + 收发通模板不存在 + + + + + 打印模板不存在 + + + + + 未上传模板文件 + + + + + 不允许的文件类型 + + + + + 模板文件不存在 + + + + + 放舱信息不存在 + + + + + 不支持的船公司 + + + + + 船公司未正确填写 + + + + + 亿通账号未正确配置 + + 附件不存在 diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 71bf234b..0f80f01e 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -483,7 +483,7 @@ namespace Myshipping.Application var fileSuffix = Path.GetExtension(file.FileName).ToLower(); // 文件后缀 if (!opt.fileType.Contains(fileSuffix)) { - throw Oops.Oh(ErrorCode.BOOK114); + throw Oops.Oh(BookingErrorCode.BOOK114); } var dirAbs = string.Empty; @@ -726,19 +726,19 @@ namespace Myshipping.Application var order = _rep.FirstOrDefault(x => x.Id == bookingId); if (order == null) { - throw Oops.Oh(ErrorCode.BOOK001); + throw Oops.Oh(BookingErrorCode.BOOK001); } var letterYard = await _repLetterYard.FirstOrDefaultAsync(x => x.BookingId == bookingId); if (letterYard == null) { - throw Oops.Oh(ErrorCode.BOOK116); + throw Oops.Oh(BookingErrorCode.BOOK116); } var printTemplate = _repPrintTemplate.FirstOrDefault(x => x.TenantId == letterYard.TenantId && x.TypeCode == "fangcang"); if (printTemplate == null) { - throw Oops.Oh(ErrorCode.BOOK115); + throw Oops.Oh(BookingErrorCode.BOOK115); } var opt = App.GetOptions(); @@ -751,7 +751,7 @@ namespace Myshipping.Application var fileAbsPath = Path.Combine(dirAbs, printTemplate.FilePath); if (!File.Exists(fileAbsPath)) { - throw Oops.Oh(ErrorCode.BOOK115); + throw Oops.Oh(BookingErrorCode.BOOK115); } _logger.LogInformation($"准备调用报表生成放舱:id:{bookingId},文件:{printTemplate.FileName}"); @@ -811,21 +811,21 @@ namespace Myshipping.Application //校验船公司 if (string.IsNullOrEmpty(order.CARRIERID)) { - throw Oops.Oh(ErrorCode.BOOK118); + throw Oops.Oh(BookingErrorCode.BOOK118); } //判断船公司是否支持 var allowCarrier = _cache.GetAllDictData().Result.Where(x => x.TypeCode == "txxp_carrier_list").Select(x => x.Code).ToList(); if (allowCarrier.Contains(order.CARRIERID)) { - throw Oops.Oh(ErrorCode.BOOK117); + throw Oops.Oh(BookingErrorCode.BOOK117); } //亿通账号 var ytAcc = _webconfig.FirstOrDefault(x => x.CreatedUserId == UserManager.UserId && x.TypeCode == "YitongWeb"); if(ytAcc == null) { - throw Oops.Oh(ErrorCode.BOOK119); + throw Oops.Oh(BookingErrorCode.BOOK119); } } @@ -873,14 +873,14 @@ namespace Myshipping.Application var order = _rep.FirstOrDefault(x => x.Id == id); if (order == null) { - throw Oops.Oh(ErrorCode.BOOK001); + throw Oops.Oh(BookingErrorCode.BOOK001); } //打印模板 var printTemplate = _repPrint.FirstOrDefault(x => x.TenantId == order.TenantId && x.TypeCode == type); if (printTemplate == null) { - throw Oops.Oh(ErrorCode.BOOK112); + throw Oops.Oh(BookingErrorCode.BOOK112); } //读取配置路劲 @@ -895,7 +895,7 @@ namespace Myshipping.Application var fileAbsPath = Path.Combine(dirAbs, printTemplate.FilePath).ToLower(); if (!File.Exists(fileAbsPath)) { - throw Oops.Oh(ErrorCode.BOOK112); + throw Oops.Oh(BookingErrorCode.BOOK112); } _logger.LogInformation($"准备调用报表生成:id:{id},文件:{printTemplate.FileName}"); diff --git a/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs b/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs index 645e30fb..4c67d28f 100644 --- a/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs +++ b/Myshipping.Application/Service/BookingPrintTemplate/BookingPrintTemplateService.cs @@ -17,6 +17,7 @@ using Furion.FriendlyException; using Furion.RemoteRequest.Extensions; using System.Text; using System.Web; +using Myshipping.Application.Enum; namespace Myshipping.Application { @@ -63,7 +64,7 @@ namespace Myshipping.Application //未上传打印模板文件 if (file == null || file.Length == 0) { - throw Oops.Oh(ErrorCode.BOOK113); + throw Oops.Oh(BookingErrorCode.BOOK113); } var opt = App.GetOptions(); @@ -71,7 +72,7 @@ namespace Myshipping.Application var fileSuffix = Path.GetExtension(file.FileName).ToLower(); // 文件后缀 if (!opt.fileType.Contains(fileSuffix)) { - throw Oops.Oh(ErrorCode.BOOK114); + throw Oops.Oh(BookingErrorCode.BOOK114); } var dirAbs = string.Empty; @@ -123,7 +124,7 @@ namespace Myshipping.Application //未上传打印模板文件 if (file == null || file.Length == 0) { - throw Oops.Oh(ErrorCode.BOOK113); + throw Oops.Oh(BookingErrorCode.BOOK113); } var opt = App.GetOptions(); @@ -131,14 +132,14 @@ namespace Myshipping.Application var fileSuffix = Path.GetExtension(file.FileName).ToLower(); // 文件后缀 if (!opt.fileType.Contains(fileSuffix)) { - throw Oops.Oh(ErrorCode.BOOK114); + throw Oops.Oh(BookingErrorCode.BOOK114); } _rep.Context.QueryFilter.Clear(); var entity = _rep.FirstOrDefault(x => x.Id == input.Id); if (entity == null) { - throw Oops.Oh(ErrorCode.BOOK112); + throw Oops.Oh(BookingErrorCode.BOOK112); } entity = input.Adapt(entity); @@ -218,7 +219,7 @@ namespace Myshipping.Application var printFile = await _rep.FirstOrDefaultAsync(u => u.Id == id); if (printFile == null) { - throw Oops.Oh(ErrorCode.BOOK115); + throw Oops.Oh(BookingErrorCode.BOOK115); } @@ -232,7 +233,7 @@ namespace Myshipping.Application var fileFullPath = Path.Combine(dirAbs, printFile.FilePath); if (!File.Exists(fileFullPath)) { - throw Oops.Oh(ErrorCode.BOOK115); + throw Oops.Oh(BookingErrorCode.BOOK115); } var fileName = HttpUtility.UrlEncode(printFile.FileName, Encoding.GetEncoding("UTF-8")); diff --git a/Myshipping.Application/Service/BookingTemplate/BookingTemplateService.cs b/Myshipping.Application/Service/BookingTemplate/BookingTemplateService.cs index 0060dbc9..a93a62f8 100644 --- a/Myshipping.Application/Service/BookingTemplate/BookingTemplateService.cs +++ b/Myshipping.Application/Service/BookingTemplate/BookingTemplateService.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Myshipping.Application.Entity; using Microsoft.Extensions.Logging; using Furion.FriendlyException; +using Myshipping.Application.Enum; namespace Myshipping.Application { @@ -53,7 +54,7 @@ namespace Myshipping.Application var c = _rep.Count(x => x.Type == input.Type && x.Title == input.Title); if (c > 0) { - throw Oops.Oh(ErrorCode.BOOK101); + throw Oops.Oh(BookingErrorCode.BOOK101); } var entity = input.Adapt(); @@ -71,7 +72,7 @@ namespace Myshipping.Application var bt = _rep.FirstOrDefault(x => x.Id == input.Id); if (bt == null) { - throw Oops.Oh(ErrorCode.BOOK111); + throw Oops.Oh(BookingErrorCode.BOOK111); } bt.Content = input.Content; diff --git a/Myshipping.Core/Enum/ErrorCode.cs b/Myshipping.Core/Enum/ErrorCode.cs index 38b38f5b..c22e553c 100644 --- a/Myshipping.Core/Enum/ErrorCode.cs +++ b/Myshipping.Core/Enum/ErrorCode.cs @@ -405,74 +405,6 @@ public enum ErrorCode F1000, - #region 订舱 - /// - /// 订舱数据不存在 - /// - [ErrorCodeItemMetadata("订舱数据不存在")] - BOOK001, - - - - /// - /// 已存在同类型且名称相同的收发通模板 - /// - [ErrorCodeItemMetadata("已存在同类型且名称相同的收发通模板")] - BOOK101, - - /// - /// 收发通模板不存在 - /// - [ErrorCodeItemMetadata("收发通模板不存在")] - BOOK111, - - /// - /// 打印模板不存在 - /// - [ErrorCodeItemMetadata("打印模板不存在")] - BOOK112, - - /// - /// 未上传模板文件 - /// - [ErrorCodeItemMetadata("未上传模板文件")] - BOOK113, - - /// - /// 不允许的文件类型 - /// - [ErrorCodeItemMetadata("不允许的文件类型")] - BOOK114, - /// - /// 模板文件不存在 - /// - [ErrorCodeItemMetadata("模板文件不存在")] - BOOK115, - - /// - /// 放舱信息不存在 - /// - [ErrorCodeItemMetadata("放舱信息不存在")] - BOOK116, - - /// - /// 不支持的船公司 - /// - [ErrorCodeItemMetadata("不支持的船公司")] - BOOK117, - - /// - /// 船公司未正确填写 - /// - [ErrorCodeItemMetadata("船公司未正确填写")] - BOOK118, - - /// - /// 亿通账号未正确配置 - /// - [ErrorCodeItemMetadata("亿通账号未正确配置")] - BOOK119, - #endregion #region 邮箱账号 diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index bbf56f6d..748cf6d6 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -3880,61 +3880,6 @@ 表单不存在 - - - 订舱数据不存在 - - - - - 已存在同类型且名称相同的收发通模板 - - - - - 收发通模板不存在 - - - - - 打印模板不存在 - - - - - 未上传模板文件 - - - - - 不允许的文件类型 - - - - - 模板文件不存在 - - - - - 放舱信息不存在 - - - - - 不支持的船公司 - - - - - 船公司未正确填写 - - - - - 亿通账号未正确配置 - - 邮箱账号已存在 From b389573d8bb1592e1ebc8892fae8cfac90047fce Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 11 Nov 2022 15:31:56 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E5=9C=BA=E7=AB=99=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Const/CommonConst.cs | 7 +- Myshipping.Core/Entity/CommonDB/CodeYard.cs | 39 +++++++++++ Myshipping.Core/Myshipping.Core.xml | 25 +++++++ .../Service/Cache/ISysCacheService.cs | 12 +++- .../Service/Cache/SysCacheService.cs | 17 ++++- .../Service/CommonDB/CommonDBService.cs | 68 +++++++++++++++++++ .../Service/CommonDB/ICommonDBService.cs | 6 ++ .../Myshipping.Report.csproj.user | 2 +- Myshipping.Web.Core/Startup.cs | 3 + 9 files changed, 175 insertions(+), 4 deletions(-) diff --git a/Myshipping.Core/Const/CommonConst.cs b/Myshipping.Core/Const/CommonConst.cs index be29f683..18d61c9b 100644 --- a/Myshipping.Core/Const/CommonConst.cs +++ b/Myshipping.Core/Const/CommonConst.cs @@ -115,13 +115,18 @@ public class CommonConst /// public const string CACHE_KEY_COMMON_DB_MAPPING_VESSEL = "CommonDbMappingVessel"; + /// + /// 场站映射 + /// + public const string CACHE_KEY_COMMON_DB_MAPPING_YARD = "CommonDbMappingYard"; + /// /// 字典映射 /// public const string CACHE_KEY_COMMON_DB_DICT_DATA = "DictDataList"; /// - /// 船名映射 + /// EDI映射 /// public const string CACHE_KEY_DJY_EDI_SETTING = "DjyEdiSetting"; diff --git a/Myshipping.Core/Entity/CommonDB/CodeYard.cs b/Myshipping.Core/Entity/CommonDB/CodeYard.cs index 9ffe39ed..69784b3b 100644 --- a/Myshipping.Core/Entity/CommonDB/CodeYard.cs +++ b/Myshipping.Core/Entity/CommonDB/CodeYard.cs @@ -54,4 +54,43 @@ namespace Myshipping.Core.Entity } + + + + + [SugarTable("MappingYard")] + [Description("场站映射")] + public class MappingYard : CommonDbEntity + { + /// + /// 代码 + /// + public string Code { get; set; } + + /// + /// 名称 + /// + public string Name { get; set; } + + /// + /// 模块 + /// + public string Module { get; set; } + + /// + /// 映射代码 + /// + public string MapCode { get; set; } + + /// + /// 映射名称 + /// + public string MapName { get; set; } + + /// + /// 备注 + /// + public string Remark { get; set; } + + } } diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index 748cf6d6..f020ae68 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -1257,6 +1257,31 @@ 修改人 + + + 代码 + + + + + 模块 + + + + + 映射代码 + + + + + 映射名称 + + + + + 备注 + + 主键 diff --git a/Myshipping.Core/Service/Cache/ISysCacheService.cs b/Myshipping.Core/Service/Cache/ISysCacheService.cs index 8156676d..9362cd72 100644 --- a/Myshipping.Core/Service/Cache/ISysCacheService.cs +++ b/Myshipping.Core/Service/Cache/ISysCacheService.cs @@ -121,7 +121,11 @@ public interface ISysCacheService Task> GetAllMappingVessel(); - + /// + /// 获取公共库 场站映射 + /// + /// + Task> GetAllMappingYard(); /// /// 设置公共库 船公司 /// @@ -204,6 +208,12 @@ public interface ISysCacheService /// /// Task SetAllMappingVessel(List list); + + /// + /// 设置公共库 场站映射 + /// + /// + Task SetAllMappingYard(List list); #endregion #region DJY diff --git a/Myshipping.Core/Service/Cache/SysCacheService.cs b/Myshipping.Core/Service/Cache/SysCacheService.cs index 73c55db2..ebaff0ac 100644 --- a/Myshipping.Core/Service/Cache/SysCacheService.cs +++ b/Myshipping.Core/Service/Cache/SysCacheService.cs @@ -418,7 +418,14 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet return _cache.GetAsync>(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL); } - + /// + /// 获取公共库 船名映射 + /// + /// + public Task> GetAllMappingYard() + { + return _cache.GetAsync>(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_YARD); + } /// @@ -547,6 +554,14 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL, list, TimeSpan.FromMinutes(5)); } + /// + /// 设置公共库 场站映射 + /// + /// + public Task SetAllMappingYard(List list) + { + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_YARD, list, TimeSpan.FromMinutes(5)); + } #endregion diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index 864109aa..37ad1cc7 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -27,6 +27,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie private readonly SqlSugarRepository _codeForwarderRep; private readonly SqlSugarRepository _codeYardRep; + private readonly SqlSugarRepository _mappingYardRep; private readonly SqlSugarRepository _codePortLoadrRep; private readonly SqlSugarRepository _codePortRep; private readonly SqlSugarRepository _codePackageRep; @@ -53,6 +54,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie SqlSugarRepository mappingVesselRep, SqlSugarRepository mappingCtnRep, SqlSugarRepository mappingFrtRep, + SqlSugarRepository mappingYardRep, ISysCacheService sysCacheService) { _codeCarrierRep = codeCarrierRep; @@ -69,6 +71,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie _mappingVesselRep = mappingVesselRep; _mappingCtnRep = mappingCtnRep; _mappingFrtRep = mappingFrtRep; + _mappingYardRep = mappingYardRep; _sysCacheService = sysCacheService; @@ -96,6 +99,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddCarrier([FromBody] CodeCarrier dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeCarrierRep.InsertAsync(entity); await GetAllCarrier(); } @@ -125,6 +129,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie var entity = dto.Adapt(); if (string.IsNullOrWhiteSpace(dto.GID)) { + entity.GID = Guid.NewGuid().ToString(); await _mappingCarrierRep.InsertAsync(entity); } else @@ -167,6 +172,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddVessel([FromBody] CodeVessel dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeVesselRep.InsertAsync(entity); await GetAllVessel(); } @@ -200,6 +206,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie var entity = dto.Adapt(); if (string.IsNullOrWhiteSpace(dto.GID)) { + entity.GID = Guid.NewGuid().ToString(); await _mappingVesselRep.InsertAsync(entity); } else @@ -235,6 +242,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddForwarder([FromBody] CodeForwarder dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeForwarderRep.InsertAsync(entity); await GetAllForwarder(); } @@ -262,9 +270,53 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddYard([FromBody] CodeYard dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeYardRep.InsertAsync(entity); await GetAllYard(); } + + /// + /// 获取场站映射 + /// + [HttpGet("/commondb/mappingyardlist")] + public async Task MappingYardList([FromQuery] MappingQueryDto input) + { + //数量太多,不允许查询全部 + if (string.IsNullOrEmpty(input.Module) || input.Module.Length < 1) + { + return new List(); + } + + List list = await _sysCacheService.GetAllMappingYard(); + + var queryList = list.WhereIF(!string.IsNullOrEmpty(input.Module), x => x.Module == input.Module) + .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.Name.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); + + return queryList.ToList(); + } + + /// + /// 新增编辑场站映射信息 + /// + [HttpPost("/commondb/addorupdateyard")] + public async Task AddOrUpdateMappingYard([FromBody] MappingYard dto) + { + var entity = dto.Adapt(); + if (string.IsNullOrWhiteSpace(dto.GID)) + { + entity.GID = Guid.NewGuid().ToString(); + await _mappingYardRep.InsertAsync(entity); + } + else + { + await _mappingYardRep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + } + await GetAllMappingYard(); + } + + + + #endregion @@ -288,6 +340,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddPortload([FromBody] CodePortLoad dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codePortLoadrRep.InsertAsync(entity); await GetAllPortload(); } @@ -321,6 +374,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddPort([FromBody] CodePort dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codePortRep.InsertAsync(entity); await GetAllPort(); } @@ -348,6 +402,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddPackage([FromBody] CodePackage dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codePackageRep.InsertAsync(entity); await GetAllPackage(); } @@ -375,6 +430,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddService([FromBody] CodeService dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeServiceRep.InsertAsync(entity); await GetAllService(); } @@ -404,6 +460,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddCtn([FromBody] CodeCtn dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeCtnRep.InsertAsync(entity); await GetAllCtn(); } @@ -435,6 +492,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie var entity = dto.Adapt(); if (string.IsNullOrWhiteSpace(dto.GID)) { + entity.GID = Guid.NewGuid().ToString(); await _mappingCtnRep.InsertAsync(entity); } else @@ -470,6 +528,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie public async Task AddFrt([FromBody] CodeFrt dto) { var entity = dto.Adapt(); + entity.GID = Guid.NewGuid().ToString(); await _codeFrtRep.InsertAsync(entity); await GetAllFrt(); } @@ -500,6 +559,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie var entity = dto.Adapt(); if (string.IsNullOrWhiteSpace(dto.GID)) { + entity.GID = Guid.NewGuid().ToString(); await _mappingFrtRep.InsertAsync(entity); } else @@ -550,7 +610,15 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie return list; } + [NonAction] + public async Task> GetAllMappingYard() + { + + var list = await _mappingYardRep.ToListAsync(); + await _sysCacheService.SetAllMappingYard(list); + return list; + } [NonAction] public async Task> GetAllForwarder() { diff --git a/Myshipping.Core/Service/CommonDB/ICommonDBService.cs b/Myshipping.Core/Service/CommonDB/ICommonDBService.cs index b015ba4a..5cf68df8 100644 --- a/Myshipping.Core/Service/CommonDB/ICommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/ICommonDBService.cs @@ -42,6 +42,12 @@ public interface ICommonDBService /// Task> GetAllYard(); + /// + /// 获取场站映射 + /// + /// + Task> GetAllMappingYard(); + /// /// 获取起始港 /// diff --git a/Myshipping.Report/Myshipping.Report.csproj.user b/Myshipping.Report/Myshipping.Report.csproj.user index c54031d1..5831b7bf 100644 --- a/Myshipping.Report/Myshipping.Report.csproj.user +++ b/Myshipping.Report/Myshipping.Report.csproj.user @@ -8,7 +8,7 @@ - Release|Any CPU + Debug|Any CPU diff --git a/Myshipping.Web.Core/Startup.cs b/Myshipping.Web.Core/Startup.cs index 2f77f3bc..0777e248 100644 --- a/Myshipping.Web.Core/Startup.cs +++ b/Myshipping.Web.Core/Startup.cs @@ -135,6 +135,9 @@ public class Startup : AppStartup //船名映射 App.GetService().GetAllMappingVessel(); + //场站映射 + App.GetService().GetAllMappingYard(); + //船代 App.GetService().GetAllForwarder(); From 36466994816f8dfe4dd1e6b1a067c3c2c7ffe55c Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 11 Nov 2022 15:33:23 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E6=8F=90=E7=AE=B1=E5=B0=8F=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Enum/BookingErrorCode.cs | 30 ++++++ .../Myshipping.Application.xml | 25 +++++ .../BookingOrder/BookingOrderService.cs | 99 ++++++++++++++++++- Myshipping.Core/Manager/UserManager.cs | 2 +- Myshipping.Core/Myshipping.Core.xml | 2 +- 5 files changed, 151 insertions(+), 7 deletions(-) diff --git a/Myshipping.Application/Enum/BookingErrorCode.cs b/Myshipping.Application/Enum/BookingErrorCode.cs index f0c499ed..2058dde8 100644 --- a/Myshipping.Application/Enum/BookingErrorCode.cs +++ b/Myshipping.Application/Enum/BookingErrorCode.cs @@ -79,6 +79,36 @@ namespace Myshipping.Application.Enum [ErrorCodeItemMetadata("亿通账号未正确配置")] BOOK119, + /// + /// 场站EDI配置未找到 + /// + [ErrorCodeItemMetadata("场站EDI配置未找到:{0}")] + BOOK120, + + /// + /// 所有箱型箱量必须录入完整 + /// + [ErrorCodeItemMetadata("所有箱型箱量必须录入完整")] + BOOK121, + + /// + /// 箱型EDI配置未找到 + /// + [ErrorCodeItemMetadata("箱型EDI配置未找到")] + BOOK122, + + /// + /// 箱型EDI配置未找到 + /// + [ErrorCodeItemMetadata("箱型EDI配置未找到:{0}")] + BOOK123, + + /// + /// 提箱小票链接生成失败 + /// + [ErrorCodeItemMetadata("提箱小票链接生成失败:{0}")] + BOOK124, + /// /// 附件不存在 diff --git a/Myshipping.Application/Myshipping.Application.xml b/Myshipping.Application/Myshipping.Application.xml index 9461ad03..aef87979 100644 --- a/Myshipping.Application/Myshipping.Application.xml +++ b/Myshipping.Application/Myshipping.Application.xml @@ -2566,6 +2566,31 @@ 亿通账号未正确配置 + + + 场站EDI配置未找到 + + + + + 所有箱型箱量必须录入完整 + + + + + 箱型EDI配置未找到 + + + + + 箱型EDI配置未找到 + + + + + 提箱小票链接生成失败 + + 附件不存在 diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 0f80f01e..d24f60af 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -513,7 +513,7 @@ namespace Myshipping.Application TypeCode = dto.TypeCode, TypeName = dto.TypeName, TenantId = Convert.ToInt16(UserManager.TENANT_ID), - TenantName = UserManager.CLAINM_TENANT_NAME, + TenantName = UserManager.TENANT_NAME, }; await _bookingfile.InsertAsync(newFile); using (var stream = File.Create(fileAbsPath)) @@ -796,17 +796,26 @@ namespace Myshipping.Application /// /// [HttpGet("/BookingOrder/txxplink")] - public async Task TxxpLink(long bookingId) + public async Task TxxpLink(long bookingId) { var order = _rep.FirstOrDefault(x => x.Id == bookingId); - var ordUrl = _repOrderUrl.FirstOrDefault(x => x.BookingId == bookingId); if (order == null) + { + throw Oops.Oh(BookingErrorCode.BOOK001); + } + + var ordUrl = _repOrderUrl.FirstOrDefault(x => x.BookingId == bookingId); + if (ordUrl == null) { ordUrl = new BookingOrderUrl(); ordUrl.BookingId = bookingId; await _repOrderUrl.InsertAsync(ordUrl); } + if (!string.IsNullOrEmpty(ordUrl.UrlTxxp)) + { + return ordUrl.UrlTxxp; + } //校验船公司 if (string.IsNullOrEmpty(order.CARRIERID)) @@ -816,18 +825,98 @@ namespace Myshipping.Application //判断船公司是否支持 var allowCarrier = _cache.GetAllDictData().Result.Where(x => x.TypeCode == "txxp_carrier_list").Select(x => x.Code).ToList(); - if (allowCarrier.Contains(order.CARRIERID)) + if (!allowCarrier.Contains(order.CARRIERID)) { throw Oops.Oh(BookingErrorCode.BOOK117); } //亿通账号 var ytAcc = _webconfig.FirstOrDefault(x => x.CreatedUserId == UserManager.UserId && x.TypeCode == "YitongWeb"); - if(ytAcc == null) + if (ytAcc == null) { throw Oops.Oh(BookingErrorCode.BOOK119); } + ////场站转换 + //var yardset = _cache.getallma().Result.FirstOrDefault(y => y.Code == order.YARDID && y.Module == "BookingTxxp"); + //if (yardset == null) + //{ + // throw Oops.Oh(BookingErrorCode.BOOK120, order.YARDID); + //} + + var ctns = await _repCtn.Where(x => x.BILLID == bookingId).ToListAsync(); + //校验箱子数据录入 + if (ctns.Where(c => string.IsNullOrEmpty(c.CTNALL) || !c.CTNNUM.HasValue).Count() > 0) + { + throw Oops.Oh(BookingErrorCode.BOOK121); + } + + //箱型映射 + var ctnMapping = await _cache.GetAllMappingCtn(); + ctnMapping = ctnMapping.Where(x => x.Module == "BookingTxxp").ToList(); + if (ctnMapping.Count == 0) + { + throw Oops.Oh(BookingErrorCode.BOOK122); + } + + var expCode = ctns.Select(x => x.CTNCODE).Distinct().Except(ctnMapping.Select(y => y.Code)).ToList(); + if (expCode.Count > 0) + { + throw Oops.Oh(BookingErrorCode.BOOK123, string.Join(',', expCode)); + } + + var user = await _repUser.FirstOrDefaultAsync(x => x.Id == UserManager.UserId); + + //调用小票服务 + var dicUrlTxxp = _cache.GetAllDictData().Result.First(x => x.TypeCode == "url_set" && x.Code == "txxp_service"); + var postObj = new + { + SystemCode = "djy_hechuan", + CarrierCode = order.CARRIERID, + billOrderId = order.Id, + sendOrderCode = order.MBLNO, + userId = UserManager.DjyUserId, + customerId = order.CUSTOMERID, + // userName = currUser.CODENAME, + //userPassword = currUser.PASSWORD, + operatorName = UserManager.Name, + //depotCode = yardset.MapCode, + //depotName = yardset.MapName, + AgentName = UserManager.TENANT_NAME, + linkName = UserManager.Name, + linkMobile = user.Tel, + CustomerName = $"{UserManager.TENANT_NAME}+{UserManager.Name}", //公司名称+用户姓名 + memo = string.Empty, + boxInfo = ctns.Select(c => + { + return new + { + boxType = ctnMapping.First(x => x.Code == c.CTNCODE), + boxCount = c.CTNNUM.Value + }; + }), + sysLoginName = ytAcc.Account, + sysPsssword = ytAcc.Password + }; + + + string strPostObj = postObj.ToJsonString(); + _logger.LogInformation($"调用提箱小票接口传递数据:{strPostObj}"); + var strResp = await dicUrlTxxp.Value.SetBody(postObj).PostAsStringAsync(); + _logger.LogInformation($"调用提箱小票接口返回:{strResp}"); + + var jobjResp = JObject.Parse(strResp); + int respCode = jobjResp.GetIntValue("code"); + if (respCode != 200) + { + throw Oops.Oh(BookingErrorCode.BOOK124, jobjResp.GetStringValue("message")); + } + + //保存url + var txxpUrl = jobjResp.GetStringValue("data"); + ordUrl.UrlTxxp = txxpUrl; + await _repOrderUrl.UpdateAsync(ordUrl); + return txxpUrl; } #endregion diff --git a/Myshipping.Core/Manager/UserManager.cs b/Myshipping.Core/Manager/UserManager.cs index 0e6804df..522cfccc 100644 --- a/Myshipping.Core/Manager/UserManager.cs +++ b/Myshipping.Core/Manager/UserManager.cs @@ -40,7 +40,7 @@ public static class UserManager /// /// 租户名称 /// - public static string CLAINM_TENANT_NAME => App.User.FindFirst(ClaimConst.CLAINM_TENANT_NAME)?.Value; + public static string TENANT_NAME => App.User.FindFirst(ClaimConst.CLAINM_TENANT_NAME)?.Value; /// /// 大简云userid diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index 748cf6d6..aae2232c 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -4928,7 +4928,7 @@ 租户ID - + 租户名称 From 1e3a24075476edda81677d3af48fea1240d256da Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 11 Nov 2022 15:49:58 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Myshipping.Core.xml | 52 ++++++++++++++++++- .../Service/Cache/SysCacheService.cs | 30 +++++------ .../Service/CommonDB/CommonDBService.cs | 6 --- 3 files changed, 66 insertions(+), 22 deletions(-) diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index 0c497550..b916bb80 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -652,6 +652,11 @@ 船名映射 + + + 场站映射 + + 字典映射 @@ -659,7 +664,7 @@ - 船名映射 + EDI映射 @@ -1262,6 +1267,11 @@ 代码 + + + 名称 + + 模块 @@ -5503,6 +5513,12 @@ + + + 获取公共库 场站映射 + + + 设置公共库 船公司 @@ -5587,6 +5603,12 @@ + + + 设置公共库 场站映射 + + + 获取租户参数 @@ -5884,6 +5906,12 @@ + + + 获取公共库 船名映射 + + + 设置公共库 船公司 @@ -5968,6 +5996,12 @@ + + + 设置公共库 场站映射 + + + 获取租户参数 @@ -6573,6 +6607,16 @@ 新增场站信息 + + + 获取场站映射 + + + + + 新增编辑场站映射信息 + + 获取起始港信息 @@ -6704,6 +6748,12 @@ + + + 获取场站映射 + + + 获取起始港 diff --git a/Myshipping.Core/Service/Cache/SysCacheService.cs b/Myshipping.Core/Service/Cache/SysCacheService.cs index ebaff0ac..91dd987c 100644 --- a/Myshipping.Core/Service/Cache/SysCacheService.cs +++ b/Myshipping.Core/Service/Cache/SysCacheService.cs @@ -434,7 +434,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeCarrier(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CARRIER, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CARRIER, list); } /// @@ -443,7 +443,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeVessel(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_VESSEL, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_VESSEL, list); } /// @@ -452,7 +452,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeForwarder(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER, list); } /// @@ -461,7 +461,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeYard(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_YARD, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_YARD, list); } /// @@ -470,7 +470,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodePortLoad(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD, list); } /// @@ -479,7 +479,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodePort(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORT, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORT, list); } /// @@ -488,7 +488,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodePackage(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE, list); } /// @@ -497,7 +497,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeService(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_SERVICE, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_SERVICE, list); } /// @@ -506,7 +506,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeCtn(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CTN, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CTN, list); } /// @@ -515,7 +515,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllCodeFrt(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FRT, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FRT, list); } /// @@ -524,7 +524,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllMappingCtn(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN, list); } /// @@ -533,7 +533,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllMappingCarrier(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER, list); } /// @@ -542,7 +542,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllMappingFrt(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT, list); } /// @@ -551,7 +551,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllMappingVessel(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL, list); } /// @@ -560,7 +560,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet /// public Task SetAllMappingYard(List list) { - return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_YARD, list, TimeSpan.FromMinutes(5)); + return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_YARD, list); } diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index 37ad1cc7..be02d326 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -20,11 +20,8 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie private readonly SqlSugarRepository _codeCarrierRep; private readonly SqlSugarRepository _mappingCarrierRep; - private readonly SqlSugarRepository _codeVesselRep; private readonly SqlSugarRepository _mappingVesselRep; - - private readonly SqlSugarRepository _codeForwarderRep; private readonly SqlSugarRepository _codeYardRep; private readonly SqlSugarRepository _mappingYardRep; @@ -34,10 +31,8 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie private readonly SqlSugarRepository _codeServiceRep; private readonly SqlSugarRepository _codeCtnRep; private readonly SqlSugarRepository _mappingCtnRep; - private readonly SqlSugarRepository _codeFrtRep; private readonly SqlSugarRepository _mappingFrtRep; - private readonly ISysCacheService _sysCacheService; public CommonDBService(SqlSugarRepository codeCarrierRep, @@ -164,7 +159,6 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie return queryList.ToList(); } - /// /// 新增船名信息 /// From 323dcfd7cf30476f0f0731268e40875f0b588879 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 11 Nov 2022 15:50:56 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E5=B0=8F=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingOrderService.cs | 16 +++--- Myshipping.Core/Myshipping.Core.xml | 52 ++++++++++++++++++- 2 files changed, 59 insertions(+), 9 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index d24f60af..e8418844 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -837,12 +837,12 @@ namespace Myshipping.Application throw Oops.Oh(BookingErrorCode.BOOK119); } - ////场站转换 - //var yardset = _cache.getallma().Result.FirstOrDefault(y => y.Code == order.YARDID && y.Module == "BookingTxxp"); - //if (yardset == null) - //{ - // throw Oops.Oh(BookingErrorCode.BOOK120, order.YARDID); - //} + //场站转换 + var yardset = _cache.GetAllMappingYard().Result.FirstOrDefault(y => y.Code == order.YARDID && y.Module == "BookingTxxp"); + if (yardset == null) + { + throw Oops.Oh(BookingErrorCode.BOOK120, order.YARDID); + } var ctns = await _repCtn.Where(x => x.BILLID == bookingId).ToListAsync(); //校验箱子数据录入 @@ -880,8 +880,8 @@ namespace Myshipping.Application // userName = currUser.CODENAME, //userPassword = currUser.PASSWORD, operatorName = UserManager.Name, - //depotCode = yardset.MapCode, - //depotName = yardset.MapName, + depotCode = yardset.MapCode, + depotName = yardset.MapName, AgentName = UserManager.TENANT_NAME, linkName = UserManager.Name, linkMobile = user.Tel, diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index 0c497550..b916bb80 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -652,6 +652,11 @@ 船名映射 + + + 场站映射 + + 字典映射 @@ -659,7 +664,7 @@ - 船名映射 + EDI映射 @@ -1262,6 +1267,11 @@ 代码 + + + 名称 + + 模块 @@ -5503,6 +5513,12 @@ + + + 获取公共库 场站映射 + + + 设置公共库 船公司 @@ -5587,6 +5603,12 @@ + + + 设置公共库 场站映射 + + + 获取租户参数 @@ -5884,6 +5906,12 @@ + + + 获取公共库 船名映射 + + + 设置公共库 船公司 @@ -5968,6 +5996,12 @@ + + + 设置公共库 场站映射 + + + 获取租户参数 @@ -6573,6 +6607,16 @@ 新增场站信息 + + + 获取场站映射 + + + + + 新增编辑场站映射信息 + + 获取起始港信息 @@ -6704,6 +6748,12 @@ + + + 获取场站映射 + + + 获取起始港 From 7b72d327ababab55b1a47c7a4e97df134e4b00e8 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 11 Nov 2022 16:17:15 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Entity/CommonDB/CodeYard.cs | 5 ----- Myshipping.Core/Service/CommonDB/CommonDBService.cs | 10 +++++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Myshipping.Core/Entity/CommonDB/CodeYard.cs b/Myshipping.Core/Entity/CommonDB/CodeYard.cs index 69784b3b..c82c5547 100644 --- a/Myshipping.Core/Entity/CommonDB/CodeYard.cs +++ b/Myshipping.Core/Entity/CommonDB/CodeYard.cs @@ -67,11 +67,6 @@ namespace Myshipping.Core.Entity /// public string Code { get; set; } - /// - /// 名称 - /// - public string Name { get; set; } - /// /// 模块 /// diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index be02d326..0d9e1d17 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -111,7 +111,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie .WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code, System.StringComparison.CurrentCultureIgnoreCase)) .WhereIF(!string.IsNullOrEmpty(input.MapCode), x => x.MapCode.Contains(input.MapCode, System.StringComparison.CurrentCultureIgnoreCase)) .WhereIF(!string.IsNullOrEmpty(input.Module), x => x.Module == input.Module) - .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.Code.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); + .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.MapName.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); return queryList.ToList(); } @@ -186,7 +186,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie List list = await _sysCacheService.GetAllMappingVessel(); var queryList = list.WhereIF(!string.IsNullOrEmpty(input.Module), x => x.Module == input.Module) - .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.Name.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); + .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.MapName.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); return queryList.ToList(); } @@ -284,7 +284,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie List list = await _sysCacheService.GetAllMappingYard(); var queryList = list.WhereIF(!string.IsNullOrEmpty(input.Module), x => x.Module == input.Module) - .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.Name.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); + .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.MapName.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); return queryList.ToList(); } @@ -472,7 +472,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie .WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code, System.StringComparison.CurrentCultureIgnoreCase)) .WhereIF(!string.IsNullOrEmpty(input.MapCode), x => x.MapCode.Contains(input.MapCode, System.StringComparison.CurrentCultureIgnoreCase)) .WhereIF(!string.IsNullOrEmpty(input.Module), x => x.Module == input.Module) - .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.Code.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); + .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.MapName.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); return queryList.ToList(); } @@ -540,7 +540,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie .WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code, System.StringComparison.CurrentCultureIgnoreCase)) .WhereIF(!string.IsNullOrEmpty(input.MapCode), x => x.MapCode.Contains(input.MapCode, System.StringComparison.CurrentCultureIgnoreCase)) .WhereIF(!string.IsNullOrEmpty(input.Module), x => x.Module == input.Module) - .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.Code.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); + .WhereIF(!string.IsNullOrEmpty(input.MapName), x => x.MapName.Contains(input.MapName, System.StringComparison.CurrentCultureIgnoreCase)); return queryList.ToList(); } From 62fc3491b03f71c486be55ff187e7ae072e1af21 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 11 Nov 2022 16:36:38 +0800 Subject: [PATCH 09/12] mappingyard --- Myshipping.Core/Service/CommonDB/CommonDBService.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index 0d9e1d17..f96a5ec2 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -214,7 +214,6 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie #endregion - #region 船代 /// /// 获取船代列表信息 @@ -242,7 +241,6 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie } #endregion - #region 场站 /// @@ -292,7 +290,7 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie /// /// 新增编辑场站映射信息 /// - [HttpPost("/commondb/addorupdateyard")] + [HttpPost("/commondb/addorupdatemappingyard")] public async Task AddOrUpdateMappingYard([FromBody] MappingYard dto) { var entity = dto.Adapt(); @@ -313,7 +311,6 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie #endregion - #region 起始港 /// /// 获取起始港信息 @@ -564,9 +561,6 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie } #endregion - - - #region 实现接口,获取公共数据并缓存 [NonAction] public async Task> GetAllCarrier() @@ -709,7 +703,4 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie } #endregion - - - } From 996c97938290f83b37d8a7a82844cd990a99c97b Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 11 Nov 2022 16:48:54 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=8F=90=E7=AE=B1=E5=B0=8F=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingOrderService.cs | 6 ++--- Myshipping.Core/Entity/CommonDB/CodeYard.cs | 21 ---------------- Myshipping.Core/Myshipping.Core.xml | 25 ------------------- 3 files changed, 3 insertions(+), 49 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index e8418844..fb5bfc11 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -873,10 +873,10 @@ namespace Myshipping.Application { SystemCode = "djy_hechuan", CarrierCode = order.CARRIERID, - billOrderId = order.Id, + billOrderId = order.Id.ToString(), sendOrderCode = order.MBLNO, userId = UserManager.DjyUserId, - customerId = order.CUSTOMERID, + customerId = order.CUSTOMERID.ToString(), // userName = currUser.CODENAME, //userPassword = currUser.PASSWORD, operatorName = UserManager.Name, @@ -891,7 +891,7 @@ namespace Myshipping.Application { return new { - boxType = ctnMapping.First(x => x.Code == c.CTNCODE), + boxType = ctnMapping.First(x => x.Code == c.CTNCODE).MapCode, boxCount = c.CTNNUM.Value }; }), diff --git a/Myshipping.Core/Entity/CommonDB/CodeYard.cs b/Myshipping.Core/Entity/CommonDB/CodeYard.cs index c82c5547..059fe7fb 100644 --- a/Myshipping.Core/Entity/CommonDB/CodeYard.cs +++ b/Myshipping.Core/Entity/CommonDB/CodeYard.cs @@ -32,27 +32,6 @@ namespace Myshipping.Core.Entity /// public string Remark { get; set; } - /// - /// 创建时间 - /// - public DateTime CreateTime { get; set; } - - /// - /// 修改时间 - /// - public DateTime? ModifyTime { get; set; } - - /// - /// 创建人 - /// - public string CreateUser { get; set; } - - /// - /// 修改人 - /// - public string ModifyUser { get; set; } - - } diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index b916bb80..d121ee34 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -1242,36 +1242,11 @@ 备注 - - - 创建时间 - - - - - 修改时间 - - - - - 创建人 - - - - - 修改人 - - 代码 - - - 名称 - - 模块 From 4189119ae6b74ee1339b53711b923ccb3c438fd6 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Fri, 11 Nov 2022 17:28:14 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E5=A4=A7=E7=AE=80=E4=BA=91=E7=94=A8?= =?UTF-8?q?=E6=88=B7id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Myshipping.Core.xml | 5 ----- Myshipping.Core/Service/Auth/AuthService.cs | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index b916bb80..fd4e2ae2 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -1267,11 +1267,6 @@ 代码 - - - 名称 - - 模块 diff --git a/Myshipping.Core/Service/Auth/AuthService.cs b/Myshipping.Core/Service/Auth/AuthService.cs index 5f06e30e..5c501b27 100644 --- a/Myshipping.Core/Service/Auth/AuthService.cs +++ b/Myshipping.Core/Service/Auth/AuthService.cs @@ -94,6 +94,7 @@ public class AuthService : IAuthService, IDynamicApiController, ITransient {ClaimConst.CLAINM_SUPERADMIN, user.AdminType}, { ClaimConst.CLAINM_TENANT_TYPE, tenant.TenantType }, { ClaimConst.CLAINM_TENANT_NAME, tenant.Name }, + { ClaimConst.DjyUserId, user.DjyUserId }, }); // 设置Swagger自动登录 @@ -148,6 +149,7 @@ public class AuthService : IAuthService, IDynamicApiController, ITransient { ClaimConst.CLAINM_SUPERADMIN, user.AdminType }, { ClaimConst.CLAINM_TENANT_TYPE, tenant.TenantType }, { ClaimConst.CLAINM_TENANT_NAME, tenant.Name }, + { ClaimConst.DjyUserId, user.DjyUserId }, }); // 设置Swagger自动登录 From af7ad0a5e3a6a55eec1710b08eb0f6794b6925a3 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 11 Nov 2022 17:31:40 +0800 Subject: [PATCH 12/12] region --- .../Service/BookingOrder/BookingOrderService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index fb5bfc11..c5baecc0 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -920,6 +920,14 @@ namespace Myshipping.Application } #endregion + #region VGM及VMG链接 + + #endregion + + #region 订舱、截单EDI + + #endregion + #region 其他 /// /// 获取用户报表的json