改配修改

dev
cjy 3 weeks ago
parent 11ca3c341e
commit 55a71c2dde

@ -329,9 +329,10 @@ namespace DS.WMS.Core.Op.Method
{
item.OUT_BS_NO = newKey;
item.STATUS = TaskStatusEnum.Cancel.ToString();
item.STATUS_NAME = TaskStatusEnum.Cancel.EnumDescription();
}
if (taskbaseList.Count > 0)
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.OUT_BS_NO, x.STATUS }).ExecuteCommandAsync();
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.OUT_BS_NO, x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync();
}
var ids = taskbaseList.Select(x => x.Id);
//任务台任务分配表
@ -342,9 +343,10 @@ namespace DS.WMS.Core.Op.Method
{
item.BusinessId = newKey;
item.Status = TaskStatusEnum.Cancel.ToString();
item.StatusName = TaskStatusEnum.Cancel.EnumDescription();
}
if (taskAllocationList.Count > 0)
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.BusinessId, x.Status }).ExecuteCommandAsync();
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.BusinessId, x.Status,x.StatusName }).ExecuteCommandAsync();
}
#endregion
//更新原单信息
@ -499,9 +501,10 @@ namespace DS.WMS.Core.Op.Method
foreach (var item in taskbaseList)
{
item.STATUS = TaskStatusEnum.Pending.ToString();
item.STATUS_NAME = TaskStatusEnum.Pending.EnumDescription();
}
if (taskbaseList.Count > 0)
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS }).ExecuteCommandAsync();
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync();
}
var ids = taskbaseList.Select(x => x.Id);
//任务台任务分配表
@ -511,9 +514,10 @@ namespace DS.WMS.Core.Op.Method
foreach (var item in taskAllocationList)
{
item.Status = TaskStatusEnum.Pending.ToString();
item.StatusName = TaskStatusEnum.Pending.EnumDescription();
}
if (taskAllocationList.Count > 0)
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status }).ExecuteCommandAsync();
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status,x.StatusName }).ExecuteCommandAsync();
}
await seaComService.SetGoodsStatus("YFTC", req.Id, tenantDb);
@ -609,9 +613,10 @@ namespace DS.WMS.Core.Op.Method
foreach (var item in taskbaseList)
{
item.STATUS = TaskStatusEnum.Cancel.ToString();
item.STATUS_NAME = TaskStatusEnum.Cancel.EnumDescription();
}
if (taskbaseList.Count > 0)
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS }).ExecuteCommandAsync();
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync();
}
var ids = taskbaseList.Select(x => x.Id);
//任务台任务分配表
@ -621,9 +626,10 @@ namespace DS.WMS.Core.Op.Method
foreach (var item in taskAllocationList)
{
item.Status = TaskStatusEnum.Cancel.ToString();
item.StatusName = TaskStatusEnum.Cancel.EnumDescription();
}
if (taskAllocationList.Count > 0)
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status }).ExecuteCommandAsync();
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status,x.StatusName }).ExecuteCommandAsync();
}
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
{
@ -656,9 +662,10 @@ namespace DS.WMS.Core.Op.Method
foreach (var item in taskbaseList)
{
item.STATUS = TaskStatusEnum.Create.ToString();
item.STATUS_NAME = TaskStatusEnum.Create.EnumDescription();
}
if (taskbaseList.Count > 0)
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS }).ExecuteCommandAsync();
await tenantDb.Updateable(taskbaseList).UpdateColumns(x => new { x.STATUS,x.STATUS_NAME }).ExecuteCommandAsync();
}
var ids = taskbaseList.Select(x=>x.Id);
//任务台任务分配表
@ -668,9 +675,10 @@ namespace DS.WMS.Core.Op.Method
foreach (var item in taskAllocationList)
{
item.Status = TaskStatusEnum.Create.ToString();
item.StatusName = TaskStatusEnum.Create.EnumDescription();
}
if (taskAllocationList.Count > 0)
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status }).ExecuteCommandAsync();
await tenantDb.Updateable(taskAllocationList).UpdateColumns(x => new { x.Status,x.StatusName }).ExecuteCommandAsync();
}
await seaComService.SetGoodsStatus("TCBH", callback.BusinessId, tenantDb);
}

Loading…
Cancel
Save