From bfe3a9155b53d3696ed94a7ff8d526eb2a20443f Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 17 Feb 2023 17:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E7=BB=A9,=E8=A1=A5=E8=80=83,=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E8=A1=A5=E8=80=83=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StuScoreNotPassTran/StuScoreNotPassTranService.cs | 6 ++++++ .../StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs | 5 +++++ .../StuScoreTran/StuScoreTranService.cs | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranService.cs index 1c69e289f..75ffc4d18 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranService.cs @@ -128,6 +128,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration strSql.Append("SELECT "); strSql.Append(fieldSql); strSql.Append(" FROM StuScoreNotPassTran t "); + var userlogin = LoginUserInfo.Get(); + if (userlogin.Description == "学生") + { + strSql.Append(" where 1= 1 and Stuno = '" + userlogin.account + "'"); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), pagination); } catch (Exception ex) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs index 49bb84b9d..3ac5f59a7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs @@ -128,6 +128,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration strSql.Append("SELECT "); strSql.Append(fieldSql); strSql.Append(" FROM StuScoreNotPassTwoTran t "); + var userlogin = LoginUserInfo.Get(); + if (userlogin.Description == "学生") + { + strSql.Append(" where 1= 1 and Stuno = '" + userlogin.account + "'"); + } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), pagination); } catch (Exception ex) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranService.cs index 32d9d089d..979e92b08 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranService.cs @@ -130,6 +130,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration strSql.Append("SELECT "); strSql.Append(fieldSql); strSql.Append(" FROM StuScoreTran t "); + var userlogin = LoginUserInfo.Get(); + if (userlogin.Description == "学生") + { + strSql.Append(" where 1= 1 and Stuno = '" + userlogin.account + "'"); + } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), pagination); } catch (Exception ex)