1
This commit is contained in:
@@ -158,8 +158,13 @@ namespace Tnb.WarehouseMgr
|
|||||||
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == input.data[nameof(WmsDelivery.startlocation_id)].ToString());
|
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.id == input.data[nameof(WmsDelivery.startlocation_id)].ToString());
|
||||||
{
|
{
|
||||||
//载具加锁,增加库位信息
|
//载具加锁,增加库位信息
|
||||||
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH { carry_status = ((int)EnumCarryStatus.占用).ToString(),
|
await _db.Updateable<WmsCarryH>().SetColumns(it => new WmsCarryH
|
||||||
is_lock = 1, location_id = input.data[nameof(WmsDelivery.startlocation_id)].ToString(), location_code = location.location_code}).Where(it => it.id == input.data[nameof(WmsDelivery.carry_id)].ToString()).ExecuteCommandAsync();
|
{
|
||||||
|
carry_status = ((int)EnumCarryStatus.占用).ToString(),
|
||||||
|
is_lock = 1,
|
||||||
|
location_id = input.data[nameof(WmsDelivery.startlocation_id)].ToString(),
|
||||||
|
location_code = location.location_code
|
||||||
|
}).Where(it => it.id == input.data[nameof(WmsDelivery.carry_id)].ToString()).ExecuteCommandAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
//所有库位加锁
|
//所有库位加锁
|
||||||
|
|||||||
Reference in New Issue
Block a user