手动更新海运出口订舱、VGM标识

dev
cjy 1 month ago
parent 29f9f69f54
commit 8b48b4b3f6

@ -86,6 +86,14 @@ namespace DS.WMS.Core.Op.Method
{
order.IsCustoms = true;
}
if (code == "YDC")
{
order.IsBooking = true;
}
if (code == "YFVGM")
{
order.IsVGM = true;
}
}
else
{
@ -97,12 +105,22 @@ namespace DS.WMS.Core.Op.Method
{
order.IsCustoms = false;
}
if (code == "YDC")
{
order.IsBooking = false;
}
if (code == "YFVGM")
{
order.IsVGM = false;
}
}
//order.Note = "更新主单货物状态";
await tenantDb.Updateable(order)
.UpdateColumnsIF(code == "YPC", x => new { x.IsLand })
.UpdateColumnsIF(code == "BG", x => new { x.IsCustoms })
.UpdateColumnsIF(code == "YDC", x => new { x.IsBooking })
.UpdateColumnsIF(code == "YFVGM", x => new { x.IsVGM })
.EnableDiffLogEvent().ExecuteCommandAsync();
// 记录日志
await SaveSeaExportLogAsync(new SeaExportSaveLog()

Loading…
Cancel
Save