测试接口
This commit is contained in:
@@ -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 "";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user