修改派车

optimize
jianghaiqing 2 years ago
parent 04c6941a0c
commit e1bd5a87bc

@ -30,10 +30,24 @@ namespace Myshipping.Application
var service = _namedServiceProvider.GetService(nameof(TaskManageService)); var service = _namedServiceProvider.GetService(nameof(TaskManageService));
var rlt = await service.CreateTaskJob(info); 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) catch(Exception ex)
{ {
result.succ = false;
result.msg = $"保存派车异常,原因:{ex.Message}";
} }
return result; return result;
@ -50,11 +64,14 @@ namespace Myshipping.Application
try try
{ {
var service = _namedServiceProvider.GetService(nameof(TaskManageService));
var rlt = await service.CancelTaskJob(info);
} }
catch (Exception ex) catch (Exception ex)
{ {
result.succ = false;
result.msg = $"保存派车异常,原因:{ex.Message}";
} }
return result; return result;

@ -26,6 +26,7 @@ namespace Myshipping.Application
/// 船公司代号 /// 船公司代号
/// </summary> /// </summary>
public string CarrierId { get; set; } public string CarrierId { get; set; }
/// <summary> /// <summary>
/// 任务标题 /// 任务标题
/// </summary> /// </summary>

@ -82,7 +82,7 @@ namespace Myshipping.Application
/// </summary> /// </summary>
/// <param name="id">派车主键</param> /// <param name="id">派车主键</param>
/// <returns>返回回执</returns> /// <returns>返回回执</returns>
[HttpGet("/BookingTruck/Print")] [HttpGet("/TaskManageTruck/Print")]
public async Task<TaskManageOrderResultDto> Print(long id) public async Task<TaskManageOrderResultDto> Print(long id)
{ {
TaskManageOrderResultDto result = new TaskManageOrderResultDto(); TaskManageOrderResultDto result = new TaskManageOrderResultDto();

Loading…
Cancel
Save