From fad4edb1401ffea333fe844e81823fe218ce23a2 Mon Sep 17 00:00:00 2001
From: dyy <807692433@qq.com>
Date: Mon, 11 Jul 2022 15:23:28 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=AD=A6?=
=?UTF-8?q?=E7=94=9F=E8=AF=84=E6=95=99=E6=83=85=E5=86=B5=E3=80=81=E6=95=99?=
=?UTF-8?q?=E5=B8=88=E8=A2=AB=E8=AF=84=E6=83=85=E5=86=B5=E3=80=81=E5=AD=A6?=
=?UTF-8?q?=E5=AD=90=E5=9C=A8=E7=BA=BF-=E7=BD=91=E4=B8=8A=E8=AF=84?=
=?UTF-8?q?=E6=95=99=E6=96=B0=EF=BC=9A=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=80=80?=
=?UTF-8?q?=E5=AD=A6=E3=80=81=E4=BC=91=E5=AD=A6=E7=9A=84=E5=AD=A6=E7=94=9F?=
=?UTF-8?q?=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../StuInfoBasic/StuInfoBasicEntity.cs | 2 +-
.../StuInfoBasicChange/StuInfoBasicChangeService.cs | 4 ++--
.../EvaluationTeach/Eval_Main/Eval_MainService.cs | 4 +++-
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
index 1ccbf3288..9ea4d92c7 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs
@@ -459,7 +459,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("STUDYMODALITY")]
public string StudyModality { get; set; }
///
- /// 学籍异动状态
+ /// 学籍异动状态(异动类型为退学、休学时值为1)
///
///
[Column("CHANGESTATUS")]
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs
index a3e3e0ede..c592dc5ae 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs
@@ -210,13 +210,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
var classInfoEntity = db.FindEntity(x => x.ClassNo == entity.ClassNo);
if (classInfoEntity != null)
{
- db.ExecuteBySql($"update StuInfoBasic set DeptNo='{entity.DeptNo}',MajorNo='{entity.MajorNo}',ClassNo='{entity.ClassNo}',Grade='{classInfoEntity.Grade}' where StuNo='{entity.StuNo}' ");
+ db.ExecuteBySql($"update StuInfoBasic set DeptNo='{entity.DeptNo}',MajorNo='{entity.MajorNo}',ClassNo='{entity.ClassNo}',Grade='{classInfoEntity.Grade}',MoveType =null,MoveStatus=null where StuNo='{entity.StuNo}' ");
}
}
else if (entity.StuChangeType == "04" || entity.StuChangeType == "05") //退学、休学
{
//改信息;显示成绩;
- db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=null where StuNo='{entity.StuNo}' ");
+ db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=null,MoveType =null,MoveStatus=null where StuNo='{entity.StuNo}' ");
}
//修改状态
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EvaluationTeach/Eval_Main/Eval_MainService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EvaluationTeach/Eval_Main/Eval_MainService.cs
index 31d48d134..85120d8fa 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EvaluationTeach/Eval_Main/Eval_MainService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EvaluationTeach/Eval_Main/Eval_MainService.cs
@@ -72,7 +72,7 @@ namespace Learun.Application.TwoDevelopment.EvaluationTeach
var queryParam = queryJson.ToJObject();
var strSql = new StringBuilder();
strSql.Append("select aa.*,bb.UID,cc.EmpName,dd.LessonName from (select a.LessonNo,a.EmpNo,a.AcademicYearNo,a.Semester,b.VID,a.StuNo from " + misdbname + ".dbo.StuSelectLessonList a ");
- strSql.Append("left join Eval_Main b on a.AcademicYearNo=b.AcademicYearNo and a.Semester=b.Semester where b.Status=1 and a.StuNo='" + queryParam["StuNo"] + "') aa ");
+ strSql.Append("left join Eval_Main b on a.AcademicYearNo=b.AcademicYearNo and a.Semester=b.Semester where b.Status=1 and a.StuNo='" + queryParam["StuNo"] + "' and a.StuNo not in (select StuNo from " + misdbname + ".dbo.StuInfoBasic where ChangeStatus=1) ) aa ");
strSql.Append("left join (select distinct b.EmpNo, b.LessonNo, b.UID from Eval_Question a left join Eval_QuestionResult b on a.QID=b.QID) bb on aa.EmpNo=bb.EmpNo and aa.LessonNo=bb.LessonNo and aa.StuNo=bb.UID ");
strSql.Append("left join " + misdbname + ".dbo.EmpInfo cc on aa.EmpNo=cc.EmpNo left join " + misdbname + ".dbo.LessonInfo dd on aa.LessonNo = dd.LessonNo ");
if (pagination != null)
@@ -365,6 +365,7 @@ from " + misdbname + @".dbo.StuSelectLessonList a
left join Eval_Main b on a.AcademicYearNo=b.AcademicYearNo and a.Semester=b.Semester
where b.Status=1 and b.VID='" + queryParam["VID"] + @"'
and a.StuNo is not null and a.StuNo <> ''
+and a.StuNo not in (select StuNo from " + misdbname + @".dbo.StuInfoBasic where ChangeStatus=1)
) aa
left join
(
@@ -524,6 +525,7 @@ from " + misdbname + @".dbo.StuSelectLessonList a
left join Eval_Main b on a.AcademicYearNo=b.AcademicYearNo and a.Semester=b.Semester
where b.Status=1 and b.VID='" + queryParam["VID"] + @"'
and a.StuNo is not null and a.StuNo <> ''
+and a.StuNo not in (select StuNo from " + misdbname + @".dbo.StuInfoBasic where ChangeStatus=1)
group by a.LessonNo,a.EmpNo,a.LessonName
) ss
left join