教师端、学生端的实验项目展示

master
pd 4 years ago
parent a68287bcb7
commit e4401c2916
  1. 2
      src/main/java/com/yipin/liuwanr/mapper/ExperimentallearningMapper.java
  2. 2
      src/main/java/com/yipin/liuwanr/mapper/TeacherProjectAndCourseMapper.java
  3. 2
      src/main/java/com/yipin/liuwanr/service/ExperimentallearningService.java

@ -123,6 +123,6 @@ public interface ExperimentallearningMapper {
@Select("select DISTINCT hpm.projectId,projectName,isAttendance from hr_project_management hpm left join teacher_project tp on hpm.projectId=tp.projectId " + @Select("select DISTINCT hpm.projectId,projectName,isAttendance from hr_project_management hpm left join teacher_project tp on hpm.projectId=tp.projectId " +
" where tp.courseId=#{courseId} and tp.experimentalClassId=#{experimentalClassId} and tp.isOpenProject=0") " where tp.courseId=#{courseId} and tp.experimentalClassId=#{experimentalClassId} and tp.isOpenProject=0 and hpm.isShow=0")
List<Project_Management> getBycourseId(@Param("experimentalClassId")Integer experimentalClassId,@Param("courseId") Integer courseId); List<Project_Management> getBycourseId(@Param("experimentalClassId")Integer experimentalClassId,@Param("courseId") Integer courseId);
} }

@ -27,7 +27,7 @@ public interface TeacherProjectAndCourseMapper {
// "</script>"}) // "</script>"})
@Select("select DISTINCT hpm.projectId,projectName,isOpenProject,isAttendance from hr_project_management hpm left join teacher_project tp on hpm.projectId=tp.projectId " + @Select("select DISTINCT hpm.projectId,projectName,isOpenProject,isAttendance from hr_project_management hpm left join teacher_project tp on hpm.projectId=tp.projectId " +
" where tp.courseId=#{courseId} and tp.experimentalClassId=#{experimentalClassId}") " where tp.courseId=#{courseId} and tp.experimentalClassId=#{experimentalClassId} and hpm.isShow=0 ")
List<Project_Management> getBySystemId(@Param("courseId") Integer courseId,@Param("experimentalClassId")Integer experimentalClassId); List<Project_Management> getBySystemId(@Param("courseId") Integer courseId,@Param("experimentalClassId")Integer experimentalClassId);

@ -49,7 +49,7 @@ public class ExperimentallearningService {
for (int i = 0; i < projects.size(); i++) { for (int i = 0; i < projects.size(); i++) {
Project_Management project = projects.get(i); Project_Management project = projects.get(i);
// 教师那边开启了考勤,学生这边才可以有是否已经签到 // 教师那边开启了考勤,学生这边才可以有是否已经签到
if (project.getIsAttendance() == 0) { if (project.getIsAttendance() == 1) {
// 判断该学生签到的项目,是否在开启的项目中 // 判断该学生签到的项目,是否在开启的项目中
if (projectIds.contains(project.getProjectId())) { if (projectIds.contains(project.getProjectId())) {
project.setSignin(0); project.setSignin(0);

Loading…
Cancel
Save