|
|
|
@ -58,7 +58,7 @@ public class Ghre_TeacherChangeServices : BaseServices<Ghre_TeacherChange, Ghre_ |
|
|
|
|
var value = jProperty.Value.ToString(); |
|
|
|
|
if (name == "page" || name == "pageSize") |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(value)) |
|
|
|
|
conditions = DealConditions(condition, name, value); |
|
|
|
|
} |
|
|
|
@ -68,6 +68,8 @@ public class Ghre_TeacherChangeServices : BaseServices<Ghre_TeacherChange, Ghre_ |
|
|
|
|
else if (IsEnable == false) |
|
|
|
|
sql += " WHERE IsEnable = 0"; |
|
|
|
|
|
|
|
|
|
conditions += $" AND dbo.FUserDataBelongPriv ({App.User.ID}, DataBelongID, NULL) = 1"; |
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(condition)) |
|
|
|
|
conditions += " AND " + condition; |
|
|
|
|
|
|
|
|
@ -97,6 +99,7 @@ public class Ghre_TeacherChangeServices : BaseServices<Ghre_TeacherChange, Ghre_ |
|
|
|
|
x.TeacherName = teacher?.TeacherName; |
|
|
|
|
x.OriginChangeDate1 = DateTimeHelper.ConvertToDayString(x.OriginChangeDate); |
|
|
|
|
x.ChangeDate1 = DateTimeHelper.ConvertToDayString(x.ChangeDate); |
|
|
|
|
x.DataBelongName = await GetDataBelongName(x.DataBelongID); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return new ServicePageResult<Ghre_TeacherChangeDto>(filter.pageNum, total, filter.pageSize, data); |
|
|
|
|