|
|
|
@ -378,8 +378,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
if (req.IsRefund)
|
|
|
|
|
{
|
|
|
|
|
if (req.OrderProgress =="2") //已出号未申报 发起退舱入池任务
|
|
|
|
|
{
|
|
|
|
|
var userList = new List<long>();
|
|
|
|
|
if (req.OrderProgress =="2") //已出号未申报 发起退舱入池任务 推给当票商务
|
|
|
|
|
{
|
|
|
|
|
userList.Add(entity.LaneId);
|
|
|
|
|
var taskReq = new TaskCreationRequest()
|
|
|
|
|
{
|
|
|
|
|
BusinessId = newKey,
|
|
|
|
@ -387,13 +389,15 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
TaskTypeName = TaskBaseTypeEnum.RETURN_CABIN_POOL.ToString(),
|
|
|
|
|
TaskTitle = $"【{TaskBaseTypeEnum.RETURN_CABIN_POOL.GetDescription()}】{entity?.CustomerNo}",
|
|
|
|
|
TaskDescription = $"【{TaskBaseTypeEnum.RETURN_CABIN_POOL.GetDescription()}】{entity?.CustomerNo}",
|
|
|
|
|
RecvUserIdList = userList.ToArray()
|
|
|
|
|
};
|
|
|
|
|
var result = await taskService.CreateTaskAsync(taskReq, false);
|
|
|
|
|
if (!result.Succeeded)
|
|
|
|
|
return await Task.FromResult(DataResult.Failed(result.Message));
|
|
|
|
|
}
|
|
|
|
|
else //退舱确认任务
|
|
|
|
|
else //退舱确认任务 推给当票操作
|
|
|
|
|
{
|
|
|
|
|
userList.Add(info.OperatorId);
|
|
|
|
|
var taskReq = new TaskCreationRequest()
|
|
|
|
|
{
|
|
|
|
|
BusinessId = newKey,
|
|
|
|
@ -401,6 +405,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
TaskTypeName = TaskBaseTypeEnum.RETURN_CABIN.ToString(),
|
|
|
|
|
TaskTitle = $"【{TaskBaseTypeEnum.RETURN_CABIN.GetDescription()}】{entity?.CustomerNo}",
|
|
|
|
|
TaskDescription = $"【{TaskBaseTypeEnum.RETURN_CABIN.GetDescription()}】{entity?.CustomerNo}",
|
|
|
|
|
RecvUserIdList = userList.ToArray()
|
|
|
|
|
};
|
|
|
|
|
var result = await taskService.CreateTaskAsync(taskReq, false);
|
|
|
|
|
if (!result.Succeeded)
|
|
|
|
@ -502,9 +507,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
if (callback.FlowStatus == FlowStatusEnum.Approve)
|
|
|
|
|
{
|
|
|
|
|
await seaComService.SetGoodsStatus("YSTC", callback.BusinessId, tenantDb);
|
|
|
|
|
|
|
|
|
|
if (info.OrderProgress =="2")//已出号未申报 发起退舱入池任务
|
|
|
|
|
var userList = new List<long>();
|
|
|
|
|
if (info.OrderProgress =="2")//已出号未申报 发起退舱入池任务 推给当票商务
|
|
|
|
|
{
|
|
|
|
|
userList.Add(info.LaneId);
|
|
|
|
|
var taskReq = new TaskCreationRequest()
|
|
|
|
|
{
|
|
|
|
|
BusinessId = info.Id,
|
|
|
|
@ -512,13 +518,15 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
TaskTypeName = TaskBaseTypeEnum.RETURN_CABIN_POOL.ToString(),
|
|
|
|
|
TaskTitle = $"【{TaskBaseTypeEnum.RETURN_CABIN_POOL.GetDescription()}】{info?.CustomerNo}",
|
|
|
|
|
TaskDescription = $"【{TaskBaseTypeEnum.RETURN_CABIN_POOL.GetDescription()}】{info?.CustomerNo}",
|
|
|
|
|
RecvUserIdList = userList.ToArray()
|
|
|
|
|
};
|
|
|
|
|
var result = await taskService.CreateTaskAsync(taskReq, false);
|
|
|
|
|
if (!result.Succeeded)
|
|
|
|
|
return await Task.FromResult(DataResult.Failed(result.Message));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
else //退舱确认任务 推给当票操作
|
|
|
|
|
{
|
|
|
|
|
userList.Add(info.OperatorId);
|
|
|
|
|
//发起退舱确认任务
|
|
|
|
|
var taskReq = new TaskCreationRequest()
|
|
|
|
|
{
|
|
|
|
@ -527,6 +535,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
TaskTypeName = TaskBaseTypeEnum.RETURN_CABIN.ToString(),
|
|
|
|
|
TaskTitle = $"【{TaskBaseTypeEnum.RETURN_CABIN.GetDescription()}】{info?.CustomerNo}",
|
|
|
|
|
TaskDescription = $"【{TaskBaseTypeEnum.RETURN_CABIN.GetDescription()}】{info?.CustomerNo}",
|
|
|
|
|
RecvUserIdList = userList.ToArray()
|
|
|
|
|
};
|
|
|
|
|
var result = await taskService.CreateTaskAsync(taskReq, false);
|
|
|
|
|
if (!result.Succeeded)
|
|
|
|
|