更新主单货物状态时判断更新IsVGM IsBooking

dev
cjy 2 months ago
parent 74b169b330
commit 19570f7fe9

@ -1001,8 +1001,14 @@ namespace DS.WMS.Core.Op.Method
var oldOrder = order.Adapt<SeaExport>();
order.BusinessStatusName = status.StatusName;
order.BusinessStatus = status.SystemCode;
order.IsVGM = status.SystemCode == "YFVGM" ? true : false;
order.IsBooking = status.SystemCode == "YFCD" ? true : false;
//order.Note = "更新主单货物状态";
await tenantDb.Updateable(order).UpdateColumns(x => new { x.BusinessStatusName, x.BusinessStatus }).EnableDiffLogEvent().ExecuteCommandAsync();
await tenantDb.Updateable(order).UpdateColumns(x => new { x.BusinessStatusName, x.BusinessStatus })
.UpdateColumnsIF(status.SystemCode == "YFVGM", x => new { x.IsVGM })
.UpdateColumnsIF(status.SystemCode == "YFCD", x => new { x.IsBooking })
.EnableDiffLogEvent().ExecuteCommandAsync();
// 记录日志
await SaveSeaExportLogAsync(new SeaExportSaveLog()
{

Loading…
Cancel
Save