|
|
|
|
using Azure.Storage.Blobs.Models;
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Attributes;
|
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
|
using DS.Module.DjyServiceStatus;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.Owin.Security.Provider;
|
|
|
|
|
using Org.BouncyCastle.Crypto;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单管理
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BLIssueManageController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly IBLIssueManageService _BLIssueManageService;
|
|
|
|
|
|
|
|
|
|
public BLIssueManageController(IBLIssueManageService BLIssueManageService)
|
|
|
|
|
{
|
|
|
|
|
_BLIssueManageService = BLIssueManageService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 提单管理台账查询
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单管理台账查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="querySearch">查询条件</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetPage")]
|
|
|
|
|
public async Task<DataResult<List<BLIssueManageBaseDto>>> GetPageAsync([FromBody] PageRequest querySearch)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.GetPageAsync(querySearch);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 获取导出数据列表
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取导出数据列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="querySearch">查询条件</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetExportList")]
|
|
|
|
|
public async Task<DataResult<List<BLIssueManageBaseDto>>> GetExportList(PageRequest querySearch)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.GetPageAsync(querySearch,true);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 打印
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 打印
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">提单管理主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("Print")]
|
|
|
|
|
public async Task<DataResult<string>> Print([FromQuery] long id)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.Print(id);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提单签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckIn")]
|
|
|
|
|
public async Task<DataResult> BLCheckIn([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckIn(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消提单签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消提单签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckInCancel")]
|
|
|
|
|
public async Task<DataResult> BLCheckInCancel([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckInCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提单签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckOut")]
|
|
|
|
|
public async Task<DataResult> BLCheckOut([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckOut(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消提单签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消提单签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消提单签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckOutCancel")]
|
|
|
|
|
public async Task<DataResult> BLCheckOutCancel([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckOutCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 船证签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船证签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">船证签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckIn")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckIn([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckIn(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消船证签入
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消船证签入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消船证签入请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckInCancel")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckInCancel([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckInCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 船证签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船证签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">船证签出请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckOut")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckOut([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckOut(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消船证签出
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消船证签出
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消船证签出请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("ShipCertCheckOutCancel")]
|
|
|
|
|
public async Task<DataResult> ShipCertCheckOutCancel([FromBody] ShipCertCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.ShipCertCheckOutCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提单换签(背书)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提单换签(背书)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">提单换签(背书)请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckChangeEndorse")]
|
|
|
|
|
public async Task<DataResult> BLCheckChangeEndorse([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckChangeEndorse(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 取消提单换签(背书)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 取消提单换签(背书)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">取消提单换签(背书)请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLCheckChangeEndorseCancel")]
|
|
|
|
|
public async Task<DataResult> BLCheckChangeEndorseCancel([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLCheckChangeEndorseCancel(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 驳回放单通知
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 驳回放单通知
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">驳回放单通知请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLRejectReleaseNotice")]
|
|
|
|
|
public async Task<DataResult> BLRejectReleaseNotice([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLRejectReleaseNotice(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 更改提单(其他)
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更改提单(其他)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">更改提单请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLModify")]
|
|
|
|
|
public async Task<DataResult> BLModify([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLModify(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 状态更改
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态更改
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model">状态更改请求</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("BLModifyStatus")]
|
|
|
|
|
public async Task<DataResult> BLModifyStatus([FromBody] BLCheckInOutDto model)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.BLModifyStatus(model);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 查询单票的提单管理日志
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 查询单票的提单管理日志
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">提单管理主键</param>
|
|
|
|
|
/// <returns>返回日志列表</returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetLogs")]
|
|
|
|
|
public async Task<DataResult<List<BusinessTaskLogDto>>> GetLogs(long id)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.GetLogs(id);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 获取相关信息
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取相关信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">提单管理主键</param>
|
|
|
|
|
/// <returns>返回相关信息</returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetRelateInfo")]
|
|
|
|
|
public async Task<DataResult<BLIssueCustomerDto>> GetRelateInfo(long id)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.GetRelateInfo(id);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 获取欠费详情列表
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取欠费详情列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">提单管理主键</param>
|
|
|
|
|
/// <returns>返回列表</returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetOverdueFeeList")]
|
|
|
|
|
public async Task<DataResult<List<BLOverdueFeeDto>>> GetOverdueFeeList(long id)
|
|
|
|
|
{
|
|
|
|
|
return await _BLIssueManageService.GetOverdueFeeList(id);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|