This commit is contained in:
FanLian
2023-06-26 15:37:22 +08:00
parent cde7d5bb3b
commit a3b6e3f8d0

View File

@@ -87,8 +87,8 @@ namespace Tnb.WarehouseMgr
feedBox.qty = carryMaterial.qty; feedBox.qty = carryMaterial.qty;
feedBox.batch = carryMaterial?.code_batch!; feedBox.batch = carryMaterial?.code_batch!;
feedBox.status = carry.status; feedBox.status = carry.status;
feedBox.create_id = _userManager.UserId; feedBox.modify_id = _userManager.UserId;
feedBox.create_time = DateTime.Now; feedBox.modify_time = DateTime.Now;
var row = await _db.Updateable(feedBox).ExecuteCommandAsync(); var row = await _db.Updateable(feedBox).ExecuteCommandAsync();
//更新投料记录条码表 //更新投料记录条码表
if (carryCodes != null) if (carryCodes != null)
@@ -120,11 +120,11 @@ namespace Tnb.WarehouseMgr
{ {
if (carry == null) if (carry == null)
{ {
throw new AppFriendlyException("没有可用的载具", 500); throw new AppFriendlyException("没有可用的载具", 500);
} }
if (feedBox == null) if (feedBox == null)
{ {
throw new AppFriendlyException("没有可用的新载具", 500); throw new AppFriendlyException("没有可用的投料箱", 500);
} }
} }