This commit is contained in:
parent
09373c4a0e
commit
5931967fff
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue