From 3d3b63588c3e4bcf078f4da86366553082f2dc16 Mon Sep 17 00:00:00 2001 From: ndbs Date: Wed, 27 Jul 2022 15:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E4=BF=A1=E6=81=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E6=8E=92=E9=99=A4=E9=83=A8=E5=88=86=E5=BC=82?= =?UTF-8?q?=E5=8A=A8=E5=AD=A6=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ClassInfoController.cs | 4 +-- .../StuInfoBasic/StuInfoBasicBLL.cs | 18 +++++++++++++ .../StuInfoBasic/StuInfoBasicIBLL.cs | 1 + .../StuInfoBasic/StuInfoBasicService.cs | 26 +++++++++++++++++++ 4 files changed, 47 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassInfoController.cs index a25982bb8..71f3324fe 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassInfoController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassInfoController.cs @@ -19,7 +19,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL(); private ArrangeLessonSyncIBLL arrangeLessonSyncIBLL = new ArrangeLessonSyncBLL(); private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); - + #region 视图功能 /// @@ -69,7 +69,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { Pagination paginationobj = pagination.ToObject(); var data = classInfoIBLL.GetPageList(paginationobj, queryJson); - var studata = stuInfoBasicIBLL.GetAllList(); + var studata = stuInfoBasicIBLL.GetAllList("1"); foreach (var item in data) { item.StuNum = studata.Where(o => diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs index a52ae99af..075c1741e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs @@ -296,6 +296,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + public IEnumerable GetAllList(string ChangeType) + { + try + { + return stuInfoBasicService.GetAllList(ChangeType); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } public IEnumerable GetStuInfoByClassNo(string classNo) { try diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs index 738ce5d45..960ca58f8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs @@ -75,6 +75,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration void GenerateAccout(); bool GetAny(); IEnumerable GetAllList(); + IEnumerable GetAllList(string ChangeType); IEnumerable GetStuInfoByClassNo(string classNo); } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs index 50d15c53e..8fa00c304 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs @@ -893,6 +893,32 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + /// + /// 班级不看学籍异动 + /// + /// + /// + public IEnumerable GetAllList(string ChangeType) + { + try + { + StringBuilder sb = new StringBuilder(); + sb.Append(@"select * from StuInfoBasic + where stuNo not in (select Stuno from StuInfoBasicChange where StuChangeType in ('02', '05', '06'))"); + return this.BaseRepository("CollegeMIS").FindList(sb.ToString()); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } public IEnumerable GetStuInfoByClassNo(string classNo) { try