修改实验班级详情有关的sql

master
pd 4 years ago
parent bc29cc989e
commit 5d15dde821
  1. 3
      src/main/java/com/yipin/liuwanr/mapper/AssesmentMapper.java
  2. 2
      src/main/java/com/yipin/liuwanr/mapper/ExperimentalClassMapper.java
  3. 2
      src/main/java/com/yipin/liuwanr/mapper/TeacherProjectAndCourseMapper.java

@ -32,7 +32,8 @@ public interface AssesmentMapper {
* 查询项目权限为考核的项目 * 查询项目权限为考核的项目
* @return * @return
*/ */
@Select("select projectId,projectName,projectPermissions,founder,creationTime from hr_project_management where isdel=0 and projectPermissions=1 AND systemId in (SELECT systemId FROM course WHERE courseId=#{courseId})") @Select("select projectId,projectName,projectPermissions,founder,creationTime from hr_project_management " +
" where isdel=0 and projectPermissions=1 AND systemId in (SELECT systemId FROM course WHERE courseId=#{courseId})")
List<Project_Management> queryGetByAssesmentProject(Integer courseId); List<Project_Management> queryGetByAssesmentProject(Integer courseId);

@ -89,7 +89,7 @@ public interface ExperimentalClassMapper {
" <if test='professionalId!=null'>and stu.professionalId = #{professionalId} </if>", " <if test='professionalId!=null'>and stu.professionalId = #{professionalId} </if>",
" <if test='classId !=null'>and stu.classId = #{classId} </if>", " <if test='classId !=null'>and stu.classId = #{classId} </if>",
" <if test='studentNameNumber !=null'>and (stu.studentNumber like CONCAT('%',#{studentNameNumber},'%') or stu.studentName like CONCAT('%',#{studentNameNumber},'%'))</if>", " <if test='studentNameNumber !=null'>and (stu.studentNumber like CONCAT('%',#{studentNameNumber},'%') or stu.studentName like CONCAT('%',#{studentNameNumber},'%'))</if>",
"GROUP BY stu.studentId", "GROUP BY st.studentId",
"</script> "}) "</script> "})
List<Student> getExperimentalClassDetails(Student student); List<Student> getExperimentalClassDetails(Student student);

@ -31,7 +31,7 @@ public interface TeacherProjectAndCourseMapper {
* @return * @return
*/ */
@Select({"<script>", @Select({"<script>",
"select projectId,projectName,isExperiment,isAttendance from hr_project_management WHERE isdel=0 and projectPermissions=0 and p.state=1", "select projectId,projectName,isExperiment,isAttendance from hr_project_management WHERE isdel=0 and projectPermissions=0 and state=1",
"<if test='isExperiment!=null'> and isExperiment=0</if>", "<if test='isExperiment!=null'> and isExperiment=0</if>",
"<if test='isAttendance!=null'> and isAttendance=0</if>", "<if test='isAttendance!=null'> and isAttendance=0</if>",
"<foreach collection='systemIds' item='systemId' open='and systemId in(' separator=',' close=')'>" + "#{systemId} " + "</foreach> ", "<foreach collection='systemIds' item='systemId' open='and systemId in(' separator=',' close=')'>" + "#{systemId} " + "</foreach> ",

Loading…
Cancel
Save