退舱审核时排除更新退舱审核任务挂起标识

dev
cjy 3 weeks ago
parent 06d0f407d3
commit 71575b8bad

@ -484,8 +484,8 @@ namespace DS.WMS.Core.Op.Method
x.RefundTag,x.RefundReason,x.RefundRemark,x.OrderProgress x.RefundTag,x.RefundReason,x.RefundRemark,x.OrderProgress
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
//任务交互表 提交退舱任务待处理流程变更为挂起 //任务交互表 提交退舱任务待处理流程变更为挂起 11107排除退舱审核任务
var taskList = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == req.Id && x.TaskStatus == TaskStatusEnum.Create).ToListAsync(); var taskList = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == req.Id && x.TaskStatus == TaskStatusEnum.Create && x.TaskType != TaskBaseTypeEnum.RETURN_CABIN_AUDIT).ToListAsync();
if (taskList.IsNotNull() && taskList.Count > 0) if (taskList.IsNotNull() && taskList.Count > 0)
{ {
foreach (var item in taskList) foreach (var item in taskList)
@ -495,7 +495,7 @@ namespace DS.WMS.Core.Op.Method
await tenantDb.Updateable(taskList).ExecuteCommandAsync(); await tenantDb.Updateable(taskList).ExecuteCommandAsync();
} }
//任务台主表 //任务台主表
var taskbaseList = await tenantDb.Queryable<TaskBaseInfo>().Where(x => x.OUT_BS_NO == req.Id && x.STATUS == TaskStatusEnum.Create.ToString()).ToListAsync(); var taskbaseList = await tenantDb.Queryable<TaskBaseInfo>().Where(x => x.OUT_BS_NO == req.Id && x.STATUS == TaskStatusEnum.Create.ToString() && x.TASK_TYPE != TaskBaseTypeEnum.RETURN_CABIN_AUDIT.ToString()).ToListAsync();
if (taskbaseList.IsNotNull() && taskbaseList.Count > 0) if (taskbaseList.IsNotNull() && taskbaseList.Count > 0)
{ {
foreach (var item in taskbaseList) foreach (var item in taskbaseList)
@ -597,7 +597,7 @@ namespace DS.WMS.Core.Op.Method
x.IsRefund, x.IsRefund,
}).ExecuteCommandAsync(); }).ExecuteCommandAsync();
//任务交互表 提交退舱任务待处理流程变更为取消 //任务交互表 提交退舱任务待处理流程变更为取消
var taskList = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == callback.BusinessId).ToListAsync(); var taskList = await tenantDb.Queryable<BusinessTask>().Where(x => x.BusinessId == callback.BusinessId && x.TaskStatus != TaskStatusEnum.Cancel).ToListAsync();
if (taskList.IsNotNull() && taskList.Count > 0) if (taskList.IsNotNull() && taskList.Count > 0)
{ {
foreach (var item in taskList) foreach (var item in taskList)
@ -607,7 +607,7 @@ namespace DS.WMS.Core.Op.Method
await tenantDb.Updateable(taskList).ExecuteCommandAsync(); await tenantDb.Updateable(taskList).ExecuteCommandAsync();
} }
//任务台主表 //任务台主表
var taskbaseList = await tenantDb.Queryable<TaskBaseInfo>().Where(x => x.OUT_BS_NO == callback.BusinessId).ToListAsync(); var taskbaseList = await tenantDb.Queryable<TaskBaseInfo>().Where(x => x.OUT_BS_NO == callback.BusinessId && x.STATUS != TaskStatusEnum.Cancel.ToString()).ToListAsync();
if (taskbaseList.IsNotNull() && taskbaseList.Count > 0) if (taskbaseList.IsNotNull() && taskbaseList.Count > 0)
{ {
foreach (var item in taskbaseList) foreach (var item in taskbaseList)

Loading…
Cancel
Save