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.
84 lines
2.3 KiB
C#
84 lines
2.3 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.WmsModule.Dtos;
|
|
using DS.WMS.Core.WmsModule.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
/// <summary>
|
|
/// 预约清关
|
|
/// </summary>
|
|
public class WmsClearanceController : ApiController
|
|
{
|
|
private readonly IWmsClearanceService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public WmsClearanceController(IWmsClearanceService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 预约清关列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsClearanceList")]
|
|
public DataResult<List<WmsClearanceListPageModel>> GetWmsClearanceList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 获取预约清关信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsClearanceInfo")]
|
|
public DataResult<WmsClearanceInfoViewModel> GetWmsClearanceInfo([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsClearanceInfo(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 维护预约清关信息
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditWmsClearanceInfo")]
|
|
public DataResult EditWmsClearanceInfo([FromBody] WmsClearanceInput model)
|
|
{
|
|
var res = _invokeService.EditWmsClearanceInfo(model);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 提交审核
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("SubmitWmsClearance")]
|
|
public DataResult SubmitWmsClearance([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.SubmitWmsClearance(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsClearanceGoodsList")]
|
|
public DataResult GetWmsClearanceGoodsList([FromQuery]string id)
|
|
{
|
|
var res = _invokeService.GetWmsClearanceGoodsList(id);
|
|
return res;
|
|
}
|
|
} |