diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs index cd0e6850d..34dec0a8e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs @@ -107,11 +107,11 @@ namespace Learun.Application.WebApi.Modules { ReqPageParam parameter = this.GetReqData(); var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(userInfo.account); - if (stuInfoBasicEntity == null) + string queryJson = null; + if (stuInfoBasicEntity != null) { - return Fail("学生不存在!"); + queryJson = "{\"ClassNo\":\"" + stuInfoBasicEntity.ClassNo + "\"}"; } - var queryJson = "{\"ClassNo\":\"" + stuInfoBasicEntity.ClassNo + "\"}"; var list = smartTeachCourseIBLL.GetPageList(parameter.pagination, queryJson); var jsonData = new {