聚水潭接口对接

This commit is contained in:
18942506660
2024-10-18 14:45:42 +08:00
parent 46817280e7
commit 6189bc2912
15 changed files with 607 additions and 13 deletions

View File

@@ -63,12 +63,13 @@ namespace WMS.Web.Api.Controllers
private IInStockService _inStockService;
private readonly ILingXingService _lingXingService;
private readonly IProductInventoryService _productInventoryService;
private readonly IJuShuiTanService _juShuiTanService;
public TestController(IErpService erpService, IInStockTaskService inStockTaskService, IBoxInventoryRepositories boxInventoryRepositories, IRedisConcurrentProcessService redisConcurrentProcessService,
IBasicsRepositories transactionRepositories, IOpsService opsService, IBoxService boxService, IBasicsRepositories basicsRepositories, IMemoryCache memoryCache,
IOutStockTaskRepositories outStockTaskRepositories, IOutStockTaskService outStockTaskService, IOptions<AppOptions> options, ILoginService loginService, ISendMessageService sendMessageService,
ITakeStockService takeStockService, ITakeStockRepositories takeStockRepositories, IOutStockService outStockService, IInStockTaskRepositories inStockTaskRepositories,
IWebHostEnvironment env, IMaterialService materialService, IOutStockRepositories outStockRepositories, IInStockService inStockService, ILingXingService lingXingService
, IProductInventoryService productInventoryService)
, IProductInventoryService productInventoryService, IJuShuiTanService juShuiTanService)
{
_inStockService = inStockService;
_redisConcurrentProcessService = redisConcurrentProcessService;
@@ -94,6 +95,7 @@ namespace WMS.Web.Api.Controllers
_env = env;
_lingXingService = lingXingService;
_productInventoryService = productInventoryService;
_juShuiTanService = juShuiTanService;
}
[HttpGet]
@@ -108,10 +110,12 @@ namespace WMS.Web.Api.Controllers
//var m2 = my2.Object;
//var md = m2.code;
List<(string orgCode, string stockCode)> request = new List<(string orgCode, string stockCode)>();
request.Add(("101", "CK001"));
request.Add(("101", "CK002"));
var list = await _erpService.BillQueryForInventory(request);
//List<(string orgCode, string stockCode)> request = new List<(string orgCode, string stockCode)>();
//request.Add(("101", "CK001"));
//request.Add(("101", "CK002"));
//var list = await _erpService.BillQueryForInventory(request);
await _juShuiTanService.GetTest();
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();