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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_IBasicRepository;
using WIDESEA_IStockRepository;
using WIDESEA_IStockService;
using WIDESEA_Model;
using WIDESEA_Model.Models;
using WIDESEA_Model.Models.System.Reponse;
using WIDESEA_Model.Models.System.Request;
 
namespace WIDESEA_WMSServer.Controllers.Stock
{
    [Route("api/StockInfo")]
    [ApiController]
    public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo>
    {
        public StockInfoController(IStockInfoService service) : base(service)
        {
        }
 
        [HttpPost, Route("GetAllStockViews"),AllowAnonymous]
        public List<StockViewDTO> GetAllStockViews()
        {
            return Service.Repository.GetAllStockViews();
        }
 
        [HttpPost, Route("GetStockSelectViews"), AllowAnonymous]
        public List<StockSelectViewDTO> GetStockSelectViews([FromBody]string materielCode)
        {
            return Service.GetStockSelectViews(materielCode);
        }
        [HttpPost, Route("GetPalletStockInfo"), AllowAnonymous]
        public Dt_StockInfo GetPalletStockInfo([FromBody] string roadwayNo)
        {
            return Service.Repository.GetPalletStockInfo(roadwayNo);
        }
 
        /// <summary>
        /// 立库WMS库存信息接口,供上游系统调用
        /// </summary>
        /// <param name="inventoryQueryRequest"></param>
        /// <returns></returns>
        [HttpPost, Route("inventoryQuery"), AllowAnonymous]
        public InventoryQueryResponse InventoryQuery([FromBody] string inventoryQueryRequest)
        {
            return Service.Repository.InventoryQuery(inventoryQueryRequest);
        }
 
 
        /// <summary>
        /// 立库WMS冻结/解冻信息接口,供上游系统调用
        /// </summary>
        /// <param name="freezeRequest"></param>
        /// <returns></returns>
        [HttpPost, Route("freezeByCustomer"), AllowAnonymous]
        public freezeByCustomerResponse freezeByCustomer([FromBody] string freezeRequest)
        {
             return Service.Repository.freezeByCustomer(freezeRequest);
 
        }
 
    }
}