|
|
|
|
@ -124,7 +124,7 @@ namespace FactorySystemBll
|
|
|
|
|
public int SureTeamWork(int teamId)
|
|
|
|
|
{
|
|
|
|
|
return AppSettingsHelper.GetSqlSugar().Ado.ExecuteCommand(string.Format(@"
|
|
|
|
|
if(select count(1) from TFS_Task where FTeamID={0} and FState!=2)=0
|
|
|
|
|
if(select count(1) from TFS_Task where FTeamID={0} and FState!=2 and FType!=13)=0
|
|
|
|
|
begin
|
|
|
|
|
update TFS_Task set FCanEdit=2 where FCanEdit!=2 and FTeamID={0};
|
|
|
|
|
update TFS_Task set FState=2,FFinishDate=getdate() where FState!=2 and FTeamID={0};
|
|
|
|
|
|