|
|
@ -71,7 +71,7 @@ namespace ICSSoft.FromERP |
|
|
|
|
|
|
|
#region SQL
|
|
|
|
string sql = @" select a.cInvCCode as ItemMainCategoryCode
|
|
|
|
,b.cInvCCode as ItemMainCategoryName |
|
|
|
,a.cInvCName as ItemMainCategoryName |
|
|
|
,'' as ItemMainCategoryDesc |
|
|
|
,getdate() MTime |
|
|
|
,p.parentCode |
|
|
@ -85,7 +85,7 @@ namespace ICSSoft.FromERP |
|
|
|
and cc.iInvCGrade=cc_p.iInvCGrade+1 |
|
|
|
) p ON a.cInvCCode=p.cInvCCode |
|
|
|
where 1=1 |
|
|
|
and A.ModifiedOn>=@LastTime |
|
|
|
-- and A.ModifiedOn>=@LastTime |
|
|
|
ORDER BY A.cInvCCode |
|
|
|
|
|
|
|
IF NOT EXISTS(SELECT * FROM #TempItemCategory) |
|
|
|