|
|
@ -85,6 +85,7 @@ left join {1}.dbo.[CBO_Project] as A6 on (A.[CompProject] = A6.[ID]) |
|
|
|
LEFT JOIN {1}.dbo.[Base_Organization] AS I ON ( A1.[Org] = I.[ID] ) |
|
|
|
LEFT JOIN {1}.dbo.[Base_Organization_Trl] AS J ON ( I.[ID] = J.[ID] AND J.SysMLFlag='zh-CN') |
|
|
|
where 1=1 and IsEffective=1 and A.ModifiedOn>=@LastTime AND I.id={0} and A.ComponentType=0 and A1.AlternateType=0 |
|
|
|
and A1.bomtype=0 |
|
|
|
|
|
|
|
IF NOT EXISTS(SELECT * FROM #TempBOM) |
|
|
|
RETURN";
|
|
|
@ -150,7 +151,7 @@ left join IcsMainCategoryCode d on c.ItemMainCategoryCode=d.ItemMainCategoryCode |
|
|
|
sql += " DROP TABLE #TempBOM " + |
|
|
|
"DROP TABLE #tableICSSBOM"; |
|
|
|
sql = string.Format(sql, TenantId, erpName, ErpId); |
|
|
|
// return;
|
|
|
|
//return;
|
|
|
|
ICSHelper.ExecuteDate(conStr, sql); |
|
|
|
#endregion
|
|
|
|
} |
|
|
|