一般入库 更新临时条码表 状态is_end
This commit is contained in:
@@ -57,7 +57,7 @@ public partial class WmsTempCode : BaseEntity<string>
|
||||
/// <summary>
|
||||
/// 是否结束
|
||||
/// </summary>
|
||||
public string? is_end { get; set; }
|
||||
public int? is_end { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需求单据ID
|
||||
|
||||
@@ -239,6 +239,8 @@ namespace Tnb.WarehouseMgr
|
||||
var orgId = _userManager.User.OrganizeId;
|
||||
await _db.Insertable(carryCodes).ExecuteCommandAsync();
|
||||
await _db.Insertable(instockCOdes).CallEntityMethod(it => it.Create(orgId)).ExecuteCommandAsync();
|
||||
// 更新临时条码表 状态is_end
|
||||
await _db.Updateable<WmsTempCode>().SetColumns(it => new WmsTempCode { is_end = 1 }).Where(it => instockCOdes.Select(x => x.barcode).Contains(it.barcode)).ExecuteCommandAsync();
|
||||
await _wareHouseService.GenInStockTaskHandleAfter(preTaskUpInput,
|
||||
it => new WmsCarryH { carry_code = input.data[nameof(WmsCarryH.carry_code)].ToString()!, is_lock = 1, carry_status = ((int)EnumCarryStatus.占用).ToString(), location_id = preTaskUpInput.CarryStartLocationId, location_code = preTaskUpInput.CarryStartLocationCode },
|
||||
it => new BasLocation { is_lock = 1, is_use = (int)EnumCarryStatus.占用 });
|
||||
|
||||
Reference in New Issue
Block a user