diff --git a/ICSSoft.FromERP/IcsSBom_Rhtyon.cs b/ICSSoft.FromERP/IcsSBom_Rhtyon.cs index 1e2428a..49fa25f 100644 --- a/ICSSoft.FromERP/IcsSBom_Rhtyon.cs +++ b/ICSSoft.FromERP/IcsSBom_Rhtyon.cs @@ -110,9 +110,9 @@ LEFT JOIN {1}.dbo.[CBO_BOMComponent] b With(NoLock) ON a.ErpId=b.Id LEFT JOIN {1}.dbo.CBO_BOMMaster c With(NoLock) ON b.BOMMaster=c.Id WHERE b.id is null and a.TenantId='{0}' -AND c.Org={2} +--AND c.Org={2} - DELETE ICSSBOM + DELETE FROM ICSSBOM WHERE TenantId='{0}' and ErpId IN ( SELECT ErpId from #tableICSSBOM) "; Dictionary values = new Dictionary();