修改 订舱完触发状态标记

dev
jianghaiqing 2 months ago
parent 7a2b777dce
commit 5830c2d6b0

@ -1890,6 +1890,11 @@ namespace DS.WMS.Core.Op.Method
await seaComService.SetGoodsStatus("JD", req.Id, tenantDb);
//await SendBookingOrder(new long[] { req.Id });
}
else
{
//已订舱
await seaComService.SetGoodsStatus("YDC", req.Id, tenantDb);
}
}

@ -1746,14 +1746,17 @@ namespace DS.WMS.Core.TaskPlat.Method
}
else if (bcTaskInfo.TASK_TYPE == TaskBaseTypeEnum.BC_MODIFY.ToString())
{
//CMA没有变更附件所以转发邮件时默认用原文件转发
if (bcTaskInfo.CARRIER_CODE.Equals("CMA", StringComparison.OrdinalIgnoreCase))
{
fileInfo = tenantDb.Queryable<TaskFileInfo>().Where(a => a.TASK_PKID == taskBCInfo.TASK_ID && a.FILE_CATEGORY.Contains("BC_MODIFY"))
.OrderByDescending(a => a.CreateTime).First();
}
else
{
////CMA没有变更附件所以转发邮件时默认用原文件转发
//if (bcTaskInfo.CARRIER_CODE.Equals("CMA", StringComparison.OrdinalIgnoreCase))
//{
// fileInfo = tenantDb.Queryable<TaskFileInfo>().Where(a => a.TASK_PKID == taskBCInfo.TASK_ID && a.FILE_CATEGORY.Contains("BC_MODIFY"))
//.OrderByDescending(a => a.CreateTime).First();
//}
//else
//{
//}
if (orderInfo.splitOrMergeFlag == 1)
{
//这里需要按照箱量重新修改变更附件
@ -1765,8 +1768,6 @@ namespace DS.WMS.Core.TaskPlat.Method
}
}
}
if (fileInfo == null)
{
throw new Exception($"提取变更文件失败,不能发送邮件");

Loading…
Cancel
Save