|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.Info.Dtos;
|
|
|
|
|
using DS.WMS.Core.Info.Interface;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
|
|
using DS.WMS.Core.System.Dtos;
|
|
|
|
|
using DS.WMS.Core.System.Interface;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.OpApi.Controllers;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 海运出口信息-模块
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class SeaExportController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly ISeaExportService _invokeService;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 构造函数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
|
public SeaExportController(ISeaExportService invokeService)
|
|
|
|
|
{
|
|
|
|
|
_invokeService = invokeService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetSeaExportList")]
|
|
|
|
|
public DataResult<List<SeaExportRes>> GetSeaExportList([FromBody] PageRequest request)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetListByPage(request);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编辑
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("EditSeaExport")]
|
|
|
|
|
public DataResult EditSeaExport([FromBody] SeaExportReq req)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.EditSeaExport(req);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 详情
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetSeaExportInfo")]
|
|
|
|
|
public DataResult<SeaExportRes> GetSeaExportInfo([FromQuery] string id)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetSeaExportInfo(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 批量编辑
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("SeaExportBatchEdit")]
|
|
|
|
|
public DataResult SeaExportBatchEdit([FromBody] SeaExportBatchEditReq req)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.SeaExportBatchEdit(req);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务单据删除
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("SeaExportDel")]
|
|
|
|
|
public DataResult SeaExportDel([FromQuery] string id)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.SeaExportDel(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务单据批量删除
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="Ids"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("SeaExportBatchDel")]
|
|
|
|
|
public DataResult SeaExportBatchDel([FromQuery] List<long> Ids)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.SeaExportBatchDel(Ids);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 业务锁定
|
|
|
|
|
///// </summary>
|
|
|
|
|
///// <param name="id">主键id</param>
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
//[Route("SeaExportBusinessLook")]
|
|
|
|
|
//public DataResult SeaExportBusinessLook([FromQuery] string id)
|
|
|
|
|
//{
|
|
|
|
|
// var res = _invokeService.SeaExportBusinessLook(id);
|
|
|
|
|
// return res;
|
|
|
|
|
//}
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 业务锁定解锁
|
|
|
|
|
///// </summary>
|
|
|
|
|
///// <param name="id">主键id</param>
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
//[Route("SeaExportBusinessUnLook")]
|
|
|
|
|
//public DataResult SeaExportBusinessUnLook([FromQuery] string id)
|
|
|
|
|
//{
|
|
|
|
|
// var res = _invokeService.SeaExportBusinessUnLook(id);
|
|
|
|
|
// return res;
|
|
|
|
|
//}
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 费用锁定
|
|
|
|
|
///// </summary>
|
|
|
|
|
///// <param name="id">主键id</param>
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
//[Route("SeaExportFeeLook")]
|
|
|
|
|
//public DataResult SeaExportFeeLook([FromQuery] string id)
|
|
|
|
|
//{
|
|
|
|
|
// var res = _invokeService.SeaExportFeeLook(id);
|
|
|
|
|
// return res;
|
|
|
|
|
//}
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 费用锁定解锁
|
|
|
|
|
///// </summary>
|
|
|
|
|
///// <param name="id">主键id</param>
|
|
|
|
|
///// <returns></returns>
|
|
|
|
|
//[HttpGet]
|
|
|
|
|
//[Route("SeaExportFeeUnLook")]
|
|
|
|
|
//public DataResult SeaExportFeeUnLook([FromQuery] string id)
|
|
|
|
|
//{
|
|
|
|
|
// var res = _invokeService.SeaExportFeeUnLook(id);
|
|
|
|
|
// return res;
|
|
|
|
|
//}
|
|
|
|
|
}
|