From 5b28bd0f2a9dcaf494360fa7a4e089a48af6ff53 Mon Sep 17 00:00:00 2001 From: xusc Date: Fri, 22 Nov 2024 17:22:57 +0800 Subject: [PATCH] .. --- ICSSoft.FromERP/SyncMoHour_Rhyton.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ICSSoft.FromERP/SyncMoHour_Rhyton.cs b/ICSSoft.FromERP/SyncMoHour_Rhyton.cs index 61a540b..da989ee 100644 --- a/ICSSoft.FromERP/SyncMoHour_Rhyton.cs +++ b/ICSSoft.FromERP/SyncMoHour_Rhyton.cs @@ -146,7 +146,7 @@ and a.MoStatus='mostatus_close' and a.Default6='0' and a.TenantId='{0}' and e.OpControl='10000000' -and (h2.AlterTime is null or h2.Id is null ) +and ((h2.AlterTime is null and h2.Status='No' ) or h2.Id is null ) ) a where 1=1 ) a @@ -216,6 +216,8 @@ from #tempSyncMoHour_Rhyton a join IcsMoHourData b on a.MoCode=b.MoCode and a.OpCode=b.OpCode where 1=1 and b.AlterTime is null + and b.Status='No' +