diff --git a/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs b/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs index bc4083b6..8d66e7a6 100644 --- a/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs +++ b/ds-wms-service/DS.Module.Core/Constants/MultiLanguageConst.cs @@ -1516,6 +1516,8 @@ public static class MultiLanguageConst #endregion #region 关联任务 + [Description("传入的业务信息无效,请确保业务状态正确或未被删除")] + public const string Biz_Not_Valid = "Biz_Not_Valid"; [Description("此任务已存在,请勿重复提交")] public const string TaskExists = "Task_Exists"; [Description("未能找到任务")] diff --git a/ds-wms-service/DS.WMS.Core/HangfireJob/Method/WSLReportJobService.cs b/ds-wms-service/DS.WMS.Core/HangfireJob/Method/WSLReportJobService.cs index b28ba2bc..04cfe254 100644 --- a/ds-wms-service/DS.WMS.Core/HangfireJob/Method/WSLReportJobService.cs +++ b/ds-wms-service/DS.WMS.Core/HangfireJob/Method/WSLReportJobService.cs @@ -130,8 +130,15 @@ namespace DS.WMS.Core.HangfireJob.Method { SendTo = config["TaskMail:DefaultSetting:Receivers"], Title = "WSL Volume Daily Increase Report", - Body = "Dear WSL Team" + "
" + "Pls kindly check the daily report for your member's nomination booking:", - //ShowName = "", + Body = @"
+

Dear WSL Team,

+

Pls kindly check the daily report for your member's nomination booking: 

+

 

+

Thanks & Best regards

+

Candy SHAO 邵芳

+

General Manager| SUNNINESS LOGISTICS CO.,LTD.

+

TEL: +(86) (0532-80688387)1 MB./We chat: +(86)(18866622731) | QQ:2853083553|Email:candy@sunniness. net |WCA ID: 60272

+
", Account = config["TaskMail:DefaultSetting:Account"], Password = config["TaskMail:DefaultSetting:Password"], Server = config["TaskMail:DefaultSetting:Host"], diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/ActionManagerService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/ActionManagerService.cs index 47b80a75..0972f396 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/ActionManagerService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/ActionManagerService.cs @@ -247,7 +247,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction var businessTask = await TenantDb.Queryable().Where( x => x.BusinessId == businessId && x.BusinessType == businessType && x.TaskType == TaskBaseTypeEnum.WAIT_BOOKING).FirstAsync(); if (businessTask == null) - return DataResult.FailedWithDesc(MultiLanguageConst.BookingTaskNotFound); + return DataResult.FailedWithDesc(nameof(MultiLanguageConst.BookingTaskNotFound)); var dic = new Dictionary { diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs index 1e39cf4a..800c84a1 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/TaskService.cs @@ -185,6 +185,21 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction /// public async Task CreateTaskAsync(TaskCreationRequest request, bool useTransaction = true) { + //if (request.BusinessType.HasValue) + //{ + // bool isBizValid = false; + // switch (request.BusinessType.Value) + // { + // case BusinessType.OceanShippingExport: + // isBizValid = await TenantDb.Queryable().AnyAsync(x => x.Id == request.BusinessId); + // break; + // } + + // if (!isBizValid) + // return DataResult.FailedWithDesc(nameof(MultiLanguageConst.Biz_Not_Valid)); + //} + + if (!await HasAuthorizedAsync()) return DataResult.FailedWithDesc(nameof(MultiLanguageConst.ModuleUnauthorized)); diff --git a/ds-wms-service/DS.WMS.OpApi/appsettings.json b/ds-wms-service/DS.WMS.OpApi/appsettings.json index d031cf89..f86ebc6e 100644 --- a/ds-wms-service/DS.WMS.OpApi/appsettings.json +++ b/ds-wms-service/DS.WMS.OpApi/appsettings.json @@ -119,7 +119,8 @@ "Host": "smtp.mxhichina.com", "Port": 465, "UseSSL": true, - "Receivers": "daisusu@dongshengsoft.com" + "Receivers": "daisusu@dongshengsoft.com", + "Content" : "" } }, "FeeService": {