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.
253 lines
6.1 KiB
C#
253 lines
6.1 KiB
C#
using Furion;
|
|
using Furion.DependencyInjection;
|
|
using Furion.DistributedIDGenerator;
|
|
using Furion.DynamicApiController;
|
|
using Furion.FriendlyException;
|
|
using Furion.JsonSerialization;
|
|
using Furion.RemoteRequest.Extensions;
|
|
using Mapster;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Logging;
|
|
using Myshipping.Application.Entity;
|
|
using Myshipping.Core;
|
|
using Myshipping.Core.Entity;
|
|
using Myshipping.Core.Service;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net.Http;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Myshipping.Application
|
|
{
|
|
/// <summary>
|
|
/// 派车服务
|
|
/// </summary>
|
|
[ApiDescriptionSettings("Application", Name = "BookingTruck", Order = 9)]
|
|
public class BookingTruckService : IBookingTruckService, IDynamicApiController, ITransient
|
|
{
|
|
private readonly ISysCacheService _cache;
|
|
private readonly ILogger<BookingTruckService> _logger;
|
|
|
|
private readonly SqlSugarRepository<BookingTruck> _bookingTruckRepository;
|
|
private readonly SqlSugarRepository<BookingTruckCtn> _bookingTruckContaRepository;
|
|
|
|
public BookingTruckService(ISysCacheService cache, ILogger<BookingTruckService> logger,
|
|
SqlSugarRepository<BookingTruck> bookingTruckRepository,
|
|
SqlSugarRepository<BookingTruckCtn> bookingTruckContaRepository)
|
|
{
|
|
_cache = cache;
|
|
_logger = logger;
|
|
|
|
_bookingTruckRepository = bookingTruckRepository;
|
|
_bookingTruckContaRepository = bookingTruckContaRepository;
|
|
}
|
|
|
|
/// <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="info">派车信息</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> Submit(BookingTruckDto info)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 批量提交派车
|
|
/// </summary>
|
|
/// <param name="ids">派车主键组</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> SubmitBatch(long[] ids)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 撤销派车
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> Cancel(long id)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 批量撤销派车
|
|
/// </summary>
|
|
/// <param name="ids">派车主键组</param>
|
|
/// <returns>返回回执</returns>
|
|
public async Task<TaskManageOrderResultDto> CancelBatch(long[] ids)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 打印派车
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
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>
|
|
public async Task<TaskManageOrderResultDto> SendDispatchBatch(long[] ids)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 取消派车
|
|
/// </summary>
|
|
/// <param name="id">派车主键</param>
|
|
/// <returns>返回回执</returns>
|
|
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>
|
|
public async Task<TaskManageOrderResultDto> CancelDispatchBatch(long[] ids)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
public async Task<TaskManageOrderResultDto> GetInfo(long id)
|
|
{
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
try
|
|
{
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|