8线入中储仓接口
This commit is contained in:
@@ -2296,7 +2296,7 @@ namespace Tnb.WarehouseMgr
|
||||
};
|
||||
string endLocId = multiList[i].endlocation_id;
|
||||
|
||||
WmsCarryH wmsCarryH = await _db.Queryable<WmsCarryH>().Where(r => r.id == carry.id).FirstAsync();
|
||||
WmsCarryH wmsCarryH = await _db.Queryable<WmsCarryH>().Where(r => r.id == carry.id).FirstAsync();
|
||||
// 同步料架下的载具位置
|
||||
if (wmsCarryH != null && wmsCarryH.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID)
|
||||
{
|
||||
@@ -3119,7 +3119,7 @@ namespace Tnb.WarehouseMgr
|
||||
try
|
||||
{
|
||||
List<WmsCarryD> wmsCarryCodes = _db.Queryable<WmsCarryD>().Where(r => r.carry_id == rackid).ToList();
|
||||
|
||||
|
||||
int move_num = 6;
|
||||
string[] startlocations = new string[2] { WmsWareHouseConst.ZZCSSX111011, WmsWareHouseConst.ZZCSSX111012 };
|
||||
BasLocation startLocation = null;
|
||||
@@ -3139,7 +3139,7 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
|
||||
// 每6个重新获取一次起点
|
||||
if (index % move_num == 0)
|
||||
if (index % move_num == 0)
|
||||
{
|
||||
startLocation = await _db.Queryable<BasLocation>().Where(r => startlocations.Contains(r.id)).OrderBy("is_lock, task_nums, location_code").FirstAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user