测试接口

This commit is contained in:
tongfei
2023-11-28 15:02:42 +08:00
parent 2b9d17dcc0
commit 3aeca7f74d

View File

@@ -89,10 +89,12 @@ namespace WMS.Web.Api.Controllers
//return JsonConvert.SerializeObject(result.Data); //return JsonConvert.SerializeObject(result.Data);
var tttt = new List<string>() { "ABCD14200999" }; var result = await this._inStockTaskService.Sysn();
var boxInventorys = await _boxInventoryRepositories.Get(142);
var data = new List<BoxInventory>(); //var tttt = new List<string>() { "ABCD14200999" };
//var boxInventorys = await _boxInventoryRepositories.Get(142);
//var data = new List<BoxInventory>();
//var entity = new BoxInventory(); //var entity = new BoxInventory();
//entity.Id = 34; //entity.Id = 34;
@@ -110,15 +112,15 @@ namespace WMS.Web.Api.Controllers
//det.Qty = 2; //det.Qty = 2;
//entity.Details.Add(det); //entity.Details.Add(det);
boxInventorys.Details.ForEach(x=> //boxInventorys.Details.ForEach(x=>
{ //{
x.SerialNumbers.RemoveAll(t => tttt.Contains(t)); // x.SerialNumbers.RemoveAll(t => tttt.Contains(t));
//x.SerialNumbers.AddRange(tttt); // //x.SerialNumbers.AddRange(tttt);
x.Qty = 3; // x.Qty = 3;
}); //});
data.Add(boxInventorys); //data.Add(boxInventorys);
var result= await _boxInventoryRepositories.UpdateRange(data); //var result= await _boxInventoryRepositories.UpdateRange(data);
return ""; return "";