chengsc
2024-11-01 6aa034c0c53cc7d49302dea596864fc61c705dda
Wms/Wms/Controllers/PdaAsnController.cs
@@ -1,10 +1,12 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Model.ModelVm;
using Model.ModelVm.BllAsnVm;
using Model.ModelVm.PdaVm;
using System;
using System.Security.Claims;
using Wms.Tools;
using WMS.Entity.BllAsnEntity;
using WMS.IBLL.IPdaServer;
@@ -17,10 +19,12 @@
    {
        #region 依赖注入
        private readonly IPdaAsnServer _PdaAsnSvc;
        private readonly ApiUrlConfig _config; //接口交互路径
        public PdaAsnController(IPdaAsnServer pdaAsnSvc)
        public PdaAsnController(IPdaAsnServer pdaAsnSvc, IOptions<ApiUrlConfig> setting)
        {
            _PdaAsnSvc = pdaAsnSvc;
            _PdaAsnSvc = pdaAsnSvc;
            _config = setting.Value;
        }
        #endregion
@@ -524,7 +528,7 @@
        {
            try
            {
                var models = _PdaAsnSvc.GetBindBoxInfos(model);
                var models = _PdaAsnSvc.GetBindBoxInfos(model, _config.BoxHost + _config.FuMaGetBoxUrl);
                return Ok(new { code = 0, msg = "标签箱码信息", data = models });
            }
@@ -544,7 +548,7 @@
        {
            try
            {
                var models = _PdaAsnSvc.GetBindBoxInfo2s(model);
                var models = _PdaAsnSvc.GetBindBoxInfo2s(model, _config.BoxHost + _config.FuMaGetBoxUrl);
                return Ok(new { code = 0, msg = "标签箱码信息", data = models });
            }