From daba49cf0d6dd9ef2a333bd8102d3f8a4a88cbed Mon Sep 17 00:00:00 2001 From: pd <2776455882@qq.com> Date: Thu, 23 Jul 2020 11:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=80=E5=A7=8B=E8=80=83?= =?UTF-8?q?=E6=A0=B8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yipin/liuwanr/mapper/ExperimentalClassMapper.java | 2 +- .../com/yipin/liuwanr/mapper/ExperimentallearningMapper.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java index 27941e4..d265583 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java @@ -123,7 +123,7 @@ public interface ExperimentalClassMapper { * @param experimentalClassId * @return */ - @Select("select c.classId,c.className from experimental_class_student stu,student s,class " + + @Select("select c.classId,c.className from experimental_class_student stu,student s,class c " + "where stu.studentId=s.studentId and s.classId=c.classId and stu.experimentalClassId=#{experimentalClassId} GROUP BY c.classId") List getStudentClass(Integer experimentalClassId); diff --git a/src/main/java/com/yipin/liuwanr/mapper/ExperimentallearningMapper.java b/src/main/java/com/yipin/liuwanr/mapper/ExperimentallearningMapper.java index c8bd2a8..1df991f 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/ExperimentallearningMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/ExperimentallearningMapper.java @@ -86,8 +86,8 @@ public interface ExperimentallearningMapper { * @param courseId * @return */ - @Select("SELECT id,experimentId,experimentalClassId,classId FROM assessment WHERE id in (SELECT id FROM assessment ass,hr_project_management pm WHERE assesmentState=1 AND ass.experimentId=pm.projectId AND ass.experimentId in " - + "(SELECT projectId FROM hr_project_management WHERE isdel=0 AND projectPermissions=1 AND systemId in (SELECT systemId FROM course WHERE courseId=#{courseId})))") + @Select("select id,experimentId,experimentalClassId,classId from assessment a left join hr_project_management pm on a.experimentId=pm.projectId left join hr_course_tc tc on pm.systemId=tc.systemId\n" + + "where a.assesmentState=1 AND pm.state=1 and pm.isdel=0 AND pm.projectPermissions=1 and a.courseId=tc.courseId and tc.courseId=#{courseId} GROUP BY tc.systemId") List queryAssesment(Integer courseId);