diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs index 0b7660752..18be30d54 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs @@ -266,6 +266,10 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers public ActionResult GetDormStu(string keyValue) { var data = accommodationIBLL.GetDromStu(keyValue).OrderBy(x => x.Class); + if (data.Count() <= 0) + { + return Fail("获取学生失败,未发现可编辑的学生"); + } return Success(data); } @@ -425,7 +429,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers var data = accommodationIBLL.GetClassNo(keyValue); return Success(data); } - + #endregion #region 提交数据