退舱任务审核修改

dev
cjy 2 months ago
parent 02811f006c
commit a7af0771b5

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