修改手工同步

master
jianghaiqing 8 months ago
parent 58f495d2f2
commit d026233f5a

@ -57,6 +57,11 @@ namespace ServiceProjectSyncWin.Entities
/// </summary>
public Nullable<DateTime> CY_CUTOFF_TIME { get; set; }
/// <summary>
/// 客户样单截止日期
/// </summary>
public Nullable<DateTime> CUSTOM_SI_CUT_DATE { get; set; }
public string TASK_ID { get; set; }
public bool IsDeleted { get; set; }

@ -580,9 +580,27 @@ public class SyncHisRecord: ISyncHisRecord,ITransient
task.CLOSING_DATE = null;
}
//CLOSING_DATE
if (BCReadInfo.CustomSICutDate.HasValue)
{
if (!task.CUSTOM_SI_CUT_DATE.HasValue || task.CUSTOM_SI_CUT_DATE.Value != BCReadInfo.CustomSICutDate.Value)
{
msgBuilder.Append($"CUSTOM_SI_CUT_DATE org={task.CUSTOM_SI_CUT_DATE} tar={BCReadInfo.CustomSICutDate.Value}##");
task.CUSTOM_SI_CUT_DATE = BCReadInfo.CustomSICutDate.Value;
}
}
else
{
msgBuilder.Append($"CUSTOM_SI_CUT_DATE org={task.CUSTOM_SI_CUT_DATE} tar=null##");
task.CUSTOM_SI_CUT_DATE = null;
}
_db.Updateable<TaskBCEntity>(task).UpdateColumns(it => new
{
it.SI_CUT_DATE,
it.CUSTOM_SI_CUT_DATE,
it.VGM_CUTOFF_TIME,
it.MANIFEST_CUT_DATE,
it.CY_CUTOFF_TIME,
@ -718,9 +736,27 @@ public class SyncHisRecord: ISyncHisRecord,ITransient
task.CLOSING_DATE = null;
}
//CLOSING_DATE
if (BCReadInfo.CustomSICutDate.HasValue)
{
if (!task.CUSTOM_SI_CUT_DATE.HasValue || task.CUSTOM_SI_CUT_DATE.Value != BCReadInfo.CustomSICutDate.Value)
{
msgBuilder.Append($"CUSTOM_SI_CUT_DATE org={task.CUSTOM_SI_CUT_DATE} tar={BCReadInfo.CustomSICutDate.Value}##");
task.CUSTOM_SI_CUT_DATE = BCReadInfo.CustomSICutDate.Value;
}
}
else
{
msgBuilder.Append($"CUSTOM_SI_CUT_DATE org={task.CUSTOM_SI_CUT_DATE} tar=null##");
task.CUSTOM_SI_CUT_DATE = null;
}
_db.Updateable<TaskBCEntity>(task).UpdateColumns(it => new
{
it.SI_CUT_DATE,
it.CUSTOM_SI_CUT_DATE,
it.VGM_CUTOFF_TIME,
it.MANIFEST_CUT_DATE,
it.CY_CUTOFF_TIME,
@ -1376,6 +1412,11 @@ public class TaskBCInfoReadDto
/// 订舱确认时间
/// </summary>
public Nullable<DateTime> BookingConfirmDate { get; set; }
/// <summary>
/// 客户样单截止日期
/// </summary>
public Nullable<DateTime> CustomSICutDate { get; set; }
}
/// <summary>

Loading…
Cancel
Save