|
|
|
@ -1065,5 +1065,74 @@ namespace Myshipping.Application
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发送预甩的通知
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">请求详情</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> SendRollingNominationNotice(RollingNominationNoticeDto model)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (model.nominationDispatchId == null || model.nominationDispatchId.Length == 0)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Oh($"预甩调度批次ID不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var list = _taskRollingNominationDispatchInfoRepository.AsQueryable()
|
|
|
|
|
.Where(a => model.nominationDispatchId.Contains(a.BATCH_ID)).ToList();
|
|
|
|
|
|
|
|
|
|
if (list.Count == 0)
|
|
|
|
|
throw Oops.Oh($"预甩调度批次ID无法获取业务信息");
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
result.succ = false;
|
|
|
|
|
result.msg = $"取消访问链接异常,原因:{ex.Message}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 获取预甩的通知预览
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取预甩的通知预览
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">请求详情</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<TaskManageOrderResultDto> GetRollingNominationNoticeReview(RollingNominationNoticeDto model)
|
|
|
|
|
{
|
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//if (string.IsNullOrWhiteSpace(dispatchBatchId))
|
|
|
|
|
//{
|
|
|
|
|
// throw Oops.Oh($"预甩调度批次ID不能为空");
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//var list = _taskRollingNominationDispatchInfoRepository.AsQueryable()
|
|
|
|
|
// .Where(a => a.BATCH_ID == dispatchBatchId).ToList();
|
|
|
|
|
|
|
|
|
|
//if (list.Count == 0)
|
|
|
|
|
// throw Oops.Oh($"预甩调度批次ID无法获取业务信息");
|
|
|
|
|
|
|
|
|
|
//var service = _namedServiceProvider.GetService(nameof(TaskManageShareLinkService));
|
|
|
|
|
//result = await service.CancelShareLink(dispatchBatchId);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
result.succ = false;
|
|
|
|
|
result.msg = $"取消访问链接异常,原因:{ex.Message}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|