This commit is contained in:
geh
2026-07-20 15:38:54 +08:00
parent 983f416d88
commit d1c0a408a9
@@ -0,0 +1,9 @@
--历史预立项数据处理
insert into DataGovernance_PreProjectApply
select newid(),bp.UnitId,bu.UnitName,ProjectName,'预立项','C4A62EC0-E5D3-4EBF-A5FA-E56AA89633C0','JT','历史预立项数据处理',GETDATE(),'C4A62EC0-E5D3-4EBF-A5FA-E56AA89633C0','JT','历史预立项数据处理',GETDATE(),1
from base_project as bp left join Base_Unit as bu on bu.UnitId=bp.UnitId
where MasterSysId is null and isnull(isDelete,0)=0 and ProjectName not in (select ProjectName from DataGovernance_PreProjectApply)