using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Org.BouncyCastle.Utilities.Collections;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_Core.Helper;
using WIDESEA_IOutboundService;
using WIDESEA_Model.Models;
namespace WIDESEA_WMSServer.Controllers.Outbound
{
///
/// 出库详情
///
[Route("api/OutStockLockInfo")]
[ApiController]
public class OutStockLockInfoController : ApiBaseController
{
public OutStockLockInfoController(IOutStockLockInfoService service) : base(service)
{
}
[HttpGet("getOutStockLockInfo")]
public async Task GetOutStockLockInfo(string orderDetailId)
{
var list = await Service.GetByOrderDetailId(orderDetailId.ObjToInt());
return WebResponseContent.Instance.OK(null, list);
}
[HttpPost, HttpGet, Route("GetByOrderDetailId"), AllowAnonymous]
public List GetByOrderDetailId(int orderDetailId)
{
return Service.GetByOrderDetailId(orderDetailId, null);
}
}
}