diff --git a/Myshipping.Application/Service/BookingTruck/TaskManageExternalService.cs b/Myshipping.Application/Service/BookingTruck/TaskManageExternalService.cs index c40ff753..7c375d54 100644 --- a/Myshipping.Application/Service/BookingTruck/TaskManageExternalService.cs +++ b/Myshipping.Application/Service/BookingTruck/TaskManageExternalService.cs @@ -30,10 +30,24 @@ namespace Myshipping.Application var service = _namedServiceProvider.GetService(nameof(TaskManageService)); var rlt = await service.CreateTaskJob(info); + + if(!rlt.succ) + { + result.succ = false; + result.msg = $"提交派车失败,原因:{rlt.msg}"; + } + else + { + result.succ = true; + result.msg = "提交成功"; + //提取任务流水号 + result.ext = rlt.ext; + } } catch(Exception ex) { - + result.succ = false; + result.msg = $"保存派车异常,原因:{ex.Message}"; } return result; @@ -50,11 +64,14 @@ namespace Myshipping.Application try { + var service = _namedServiceProvider.GetService(nameof(TaskManageService)); + var rlt = await service.CancelTaskJob(info); } catch (Exception ex) { - + result.succ = false; + result.msg = $"保存派车异常,原因:{ex.Message}"; } return result; diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderMessageMainInfo.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderMessageMainInfo.cs index 620334de..a0d91a8c 100644 --- a/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderMessageMainInfo.cs +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/TaskManageOrderMessageMainInfo.cs @@ -26,6 +26,7 @@ namespace Myshipping.Application /// 船公司代号 /// public string CarrierId { get; set; } + /// /// 任务标题 /// diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs index c3a2ccd1..6bb89999 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageTruckService.cs @@ -82,7 +82,7 @@ namespace Myshipping.Application /// /// 派车主键 /// 返回回执 - [HttpGet("/BookingTruck/Print")] + [HttpGet("/TaskManageTruck/Print")] public async Task Print(long id) { TaskManageOrderResultDto result = new TaskManageOrderResultDto();