|
|
|
@ -35,11 +35,12 @@ public class Ghre_StudyRuleServices : BaseServices<Ghre_StudyRule, Ghre_StudyRul |
|
|
|
|
if (filter.pageSize == 0) |
|
|
|
|
filter.pageSize = 10000; |
|
|
|
|
|
|
|
|
|
var countSql = @$" SELECT COUNT(1) FROM Ghre_StudyRule_v"; |
|
|
|
|
var countSql = @$" SELECT COUNT(1) FROM Ghre_StudyRule_v A"; |
|
|
|
|
var sql = @$" SELECT *
|
|
|
|
|
FROM Ghre_StudyRule_v A";
|
|
|
|
|
FROM Ghre_StudyRule_v A";
|
|
|
|
|
|
|
|
|
|
string conditions = " WHERE 1=1 "; |
|
|
|
|
conditions += $" AND dbo.FUserDataBelongPriv ({App.User.ID}, A.DataBelongID, NULL) = 1"; |
|
|
|
|
|
|
|
|
|
if (IsEnable == true) |
|
|
|
|
conditions += " AND IsEnable = 1"; |
|
|
|
@ -104,9 +105,10 @@ public class Ghre_StudyRuleServices : BaseServices<Ghre_StudyRule, Ghre_StudyRul |
|
|
|
|
var titleIds = new List<int?>(); |
|
|
|
|
var gradeIds = new List<int?>(); |
|
|
|
|
var jobIds = new List<int?>(); |
|
|
|
|
entitys.ForEach(rule => |
|
|
|
|
entitys.ForEach(async rule => |
|
|
|
|
{ |
|
|
|
|
rule.StaffNames = string.Join(",", staffs.Where(o => o.StudyRuleId == rule.Id).Select(o => o.StaffName)); |
|
|
|
|
rule.DataBelongName = await GetDataBelongName(rule.DataBelongID); |
|
|
|
|
|
|
|
|
|
if (!rule.ZoneId.IsNull()) |
|
|
|
|
rule.ZoneIds = JsonHelper.JsonToObj<List<int?>>(rule.ZoneId); |
|
|
|
|