分单添加CntrTotal;主单更新忽略字段

dev
cjy 1 month ago
parent 3d15a70966
commit 6f41be67bb

@ -453,5 +453,9 @@ namespace DS.WMS.Core.Op.Dtos
/// </summary>
[Description("通知人")]
public string NotifyParty { get; set; }
/// <summary>
/// 集装箱
/// </summary>
public string CntrTotal { get; set; }
}
}

@ -459,5 +459,9 @@ namespace DS.WMS.Core.Op.Dtos
/// </summary>
[Description("通知人")]
public string NotifyParty { get; set; }
/// <summary>
/// 集装箱
/// </summary>
public string CntrTotal { get; set; }
}
}

@ -530,4 +530,10 @@ public class SeaExportBillManage : BaseOrgModel<long>
[Description("通知人")]
[SqlSugar.SugarColumn(ColumnDescription = "通知人", IsNullable = true, Length = 100)]
public string NotifyParty { get; set; }
/// <summary>
/// 集装箱
/// </summary>
[Description("集装箱")]
[SugarColumn(ColumnDescription = "集装箱", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string CntrTotal { get; set; }
}

@ -350,7 +350,13 @@ public partial class SeaExportService : ISeaExportService
//开启事务
await tenantDb.Ado.BeginTranAsync();
info.Note = "正常编辑";
await tenantDb.Updateable(info).EnableDiffLogEvent().ExecuteCommandAsync();//.IgnoreColumns(ignoreAllNullColumns: true)
await tenantDb.Updateable(info).IgnoreColumns(it => new
{
it.BusinessStatus,
it.BusinessStatusName,
it.IsVGM,it.IsBooking,it.IsLand,it.IsCustoms,
it.IsChangeETD,it.IsRefund
}).EnableDiffLogEvent().ExecuteCommandAsync();//.IgnoreColumns(ignoreAllNullColumns: true)
_logger.Info("执行完订单比对");
@ -483,6 +489,7 @@ public partial class SeaExportService : ISeaExportService
part.CBM = info.CBM;
part.TotalNo = info.TotalNo;
part.CntrNo = info.CntrNo;
//part.CntrTotal = info.CntrTotal;
await tenantDb.Updateable(part).ExecuteCommandAsync();
}
#endregion

Loading…
Cancel
Save