dengjunjie
6 天以前 3ca1401ff81f256f54533110b48c68e7fa6bfca5
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
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_IWMsInfoServices;
using WIDESEA_Model.Models;
using WIDESEA_WMsInfoServices;
 
namespace WIDESEA_WMSServer.Controllers.WMSInfo
{
    [Route("api/[controller]")]
    [ApiController]
    public class InventoryInfoController : ApiBaseController<IInventoryInfoService, Dt_InventoryInfo>
    {
        public InventoryInfoController(IInventoryInfoService service) : base(service)
        {
        }
        /// <summary>
        /// 数字孪生获取库存信息
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetInventory"), AllowAnonymous]
        public object GetInventory()
        {
            WebResponseContent content = Service.GetInventory();
            if (!content.Status)
            {
                return new
                {
                    code = "404",
                    note = content.Message
                };
            }
            else
            {
                return new
                {
                    code = "000",
                    note = "成功",
                    date = content.Data
                };
            }
        }
 
    }
}