From 9ac779e46c5eb228d5e20565701564ae2b1430ec Mon Sep 17 00:00:00 2001 From: ddlucky Date: Fri, 13 Jan 2023 09:05:18 +0800 Subject: [PATCH] =?UTF-8?q?vgm=E6=8E=A5=E5=8F=A3=E7=9B=B4=E5=8F=91?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=AF=B9=E7=AE=B1=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs index b92d214a..b9d9e7ec 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/MsOpSeaeDAL.cs @@ -7609,6 +7609,21 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL result.SetErrorInfo("请维护用户基础信息中的电话和邮箱"); } + + foreach (var ctn in ctns) { + if (string.IsNullOrWhiteSpace( ctn.CTNALL)) result.SetErrorInfo("必须选择箱型"); + if (ctn.CTNNUM <= 0) result.SetErrorInfo("箱量不能为零"); + if (string.IsNullOrWhiteSpace(ctn.CNTRNO)) result.SetErrorInfo("箱号不能为空"); + if (string.IsNullOrWhiteSpace(ctn.SEALNO)) result.SetErrorInfo("封号不能为空"); + if (ctn.KGS <= 0) result.SetErrorInfo("毛重不能为零"); + if (ctn.TAREWEIGHT <= 0) result.SetErrorInfo("皮重不能为零"); + if (ctn.WEIGHKGS <= 0) result.SetErrorInfo("称重重量不能为零"); + } + if (userbaseinfo == null || string.IsNullOrWhiteSpace(userbaseinfo.Tel) || string.IsNullOrWhiteSpace(userbaseinfo.Email)) + { + result.SetErrorInfo("请维护用户基础信息中的电话和邮箱"); + } + if (!result.Success) return result; #endregion @@ -7671,7 +7686,9 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL //log.Debug($"准备发送vgm:{strSendObj}"); try { + BasicDataRefDAL.SaveLog(strSendObj, "", "VGM直发", "发送"); var rtn = WebRequestHelper.DoPost(paraVgmSendService.PARAMVALUE, strSendObj, timeout: 5000); + BasicDataRefDAL.SaveLog(rtn, "", "VGM直发", "返回"); //log.Debug($"发送vgm返回:{rtn}"); var jobjRtn = Newtonsoft.Json.JsonConvert.DeserializeAnonymousType(rtn, new { code = 0, status = false, message = string.Empty, data = string.Empty }); if (!jobjRtn.status)