This commit is contained in:
@ -917,9 +917,9 @@ namespace Epost.BLL
|
||||
return dal.GetSumList_Echo(matchid, sku, block, area);
|
||||
}
|
||||
//查询sku对应的所有任务
|
||||
public DataTable getOrderListBysku(string block, string sku)
|
||||
public DataTable getOrderListBysku(string block, string sku,string area)
|
||||
{
|
||||
return dal.getOrderListBysku(block, sku);
|
||||
return dal.getOrderListBysku(block, sku,area);
|
||||
}
|
||||
|
||||
public bool UpOrderStateBybat(string id)
|
||||
|
@ -204,9 +204,9 @@ namespace Epost.BLL
|
||||
#endregion
|
||||
|
||||
#region 删除que
|
||||
public bool DelQueueOrder(string sku,string block)
|
||||
public bool DelQueueOrder(string sku,string block,string area)
|
||||
{
|
||||
return dal.DelQueueOrder(sku,block);
|
||||
return dal.DelQueueOrder(sku,block,area);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
@ -971,7 +971,7 @@ namespace Epost.BLL
|
||||
{
|
||||
List<LabelParamModel> list = new List<LabelParamModel>();
|
||||
//查询当前通道sku是否有任务
|
||||
DataTable dt = orderbll.getOrderListBysku(block, sku);
|
||||
DataTable dt = orderbll.getOrderListBysku(block, sku, area);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
// 将当前通道所有sku正在亮的设备熄灭
|
||||
@ -1005,7 +1005,7 @@ namespace Epost.BLL
|
||||
model = relist.FirstOrDefault();
|
||||
JobCache.UpdateJobModelList(relist, EcommendType.Complete);
|
||||
//删除Orderqueue中sku的记录
|
||||
bool bo = queueBLL.DelQueueOrder(sku, block);
|
||||
bool bo = queueBLL.DelQueueOrder(sku, block, area);
|
||||
LogHelper.WriteLogInfo("删除queue返回" + bo);
|
||||
}
|
||||
else
|
||||
|
@ -509,7 +509,7 @@ namespace Epost.BLL
|
||||
{
|
||||
List<LabelParamModel> list = new List<LabelParamModel>();
|
||||
//查询当前通道sku是否有任务
|
||||
DataTable dt = orderbll.getOrderListBysku(block, sku);
|
||||
DataTable dt = orderbll.getOrderListBysku(block, sku,area);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
// 将当前通道所有sku正在亮的设备熄灭
|
||||
@ -539,14 +539,14 @@ namespace Epost.BLL
|
||||
|
||||
//删除缓存中sku记录
|
||||
List<JobModel> jobList = JobCache.GetPlanJobList();
|
||||
List<JobModel> relist = jobList.FindAll(m => m.Sku == sku && m.Block == block);
|
||||
List<JobModel> relist = jobList.FindAll(m => m.Sku == sku && m.Block == block&&m.Area==area);
|
||||
JobModel model = new JobModel();
|
||||
if (relist.Any())
|
||||
{
|
||||
model = relist.FirstOrDefault();
|
||||
JobCache.UpdateJobModelList(relist, EcommendType.Complete);
|
||||
//删除Orderqueue中sku的记录
|
||||
bool bo = queueBLL.DelQueueOrder(sku, block);
|
||||
bool bo = queueBLL.DelQueueOrder(sku, block, area);
|
||||
LogHelper.WriteLogInfo("删除queue返回" + bo);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user