Commit d49e2d6d authored by 黄奎's avatar 黄奎

页面修改

parent a0e84e01
......@@ -249,7 +249,16 @@ namespace Edu.Module.User
/// <returns></returns>
public RB_Student_ViewModel GetStudentModule(int StuId)
{
return studentRepository.GetEntity<RB_Student_ViewModel>(StuId);
var extModel = studentRepository.GetEntity<RB_Student_ViewModel>(StuId);
if (extModel != null && extModel.StuId > 0)
{
var assistList = student_AssistRepository.GetStudentAssistListRepository(new RB_Student_Assist_Extend()
{
StuId = extModel.StuId
});
extModel.AssistList = assistList;
}
return extModel;
}
/// <summary>
......
......@@ -550,8 +550,6 @@ namespace Edu.WebApi.Controllers.Duty
return ApiResult.Success(data: pageModel);
}
/// <summary>
/// 获取访客分页列表
/// </summary>
......
......@@ -1003,6 +1003,7 @@ namespace Edu.WebApi.Controllers.User
extModel.StuChannel,
StuChannelName = extModel.StuChannel.ToName(),
extModel.PlatformName,
AssistList = extModel?.AssistList ?? new List<RB_Student_Assist_Extend>(),
};
return ApiResult.Success(data: obj);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment