using Microsoft.AspNetCore.Mvc; using WIDESEA_BusinessServices; using WIDESEA_Core.BaseController; using WIDESEA_DTO.Order; using WIDESEA_IBusinessServices; using WIDESEA_IOrderServices; using WIDESEA_Model.Models; using WIDESEA_Model.Models.Basic; using WIDESEA_Model.Models.Order; using WIDESEAWCS_BasicInfoService; namespace WIDESEA_WMSServer.Controllers { [Route("api/OutboundOrder")] [ApiController] public class OutboundOrderController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; public OutboundOrderController(IDt_OutboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; } /// /// 获取出库单据信息 /// /// /// [HttpPost, AllowAnonymous, Route("GetOutboundOrder")] public WebResponseContent GetOutboundOrder([FromBody]OutboundOrderGetDTO outboundOrderGetDTO) { return Service.GetOutboundOrder(outboundOrderGetDTO); } [HttpPost, AllowAnonymous, Route("GetOutboundOrderDetail")] public WebResponseContent GetOutboundOrder(int id) { return Service.GetOutboundOrder(id); } } }