xiaochanghai 4 months ago
parent 06414c9bdc
commit e892c1d126
  1. 4
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -1104,7 +1104,7 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
var staffId = App.User.StaffId;
var sql = @$"SELECT A.Id,
var sql = @$"SELECT * from (SELECT A.Id,
A.StartTime CourseBeginDate,
A.EndTime CourseEndDate,
A.RegisterStartTime,
@ -1134,7 +1134,7 @@ WHERE A.Status !='Temporary' AND ( EXISTS
(SELECT 1
FROM Ghre_OpenClassStaff C
WHERE C.OpenClassId = A.ID AND c.StaffId = '{staffId}')
OR dbo.[FE_CheckStaffGroup]({staffId},A.StaffGroupId)=1)";
OR dbo.[FE_CheckStaffGroup]({staffId},A.StaffGroupId)=1)) A WHERE 1=1 ";
string conditions = $"";

Loading…
Cancel
Save