|
|
|
@ -469,14 +469,14 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
entity.ETA = m.ETA;
|
|
|
|
|
}
|
|
|
|
|
if (m.ATD != null)
|
|
|
|
|
{
|
|
|
|
|
entity.ATD = m.ATD;
|
|
|
|
|
}
|
|
|
|
|
if (m.YgtETD != null)
|
|
|
|
|
{
|
|
|
|
|
entity.YgtETD = m.YgtETD;
|
|
|
|
|
}
|
|
|
|
|
//if (m.ATD != null)
|
|
|
|
|
//{
|
|
|
|
|
// entity.ATD = m.ATD;
|
|
|
|
|
//}
|
|
|
|
|
//if (m.YgtETD != null)
|
|
|
|
|
//{
|
|
|
|
|
// entity.YgtETD = m.YgtETD;
|
|
|
|
|
//}
|
|
|
|
|
await _vesselinfo.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync();
|
|
|
|
|
}
|
|
|
|
|
////根据船公司船名航次更新船期信息
|
|
|
|
@ -495,14 +495,14 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
it.ETD = item.ETD;
|
|
|
|
|
|
|
|
|
|
if (it.ATD != item.ATD && item.ATD != null)
|
|
|
|
|
{
|
|
|
|
|
it.ATD = item.ATD;
|
|
|
|
|
}
|
|
|
|
|
if (it.YgtETD != item.YgtETD && item.YgtETD != null)
|
|
|
|
|
{
|
|
|
|
|
it.YgtETD = item.YgtETD;
|
|
|
|
|
}
|
|
|
|
|
//if (it.ATD != item.ATD && item.ATD != null)
|
|
|
|
|
//{
|
|
|
|
|
// it.ATD = item.ATD;
|
|
|
|
|
//}
|
|
|
|
|
//if (it.YgtETD != item.YgtETD && item.YgtETD != null)
|
|
|
|
|
//{
|
|
|
|
|
// it.YgtETD = item.YgtETD;
|
|
|
|
|
//}
|
|
|
|
|
await _rep.AsUpdateable(it).IgnoreColumns(it => new
|
|
|
|
|
{
|
|
|
|
|
it.ParentId,
|
|
|
|
@ -546,26 +546,26 @@ namespace Myshipping.Application
|
|
|
|
|
NewValue = item.ETD != null ? item.ETD.ToSqlValue() : null,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (it.ATD != item.ATD)
|
|
|
|
|
{
|
|
|
|
|
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
|
{
|
|
|
|
|
PId = bid,
|
|
|
|
|
Field = "ATD",
|
|
|
|
|
OldValue = it.ATD != null ? it.ATD.ToSqlValue() : null,
|
|
|
|
|
NewValue = item.ATD != null ? item.ATD.ToSqlValue() : null,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (it.YgtETD != item.YgtETD)
|
|
|
|
|
{
|
|
|
|
|
await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
|
{
|
|
|
|
|
PId = bid,
|
|
|
|
|
Field = "ETD",
|
|
|
|
|
OldValue = it.YgtETD != null ? it.YgtETD.ToSqlValue() : null,
|
|
|
|
|
NewValue = item.YgtETD != null ? item.YgtETD.ToSqlValue() : null,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//if (it.ATD != item.ATD)
|
|
|
|
|
//{
|
|
|
|
|
// await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
|
// {
|
|
|
|
|
// PId = bid,
|
|
|
|
|
// Field = "ATD",
|
|
|
|
|
// OldValue = it.ATD != null ? it.ATD.ToSqlValue() : null,
|
|
|
|
|
// NewValue = item.ATD != null ? item.ATD.ToSqlValue() : null,
|
|
|
|
|
// });
|
|
|
|
|
//}
|
|
|
|
|
//if (it.YgtETD != item.YgtETD)
|
|
|
|
|
//{
|
|
|
|
|
// await _bookinglogdetail.InsertReturnSnowflakeIdAsync(new BookingLogDetail
|
|
|
|
|
// {
|
|
|
|
|
// PId = bid,
|
|
|
|
|
// Field = "ETD",
|
|
|
|
|
// OldValue = it.YgtETD != null ? it.YgtETD.ToSqlValue() : null,
|
|
|
|
|
// NewValue = item.YgtETD != null ? item.YgtETD.ToSqlValue() : null,
|
|
|
|
|
// });
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|