修改bug

This commit is contained in:
2022-07-28 14:44:12 +08:00
parent 9e678e9509
commit e6dd471031
3 changed files with 12 additions and 6 deletions
@@ -146,7 +146,9 @@ namespace IRaCIS.Core.Application.Service
FullName = user.FullName,
UserCode = user.UserCode,
UserName = user.UserName,
UserTypeEnum = user.UserTypeRole.UserTypeEnum
UserTypeEnum = user.UserTypeRole.UserTypeEnum,
ReadingCategoryList=enroll.EnrollReadingCategoryList.Select(t=>t.ReadingCategory).ToList()
};
return query.ToList();
@@ -167,7 +169,8 @@ namespace IRaCIS.Core.Application.Service
FullName = user.FullName,
UserCode = user.UserCode,
UserName = user.UserName,
UserTypeEnum = user.UserTypeRole.UserTypeEnum
UserTypeEnum = user.UserTypeRole.UserTypeEnum,
ReadingCategoryList = allocationRule.Enroll.EnrollReadingCategoryList.Select(t => t.ReadingCategory).ToList()
};
return await query.ToListAsync();