duyongjia
2024-12-29 9a0acba23c5b5095be2a89b8ca190fe5202c2ea6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Inbound;
using WIDESEA_IInboundService;
using WIDESEA_Model;
using WIDESEA_Model.Models;
using WIDESEA_Model.Models.System.Request;
 
namespace WIDESEA_WMSServer.Controllers.Inbound
{
    [Route("api/InboundOrder")]
    [ApiController]
    public class InboundOrderController : ApiBaseController<IInboundOrderService, Dt_InboundOrder>
    {
        public InboundOrderController(IInboundOrderService service) : base(service)
        {
        }
 
        [HttpPost, Route("AddInboundOrder"), AllowAnonymous]
        public WebResponseContent AddInboundOrder([FromBody] InboundOrderAddDTO orderAddDTO)
        {
            return Service.AddInboundOrder(orderAddDTO);
        }
 
        [HttpPost, Route("GetInboundOrder"), AllowAnonymous]
        public WebResponseContent GetInboundOrder([FromBody] InboundOrderGetDTO inboundOrderGetDTO)
        {
            return Service.GetInboundOrder(inboundOrderGetDTO);
        }
        [HttpPost, Route("GetInboundOrderDetail"), AllowAnonymous]
        public WebResponseContent GetInboundOrderDetail([FromBody] string OrderNo)
        {
            return Service.GetInboundOrderDetail(OrderNo);
        }
 
        /// <summary>
        /// 立库退回信息接口,供上游系统调用,立库生成退货任务
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("returnInventory"), AllowAnonymous]
        public ReturnInventoryResponse returnInventory([FromBody] string inventoryRequest)
        {
           
            return Service.returnInventory(inventoryRequest);
        }
    }
}