注释修改
This commit is contained in:
@@ -81,6 +81,7 @@ namespace Tnb.WarehouseMgr
|
||||
var carryCodes = await _db.Queryable<WmsCarryCode>().Where(it => it.carry_id == carryId).ToListAsync();
|
||||
if (carry != null && feedBox != null)
|
||||
{
|
||||
//更新投料箱
|
||||
feedBox.material_id = carryMaterial.material_id;
|
||||
feedBox.material_code = carryMaterial.material_code;
|
||||
feedBox.qty = carryMaterial.qty;
|
||||
@@ -89,6 +90,7 @@ namespace Tnb.WarehouseMgr
|
||||
feedBox.create_id = _userManager.UserId;
|
||||
feedBox.create_time = DateTime.Now;
|
||||
var row = await _db.Updateable(feedBox).ExecuteCommandAsync();
|
||||
//更新投料记录条码表
|
||||
foreach (var carryCode in carryCodes)
|
||||
{
|
||||
WmsFeedingrecordCode wmsFeedingrecordCode = new();
|
||||
@@ -106,6 +108,7 @@ namespace Tnb.WarehouseMgr
|
||||
wmsFeedingrecordCode.create_time = DateTime.Now;
|
||||
row = await _db.Insertable(wmsFeedingrecordCode).ExecuteCommandAsync();
|
||||
}
|
||||
//更新载具
|
||||
row = await UpdateNullCarry(carry);
|
||||
isOk = (row > 0);
|
||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||
|
||||
Reference in New Issue
Block a user