|
@ -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 |
|
|
LEFT JOIN {1}.dbo.CBO_BOMMaster c With(NoLock) ON b.BOMMaster=c.Id |
|
|
WHERE b.id is null |
|
|
WHERE b.id is null |
|
|
and a.TenantId='{0}' |
|
|
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) |
|
|
WHERE TenantId='{0}' and ErpId IN ( SELECT ErpId from #tableICSSBOM) |
|
|
";
|
|
|
";
|
|
|
Dictionary<string, string> values = new Dictionary<string, string>(); |
|
|
Dictionary<string, string> values = new Dictionary<string, string>(); |
|
|