From 943cd5a0b22ba9bbd188e691e44a64f0ebc5f31e Mon Sep 17 00:00:00 2001 From: FanLian Date: Thu, 10 Aug 2023 09:29:02 +0800 Subject: [PATCH] bug --- WarehouseMgr/Tnb.WarehouseMgr/WmsPointService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPointService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPointService.cs index 73a171d6..268e4137 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPointService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPointService.cs @@ -51,16 +51,16 @@ namespace Tnb.WarehouseMgr { points.ForEach(x => { - if (!carryStdDic.Keys.Contains(x.carrystd_id)) throw new AppFriendlyException($"第{points.IndexOf(x) + 1}行的载具规格有误", 500); + x.id = SnowflakeIdHelper.NextId(); x.org_id = _userManager.User.OrganizeId; x.is_lock = 0; - x.carrystd_id = carryStdDic[x.carrystd_id].ToString() ?? throw new AppFriendlyException($"第{points.IndexOf(x) + 1}行的载具规格有误", 500); + x.create_id = _userManager.UserId; x.create_time = DateTime.Now; x.modify_id = null; x.modify_time = null; - x.is_mix = 1; + }); } row = await _db.Insertable(points).ExecuteCommandAsync();