Merge branch 'master' into iot

This commit is contained in:
zhougf committed 2024-03-05 21:42:56 +08:00
commit a87e5e5ff9
8 files changed
+76 -41

No files matched your search

+11
View File
@@ -1,4 +1,6 @@
using System.Collections.Generic;
using AutoMapper;
using HHWMS.Web.Models;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
@@ -30,6 +32,15 @@ namespace HHWMS.Web
[HttpPost]
public IActionResult RequestIn(WcsRequest request)
{
var inv = new List<Inventory>();
for (int i = 0; i < 10; i++)
inv.Add(new Inventory
{
ContainerCode = "test" + i
});
//_unitwork.BatchAdd<Inventory>(inv);
_unitwork.DeleteById<Inventory>(1441);
//_unitwork.BatchUpdate<Inventory>(x => x.ID > 1030, x=>new Inventory { Batch = "test"});
return ApiResult();
}
@@ -2,7 +2,6 @@ using System.Collections.Generic;
using System.Linq;
using HHWMS.Web.Models;
using WalkingTec.Mvvm.Core;
using Z.EntityFramework.Plus;
namespace HHWMS.Web
{