This commit is contained in:
jl
2025-06-26 20:31:02 +08:00
parent de122526a2
commit 3042ef9370
5 changed files with 107 additions and 39 deletions

View File

@ -3,11 +3,13 @@ using Epost.DAL.Cache;
using Epost.DAL.Enum;
using Epost.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using static Epost.DAL.Enum.LightColor;
@ -181,6 +183,41 @@ namespace Epost.BLL
else if (data.Uid == "09" + "-" + data.Address)//完成灯拍下
{
LogHelper.WriteLogInfo(data.Address+"end拍下");
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
bool bo = orderbll.IsSkuFinishWork("", model.Matchid);
if (bo)
{
LogHelper.WriteLogInfo("波次拣选完成");
List<UserCodeModel> ulist = UserCacheDAL.GetUserCodeList();
UserCacheDAL.UpdateUserCodeList(ulist, EUserCommend.Execute);//删除波次信息
}
Thread.Sleep(30);
#region sku
JobCache.UpdateJobModelList(offList, EcommendType.Execute);
#endregion
}
}
else if (data.Result == "4")//■按键拍下
{
@ -263,21 +300,7 @@ namespace Epost.BLL
comBLL.DISPLAY_JOB(lamodel);
#endregion
#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
Thread.Sleep(30);
#region sku
JobCache.UpdateJobModelList(offList, EcommendType.Execute);
#endregion
}