This commit is contained in:
tongfei
2023-11-17 15:35:27 +08:00
3 changed files with 7 additions and 4 deletions

View File

@@ -28,9 +28,10 @@ namespace WMS.Web.Api.Controllers
private readonly IOpsService _opsService;
private readonly IBoxService _boxService;
private readonly IOutStockTaskRepositories _outStockTaskRepositories;
private readonly IOutStockTaskService _outStockTaskService;
public TestController(IErpService erpService, IInStockTaskService inStockTaskService,
IBasicsRepositories transactionRepositories, IOpsService opsService, IBoxService boxService,
IOutStockTaskRepositories outStockTaskRepositories)
IOutStockTaskRepositories outStockTaskRepositories, IOutStockTaskService outStockTaskService)
{
this._erpService = erpService;
this._inStockTaskService = inStockTaskService;
@@ -38,18 +39,20 @@ namespace WMS.Web.Api.Controllers
_opsService = opsService;
_boxService = boxService;
_outStockTaskRepositories = outStockTaskRepositories;
_outStockTaskService = outStockTaskService;
}
[HttpGet]
[Route("hj")]
public async Task<string> TestHJ()
{
await _outStockTaskService.Sync(null);
//var t=await _outStockTaskRepositories.Get(1);
// t.Details[0].Remark = "sdf";
// t.Details[0].ErpDetails[0].SaleBillNo = "sdfsfsbbbb";
// var s = await _outStockTaskRepositories.Edit(t);
// await _boxService.Sync();
var res = await this._erpService.BillQueryForAssembledAppOutStock_Dassembly(null,DateTime.Now.AddDays(-300));
//var res = await this._erpService.BillQueryForAssembledAppOutStock_Dassembly(null,DateTime.Now.AddDays(-300));
//var result= await this._erpService.BillQueryForPurchaseInStock();
//var result = await this._erpService.BillQueryForOrg();
//var result = await this._erpService.BillQueryForMaterial();