金蝶二开接口对接

This commit is contained in:
18942506660
2024-10-18 16:48:52 +08:00
parent 958578d8a7
commit 747257c7e7
10 changed files with 362 additions and 11 deletions

View File

@@ -64,12 +64,13 @@ namespace WMS.Web.Api.Controllers
private readonly ILingXingService _lingXingService;
private readonly IProductInventoryService _productInventoryService;
private readonly IJuShuiTanService _juShuiTanService;
private readonly IErpInventoryService _erpInventoryService;
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, IJuShuiTanService juShuiTanService)
, IProductInventoryService productInventoryService, IJuShuiTanService juShuiTanService, IErpInventoryService erpInventoryService)
{
_inStockService = inStockService;
_redisConcurrentProcessService = redisConcurrentProcessService;
@@ -96,6 +97,7 @@ namespace WMS.Web.Api.Controllers
_lingXingService = lingXingService;
_productInventoryService = productInventoryService;
_juShuiTanService = juShuiTanService;
_erpInventoryService = erpInventoryService;
}
[HttpGet]
@@ -110,12 +112,14 @@ 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();
//await _juShuiTanService.GetTest();
string codes = "AD";
var b = await _erpInventoryService.Get(codes);
//LingXingResponse<LingXingStockResponse> r = new LingXingResponse<LingXingStockResponse>();