先在 測試區 設定好 Menu & Code 在同步到正是區 --刪除舊的 menu delete from sys_menutable where moduleid='bis' and substring(menuid,1,5) = 'bisq2'; delete from zen_jsoncode where substring(functiontag,1,5)='bisq2'; -- Copy From TEST use zenBusiness; insert into sys_menutable select * from eis_demo.dbo.sys_menutable X where moduleid='bis' and substring(menuid,1,4) = 'bisr' and not exists (select * from sys_menutable where sys_menutable.menuid = X.menuid); insert into sys_rolemenusecurity select * from eis_demo.dbo.sys_rolemenusecurity X where substring(menuid,1,4) = 'bisr' and not exists (select * from sys_rolemenusecurity where sys_rolemenusecurity.menuid = X.menuid); use zenWizard insert into zen_jsoncode select * from eis_demo.dbo.zen_jsoncode X where substring(functiontag,1,4)='bisr' and not exists (select * from zen_jsoncode where zen_jsoncode.functiontag = X.functiontag);