You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
3.9 KiB
C#
169 lines
3.9 KiB
C#
using Furion.DynamicApiController;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Myshipping.Application
|
|
{
|
|
/// <summary>
|
|
/// 派车任务
|
|
/// </summary>
|
|
[ApiDescriptionSettings("Application", Name = "TaskManageTruck", Order = 10)]
|
|
public class TaskManageTruckService : ITaskManageTruckService, IDynamicApiController
|
|
{
|
|
/// <summary>
|
|
/// 保存派车
|
|
/// </summary>
|
|
/// <param name="info">派车信息</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> Save(BookingTruckDto info)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取派车详情
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> GetInfo(long id)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 删除派车
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> Delete(long id)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 打印派车
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpGet("/BookingTruck/Print")]
|
|
public async Task<TaskManageOrderResultDto> Print(long id)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 批量派车
|
|
/// </summary>
|
|
/// <param name="ids">派车主键组</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpPost("/TaskManageTruck/SendDispatchBatch")]
|
|
public async Task<TaskManageOrderResultDto> SendDispatchBatch([FromBody] long[] ids)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 取消派车
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpGet("/TaskManageTruck/CancelDispatch")]
|
|
public async Task<TaskManageOrderResultDto> CancelDispatch(long id)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 批量取消派车
|
|
/// </summary>
|
|
/// <param name="ids">派车主键组</param>
|
|
/// <returns>返回回执</returns>
|
|
[HttpPost("/TaskManageTruck/CancelDispatchBatch")]
|
|
public async Task<TaskManageOrderResultDto> CancelDispatchBatch([FromBody] long[] ids)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|