diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs index 0f028f700..d56b21af3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs @@ -212,7 +212,7 @@ a.name as ApartmentName,b.name as UnitName,c.Name as FloorName { string sql = @"select ID,Name,DNo,StudentID,fb.stuNo,fb.stuname,fb.classno,fb.majorno,fb.deptno from Acc_DormitoryBuild zb left join StuInfoBasic fb on fb.Stuno = zb.StudentID - where zb.BuildType = '5' and zb.ParentID = '" + keyValue + "' and zb.StudentID is not null "; + where zb.BuildType = '5' and zb.ParentID = '" + keyValue + "' and (fb.stuNo is not null and fb.stuname is not null )"; return this.BaseRepository("CollegeMIS").FindList(sql); } catch (Exception ex)