This commit is contained in:
tanglong 2025-07-14 14:20:13 +08:00
parent 8ffe43a327
commit 37c9747f5c
2 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,8 @@ namespace VOL.Business.Services.School
var query = from s in _studentRepository.DbContext.Set<S_Student>() var query = from s in _studentRepository.DbContext.Set<S_Student>()
join c in _studentRepository.DbContext.Set<S_Class>() on s.ClassId equals c.Id join c in _studentRepository.DbContext.Set<S_Class>() on s.ClassId equals c.Id into sc
from c in sc.DefaultIfEmpty()
where s.SchoolCode.Equals(UserContext.Current.TenantId) && s.StudentStatus == StudentStatus.Normal && (!isTeacher || classIds.Contains(c.Id)) where s.SchoolCode.Equals(UserContext.Current.TenantId) && s.StudentStatus == StudentStatus.Normal && (!isTeacher || classIds.Contains(c.Id))

View File

@ -106,7 +106,7 @@ namespace VOL.WebApi.Controllers
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet(nameof(ItemTypeList))] [HttpGet(nameof(ItemTypeList))]
[ServiceFilter(typeof(ValidateDeviceFilter))] [ServiceFilter(typeof(ValidateDeviceFilter))]
public async Task<List<Ai_ModeTypeModel>> ItemTypeList(Ai_Request paramDto) public async Task<List<Ai_ModeTypeModel>> ItemTypeList(Ai_Request paramDto)
{ {
return await _aiAppService.ItemTypeList(); return await _aiAppService.ItemTypeList();