From 7835e68354e0535932da1a2984c27c74adcbf09c Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 28 Oct 2022 16:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=AD=A6=E7=94=9F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8E=E7=BB=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AccommodationController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 提交数据