huanghongfeng
10 小时以前 b7f53ba61fbc1844d7b92ff852762b140d46ab54
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
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_IOutboundService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_WMSServer.Controllers.Outbound
{
    [Route("api/OutboundOrderDetail")]
    [ApiController]
    public class OutboundOrderDetailController : ApiBaseController<IOutboundOrderDetailService, Dt_OutboundOrderDetail>
    {
        public OutboundOrderDetailController(IOutboundOrderDetailService service) : base(service)
        {
        }
 
        [HttpPost, Route("AutoLockOutboundStock")]
        public WebResponseContent LockOutboundStock(int orderDetailId)
        {
            return Service.LockOutboundStock(orderDetailId);
        }
 
        [HttpPost, Route("LockOutboundStock")]
        public WebResponseContent LockOutboundStock(int id, [FromBody] List<StockSelectViewDTO> stockSelectViews)
        {
            return Service.LockOutboundStock(id, stockSelectViews);
        }
 
        [HttpPost, Route("LockOutboundStocks")]
        public WebResponseContent LockOutboundStocks([FromBody] int[] keys)
        {
            return Service.LockOutboundStock(keys);
        }
 
        [HttpPost, Route("RevokeLockOutboundStock")]
        public WebResponseContent RevokeLockOutboundStock(int id)
        {
            return Service.RevokeLockOutboundStock(id);
        }
    }
}