退舱任务审核修改

dev
cjy 2 months ago
parent 02811f006c
commit a7af0771b5

@ -122,26 +122,20 @@ namespace DS.WMS.Core.Op.Method
if (info.IsNull())
return await Task.FromResult(DataResult.Failed("不存在的海运出口信息!", MultiLanguageConst.SeaExportExist));
var oldOrder = info.Adapt<SeaExport>();
info.IsRefund = callback.FlowStatus == FlowStatusEnum.Approve ? true : false;
int rows = await tenantDb.Updateable(info).UpdateColumns(x => new
if (callback.FlowStatus == FlowStatusEnum.Approve)
{
x.IsRefund,
}).ExecuteCommandAsync();
await seaComService.SetGoodsStatus("YSTC", callback.BusinessId, tenantDb);
//是否发起退舱确认任务
await seaComService.SetGoodsStatus("YTC", callback.BusinessId, tenantDb);
await seaComService.SaveSeaExportLogAsync(new SeaExportSaveLog()
}
else
{
OperateType = "Update",
OldOrder = oldOrder,
NewOrder = info,
SourceCode = "RefundAuditCallbackAsync",
SourceName = "退仓审核完成回调",
}, tenantDb);
await seaComService.SetGoodsStatus("TCBH", callback.BusinessId, tenantDb);
}
return DataResult.Success;
return rows > 0 ? DataResult.Success : DataResult.FailedWithDesc(nameof(MultiLanguageConst.Operation_Failed));
//return rows > 0 ? DataResult.Success : DataResult.FailedWithDesc(nameof(MultiLanguageConst.Operation_Failed));
}
}
}

Loading…
Cancel
Save