This commit is contained in:
@ -1064,5 +1064,12 @@ namespace Epost.BLL
|
|||||||
return dal.IsFinishWorkArea(block,usercode,area,sku,shopid,orderid);
|
return dal.IsFinishWorkArea(block,usercode,area,sku,shopid,orderid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region 接口根据订单熄灭 一对多标签 修改等待亮灯的状态
|
||||||
|
public bool UpOrdersWaitState(string orderid)
|
||||||
|
{
|
||||||
|
return dal.UpOrdersWaitState(orderid);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3054,5 +3054,22 @@ namespace Epost.DAL
|
|||||||
return dt;
|
return dt;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 接口根据订单熄灭 一对多标签 修改等待亮灯的状态
|
||||||
|
public bool UpOrdersWaitState(string orderid)
|
||||||
|
{
|
||||||
|
string sql = string.Format("update Orders set oprationstate='3' where orderid='" + orderid + "' and state!=1 ");
|
||||||
|
long x = db.UpdateSql(sql);
|
||||||
|
LogHelper.WriteLogInfo("接口灭灯-一对多标签-修改等待亮灯的状态:" + sql + ",执行条数:" + x + "");
|
||||||
|
if (x > 0)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<WebStackScaffolding_LayoutPageFile>~/Views/Shared/_EpostLayoutPage.cshtml</WebStackScaffolding_LayoutPageFile>
|
<WebStackScaffolding_LayoutPageFile>~/Views/Shared/_EpostLayoutPage.cshtml</WebStackScaffolding_LayoutPageFile>
|
||||||
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
|
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
|
||||||
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
|
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
|
||||||
<NameOfLastUsedPublishProfile>E:\WORK\代码管理\T系列\播种\Epost.TestToolsWeb\Properties\PublishProfiles\Toolsweb.pubxml</NameOfLastUsedPublishProfile>
|
<NameOfLastUsedPublishProfile>D:\驿传\Epost\T_DAS_PTL\Epost.TestToolsWeb\Properties\PublishProfiles\Toolsweb.pubxml</NameOfLastUsedPublishProfile>
|
||||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
<Use64BitIISExpress />
|
<Use64BitIISExpress />
|
||||||
<IISExpressSSLPort />
|
<IISExpressSSLPort />
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -28,7 +28,7 @@
|
|||||||
<add key="WebAPIUrl" value="http://localhost:63118/api/WebAPI/ProcessingResult"/>
|
<add key="WebAPIUrl" value="http://localhost:63118/api/WebAPI/ProcessingResult"/>
|
||||||
<add key="ShowMode" value="1" />
|
<add key="ShowMode" value="1" />
|
||||||
<add key="SetupMode" value="\Epost_P\Epost.TestToolsWeb\App_Data\SetupMode.txt" />
|
<add key="SetupMode" value="\Epost_P\Epost.TestToolsWeb\App_Data\SetupMode.txt" />
|
||||||
<add key="CARID" value="HT01" />
|
<add key="CARID" value="" />
|
||||||
<add key="ServerAPIURL" value="http://localhost:63118/api/WebAPI" />
|
<add key="ServerAPIURL" value="http://localhost:63118/api/WebAPI" />
|
||||||
<add key="SleepTime" value="1" />
|
<add key="SleepTime" value="1" />
|
||||||
</appSettings>
|
</appSettings>
|
||||||
|
@ -70,7 +70,15 @@ namespace Epost.DPS.WebService
|
|||||||
//熄灭指定订单任务
|
//熄灭指定订单任务
|
||||||
if (item["Current"].ToString() == "Y")
|
if (item["Current"].ToString() == "Y")
|
||||||
{
|
{
|
||||||
|
List<JobModel> jobWaitList = JobCache.GetPlanJobList().FindAll(p => p.OrderID == item["transderMid"].ToString() && p.State != 1);
|
||||||
|
LogHelper.WriteLogInfo("熄灭指定订单亮灯任务---一对多标签---修改等待亮灯的状态---订单号:" + item["transderMid"].ToString() + "---条数:" + jobWaitList.Count + "");
|
||||||
|
|
||||||
|
JobCache.UpdateJobModelList(jobWaitList, EcommendType.Execute);
|
||||||
|
|
||||||
|
bll.UpOrdersWaitState(item["transderMid"].ToString());
|
||||||
|
|
||||||
List<JobModel> jobList = JobCache.GetPlanJobList().FindAll(p => p.OrderID == item["transderMid"].ToString());
|
List<JobModel> jobList = JobCache.GetPlanJobList().FindAll(p => p.OrderID == item["transderMid"].ToString());
|
||||||
|
|
||||||
LogHelper.WriteLogInfo("熄灭指定订单亮灯任务---订单号:" + item["transderMid"].ToString() + "---条数:" + jobList.Count + "");
|
LogHelper.WriteLogInfo("熄灭指定订单亮灯任务---订单号:" + item["transderMid"].ToString() + "---条数:" + jobList.Count + "");
|
||||||
if (jobList != null && jobList.Count > 0)
|
if (jobList != null && jobList.Count > 0)
|
||||||
{
|
{
|
||||||
@ -142,7 +150,10 @@ namespace Epost.DPS.WebService
|
|||||||
//熄灭全部
|
//熄灭全部
|
||||||
else if (item["Current"].ToString() == "N")
|
else if (item["Current"].ToString() == "N")
|
||||||
{
|
{
|
||||||
|
List<JobModel> jobList = JobCache.GetPlanJobList();
|
||||||
|
|
||||||
|
if (jobList != null && jobList.Count > 0)
|
||||||
|
{
|
||||||
DataTable dt = addbll.GetForcedendAddress();
|
DataTable dt = addbll.GetForcedendAddress();
|
||||||
foreach (DataRow additem in dt.Rows)
|
foreach (DataRow additem in dt.Rows)
|
||||||
{
|
{
|
||||||
@ -167,12 +178,19 @@ namespace Epost.DPS.WebService
|
|||||||
bool b = bll.UpOrdersState("");
|
bool b = bll.UpOrdersState("");
|
||||||
//修改队列状态
|
//修改队列状态
|
||||||
queueBLL.updateOrderQueueState();
|
queueBLL.updateOrderQueueState();
|
||||||
List<JobModel> jobList = JobCache.GetPlanJobList();
|
|
||||||
|
|
||||||
JobCache.UpdateJobModelList(jobList, EcommendType.CompleteAll);
|
JobCache.UpdateJobModelList(jobList, EcommendType.CompleteAll);
|
||||||
|
|
||||||
flag = false;
|
flag = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
msg.Status = "erro";
|
||||||
|
msg.Message = "标签熄灭失败:当前标签未亮灯!";
|
||||||
|
main.msg = msg;
|
||||||
|
resultxml = XmlHelper.ModelToXml(main);
|
||||||
|
LogHelper.WriteLogInfo("标签熄灭失败:当前标签未亮灯!");
|
||||||
|
return resultxml;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user