
--增加索引
CREATE NONCLUSTERED INDEX [t_d_EmployInOutRecord_ProjectId_Index]
ON [dbo].[t_d_EmployInOutRecord] ([ProjectId])
INCLUDE ([ManHours]);

CREATE NONCLUSTERED INDEX [SitePerson_Person_Pid_Wid_IsUsed_Intime_Index]
ON [dbo].[SitePerson_Person] ([ProjectId],[WorkPostId],[IsUsed],[InTime],[OutTime]);

CREATE NONCLUSTERED INDEX [Sys_CodeRecords_ProjectId_MenuId_Index]
ON [dbo].[Sys_CodeRecords] ([ProjectId],[MenuId])
INCLUDE ([DataId],[UnitId],[CompileDate],[SortIndex],[RuleCodes],[Digit],[Code],[OwnerRuleCodes],[OwerDigit],[OwnerCode]);

CREATE NONCLUSTERED INDEX [Sys_FlowOperate_OperaterId_IsClosed_Index]
ON [dbo].[Sys_FlowOperate] ([OperaterId],[IsClosed])
INCLUDE ([DataId]);
