diff --git a/src/WMS.Web.Api/Controllers/TestController.cs b/src/WMS.Web.Api/Controllers/TestController.cs index 4dabf6fc..58776064 100644 --- a/src/WMS.Web.Api/Controllers/TestController.cs +++ b/src/WMS.Web.Api/Controllers/TestController.cs @@ -93,7 +93,10 @@ namespace WMS.Web.Api.Controllers //return JsonConvert.SerializeObject(result.Data); - var result = await this._erpService.BillQueryForSupplier(); + // var result = await this._erpService.BillQueryForSupplier(); + + var result= await this._erpService.BillQueryForTransferDirect(); + var tt = JsonConvert.SerializeObject(result.Data); //var tttt = new List() { "ABCD14200999" }; @@ -243,29 +246,16 @@ namespace WMS.Web.Api.Controllers } /// - /// 测试:同步 + /// 测试:同步入库单 /// /// [HttpGet] [Route("InStock")] public async Task InStock() { - //1.事务 - IDbContextTransaction _transaction = _transactionRepositories.GetTransaction(); - bool isRollback = false; - bool isTransaction = false; - - var billNos = new List(); - billNos.Add("CGDD224207"); - + //3.同步数据 - var result = await _inStockTaskService.SsynPurchaseInStock(billNos, isTransaction); - if (!result.IsSuccess) isRollback = true; - - //4.提交事务 - var isSuccess = _transactionRepositories.CommitTransaction(isRollback, _transaction); - if (!isSuccess) - return Result.ReFailure(result.Message, result.Status); + var result = await _inStockTaskService.Sysn(); return result; } diff --git a/src/WMS.Web.Api/wwwroot/WMS.Web.Api.xml b/src/WMS.Web.Api/wwwroot/WMS.Web.Api.xml index 168a90dc..f7a9a821 100644 --- a/src/WMS.Web.Api/wwwroot/WMS.Web.Api.xml +++ b/src/WMS.Web.Api/wwwroot/WMS.Web.Api.xml @@ -574,7 +574,7 @@ - 测试:同步 + 测试:同步入库单