This commit is contained in:
FanLian
2023-08-10 09:29:02 +08:00
parent 8fdbebb127
commit 943cd5a0b2

View File

@@ -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();