diff --git a/DataBase/版本日志/SGGLDB_2025-04-16-geh.sql b/DataBase/版本日志/SGGLDB_2025-04-16-geh.sql index 864f771..1af2270 100644 --- a/DataBase/版本日志/SGGLDB_2025-04-16-geh.sql +++ b/DataBase/版本日志/SGGLDB_2025-04-16-geh.sql @@ -1,4 +1,5 @@ -SELECT Person.PersonId, +ALTER view [dbo].[View_SitePerson_Person] as + SELECT Person.PersonId, Person.CardNo, Person.PersonName, Person.Sex, @@ -42,6 +43,7 @@ SELECT Person.PersonId, Post.PostType, Post.IsHsse, (SELECT COUNT(*) FROM EduTrain_TrainRecordDetail T WHERE T.PersonId=Person.PersonId) AS TrainCount, + (SELECT COUNT(*) FROM Training_TestRecord T WHERE T.TestManId=Person.PersonId and Person.ProjectId=T.ProjectId and T.TestScores >=70 ) AS TestCount, Person.AuditorId, sysUser.UserName AS AuditorName, Person.AuditorDate, @@ -92,6 +94,7 @@ Left JOIN RealName_Country AS Country ON Country.CountryId = Person.CountryCode Left JOIN RealName_City AS City ON City.provinceCode = Person.ProvinceCode Left JOIN Base_CNProfessional AS CNProfessional ON CNProfessional.CNProfessionalId = Person.MainCNProfessionalId +GO diff --git a/DataBase/版本日志/SGGLDB_2025-05-09-geh.sql b/DataBase/版本日志/SGGLDB_2025-05-09-geh.sql new file mode 100644 index 0000000..32cc598 Binary files /dev/null and b/DataBase/版本日志/SGGLDB_2025-05-09-geh.sql differ