This commit is contained in:
@ -183,28 +183,25 @@ namespace Epost.BLL
|
||||
else if (data.Uid == "09" + "-" + data.Address)//完成灯拍下
|
||||
{
|
||||
LogHelper.WriteLogInfo(data.Address+"end拍下");
|
||||
|
||||
#region 修改任务队列状态
|
||||
OrdersQueueModel qumodel = new OrdersQueueModel();
|
||||
qumodel.State = 3;
|
||||
qumodel.Taskblock = block;
|
||||
qumodel.Taskarea = area;
|
||||
qumodel.UserCode = data.Info;
|
||||
queueBLL.UpdateQueueTaskArea_Car(qumodel);
|
||||
#endregion
|
||||
List<JobModel> offList = jobList.FindAll(m => m.Block == block && m.Area == area && m.Address == data.Address && m.ControlIP == data.IP && m.State == 3 );
|
||||
|
||||
if (offList.Any())
|
||||
{
|
||||
JobModel model = offList.FirstOrDefault();
|
||||
|
||||
#region 修改任务队列状态
|
||||
OrdersQueueModel qumodel = new OrdersQueueModel();
|
||||
qumodel.State = 3;
|
||||
qumodel.Taskblock = block;
|
||||
qumodel.Taskarea = area;
|
||||
qumodel.Sku = model.Sku;
|
||||
qumodel.Matchid = model.Matchid;
|
||||
qumodel.UserCode = model.UserCode;
|
||||
queueBLL.UpdateQueueTaskArea_Car(qumodel);
|
||||
#endregion
|
||||
JobModel model = offList.FirstOrDefault();
|
||||
List<JobModel> AllList = jobList.FindAll(m => m.Block == block && m.Area == area && m.ControlIP == data.IP && m.State == 3&&m.UserCode== model.UserCode);
|
||||
bool bo = orderbll.IsSkuFinishWork("", model.Matchid);
|
||||
if (bo)
|
||||
{
|
||||
LogHelper.WriteLogInfo("波次拣选完成");
|
||||
orderbll.DelOrder(" and matchid ='" + model.Matchid + "'");
|
||||
List<UserCodeModel> ulist = UserCacheDAL.GetUserCodeList();
|
||||
UserCacheDAL.UpdateUserCodeList(ulist, EUserCommend.Execute);//删除波次信息
|
||||
}
|
||||
|
Reference in New Issue
Block a user