为综合素质板块的综合模块完善姓名、学号、学院、专业、班级,以方便搜索
This commit is contained in:
@@ -105,14 +105,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
|
||||
<select id="selectCphClasstwoList" parameterType="CphClasstwo" resultMap="CphClasstwoResult">
|
||||
<include refid="selectCphClasstwoVo"/>
|
||||
<where>
|
||||
<if test="submitter != null "> and submitter = #{submitter}</if>
|
||||
<if test="stuYearId != null "> and stu_year_id = #{stuYearId}</if>
|
||||
<if test="toAdd != null "> and to_add = #{toAdd}</if>
|
||||
<if test="material != null and material != ''"> and material = #{material}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
|
||||
select ct.id, ct.submitter, ct.stu_year_id, ct.to_add, ct.material,
|
||||
ct.classtwo_score,ct.rule_id, ct.description, ct.audit_status,
|
||||
ct.del_flag, ct.create_by,
|
||||
ct.create_time, ct.update_by, ct.update_time
|
||||
from cph_classtwo ct
|
||||
left join srs_student stu on stu.stu_id = ct.to_add
|
||||
left join srs_class sc on stu.class_id = sc.class_id
|
||||
left join srs_majors ma on sc.major_id = ma.major_id
|
||||
left join sys_dept d on ma.college_id = d.dept_id
|
||||
<where>
|
||||
<if test="submitter != null "> and ct.submitter = #{submitter}</if>
|
||||
<if test="stuYearId != null "> and ct.stu_year_id = #{stuYearId}</if>
|
||||
<if test="toAdd != null "> and ct.to_add = #{toAdd}</if>
|
||||
<if test="material != null and material != ''"> and ct.material = #{material}</if>
|
||||
<if test="description != null and description != ''"> and ct.description = #{description}</if>
|
||||
<if test="auditStatus != null and auditStatus != ''"> and ct.audit_status = #{auditStatus}</if>
|
||||
<if test="student.classId != null "> and stu.class_id = #{student.classId}</if>
|
||||
<if test="student.stuNo != null and student.stuNo != ''"> and stu.stu_no = #{student.stuNo}</if>
|
||||
<if test="student.name != null and student.name != ''"> and stu.name like #{student.name}</if>
|
||||
<if test="deptId != null "> and d.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and ma.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
<sql id="selectCphClasstwoJoin">
|
||||
@@ -132,6 +145,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<!-- 第二课堂连表查询-->
|
||||
<select id="selectCphClasstwoListJoin" parameterType="CphClasstwo" resultMap="CphClasstwoResult">
|
||||
<include refid="selectCphClasstwoJoin"/>
|
||||
left join srs_majors ma on sc.major_id = ma.major_id
|
||||
left join sys_dept d on ma.college_id = d.dept_id
|
||||
<where>
|
||||
<if test="submitter != null "> and ct.submitter = #{submitter}</if>
|
||||
<if test="stuYearId != null "> and ct.stu_year_id = #{stuYearId}</if>
|
||||
@@ -142,6 +157,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="student.classId != null "> and stu.class_id = #{student.classId}</if>
|
||||
<if test="student.stuNo != null and student.stuNo!=''"> and stu.stu_no = #{student.stuNo}</if>
|
||||
<if test="student.name != null "> and stu.name like #{student.name}</if>
|
||||
<if test="deptId != null "> and d.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and ma.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -120,6 +120,10 @@
|
||||
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
|
||||
<if test="params.stuNo != null and params.stuNo !='' " > and ss.stu_no=#{params.stuNo}</if>
|
||||
<if test="stuYearId != null "> and ci.stu_year_id = #{stuYearId}</if>
|
||||
<if test="student != null and student.classId != null "> and ss.class_id = #{student.classId}</if>
|
||||
<if test="student != null and student.deptId != null "> and f.dept_id = #{student.deptId}</if>
|
||||
<if test="student != null and student.majorId != null "> and e.major_id = #{student.majorId}</if>
|
||||
<if test="student != null and student.name != null "> and ss.name like #{student.name}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -138,12 +142,16 @@
|
||||
) t1 ON ide.stu_no=t1.stu_no and ide.stu_year_id=t1.stu_year_id
|
||||
LEFT JOIN srs_student stu ON ide.stu_no = stu.stu_no
|
||||
left join srs_class sc on stu.class_id=sc.class_id
|
||||
LEFT JOIN srs_majors ma on sc.major_id = ma.major_id
|
||||
LEFT JOIN sys_dept d on ma.college_id = d.dept_id
|
||||
LEFT JOIN srs_stu_year sy ON sy.id = ide.stu_year_id
|
||||
<where>
|
||||
<if test="stuYearId != null "> and ide.stu_year_id = #{stuYearId}</if>
|
||||
<if test="classId != null "> and stu.class_id = #{classId}</if>
|
||||
<if test="stuNo != null and stuNo!=''"> and stu.stu_no = #{stuNo}</if>
|
||||
<if test="name != null and name!=''"> and stu.name like #{name}</if>
|
||||
<if test="deptId != null "> and d.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and ma.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -160,6 +168,8 @@
|
||||
<if test="student.classId != null "> and stu.class_id = #{student.classId}</if>
|
||||
<if test="student.stuNo != null and student.stuNo!=''"> and stu.stu_no = #{student.stuNo}</if>
|
||||
<if test="student.name != null "> and stu.name like #{student.name}</if>
|
||||
<if test="student.deptId != null "> and stu.dept_id = #{student.deptId}</if>
|
||||
<if test="student.majorId != null "> and stu.major_id = #{student.majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -19,17 +19,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCphIdeologyScoreVo">
|
||||
select id, stu_no, score, stu_year_id, description, status, del_flag, create_by, create_time, update_by, update_time from cph_ideology_score
|
||||
select i.id, i.stu_no, i.score, i.stu_year_id, i.description, i.status, i.del_flag, i.create_by, i.create_time, i.update_by, i.update_time, s.name, sy.stu_year_name, sc.class_name, m.major_name, d.dept_name
|
||||
from cph_ideology_score i
|
||||
left join srs_student s on i.stu_no = s.stu_no
|
||||
left join srs_stu_year sy on i.stu_year_id = sy.id
|
||||
left join srs_class sc on s.class_id = sc.class_id
|
||||
left join srs_majors m on sc.major_id = m.major_id
|
||||
left join sys_dept d on m.college_id = d.dept_id
|
||||
</sql>
|
||||
|
||||
<select id="selectCphIdeologyScoreList" parameterType="CphIdeologyScore" resultMap="CphIdeologyScoreResult">
|
||||
<include refid="selectCphIdeologyScoreVo"/>
|
||||
<where>
|
||||
<if test="stuNo != null and stuNo != ''"> and stu_no = #{stuNo}</if>
|
||||
<if test="score != null "> and score = #{score}</if>
|
||||
<if test="stuYearId != null "> and stu_year_id = #{stuYearId}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="stuNo != null and stuNo != ''"> and i.stu_no = #{stuNo}</if>
|
||||
<if test="score != null "> and i.score = #{score}</if>
|
||||
<if test="stuYearId != null "> and i.stu_year_id = #{stuYearId}</if>
|
||||
<if test="description != null and description != ''"> and i.description = #{description}</if>
|
||||
<if test="status != null and status != ''"> and i.status = #{status}</if>
|
||||
<if test="classId != null "> and s.class_id = #{classId}</if>
|
||||
<if test="deptId != null "> and d.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and m.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -74,6 +74,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="avgCredit != null "> and avg_credit = #{avgCredit}</if>
|
||||
<if test="ranking != null "> and ranking = #{ranking}</if>
|
||||
<if test="nopass != null "> and nopass = #{nopass}</if>
|
||||
<if test="deptId != null "> and b.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and b.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -61,14 +61,30 @@
|
||||
</sql>
|
||||
|
||||
<select id="selectSrsCeScoreList" parameterType="SrsCeScore" resultMap="SrsCeScoreResult">
|
||||
<include refid="selectSrsCeScoreVo"/>
|
||||
select scs.id,
|
||||
scs.stu_id,
|
||||
scs.stu_year_id,
|
||||
scs.ce_score,
|
||||
scs.del_flag,
|
||||
scs.create_by,
|
||||
scs.create_time,
|
||||
scs.update_by,
|
||||
scs.update_time,
|
||||
scs.stu_no
|
||||
from srs_ce_score scs
|
||||
left join srs_student stu on stu.stu_id = scs.stu_id
|
||||
left join srs_class sc on stu.class_id = sc.class_id
|
||||
left join srs_majors ma on sc.major_id = ma.major_id
|
||||
left join sys_dept d on ma.college_id = d.dept_id
|
||||
<where>
|
||||
<if test="stuId != null ">and stu_id = #{stuId}</if>
|
||||
<if test="stuYearId != null ">and stu_year_id = #{stuYearId}</if>
|
||||
<if test="ceScore != null ">and ce_score = #{ceScore}</if>
|
||||
<if test="student.classId != null ">and stu.class_id = #{student.classId}</if>
|
||||
<if test="stuId != null ">and scs.stu_id = #{stuId}</if>
|
||||
<if test="stuYearId != null ">and scs.stu_year_id = #{stuYearId}</if>
|
||||
<if test="ceScore != null ">and scs.ce_score = #{ceScore}</if>
|
||||
<if test="student.classId != null ">and sc.class_id = #{student.classId}</if>
|
||||
<if test="student.stuNo != null and student.stuNo!=''">and stu.stu_no = #{student.stuNo}</if>
|
||||
<if test="student.name != null ">and stu.name like #{student.name}</if>
|
||||
<if test="student.name != null and student.name != ''">and stu.name like #{student.name}</if>
|
||||
<if test="deptId != null ">and d.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null ">and ma.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -158,15 +174,20 @@
|
||||
<select id="SrsCeScoreStudentStuYear" parameterType="SrsCeScore" resultMap="SrsCeScoreStudentStuYearS">
|
||||
select a.id,b.`name`,b.stu_no,c.stu_year_name,a.ce_score,a.stu_id,a.stu_year_id from srs_ce_score as a
|
||||
left join srs_student as b on a.stu_id = b.stu_id
|
||||
left join srs_class as sc on b.class_id = sc.class_id
|
||||
left join srs_majors as ma on sc.major_id = ma.major_id
|
||||
left join sys_dept as d on ma.college_id = d.dept_id
|
||||
left join srs_stu_year as c on a.stu_year_id = c.id
|
||||
<where>
|
||||
<if test="delFlag != null ">and a.del_flag = #{delFlag}</if>
|
||||
<if test="stuId != null ">and a.stu_id = #{stuId}</if>
|
||||
<if test="stuYearId != null ">and stu_year_id = #{stuYearId}</if>
|
||||
<if test="ceScore != null ">and ce_score = #{ceScore}</if>
|
||||
<if test="stuYearId != null ">and a.stu_year_id = #{stuYearId}</if>
|
||||
<if test="ceScore != null ">and a.ce_score = #{ceScore}</if>
|
||||
<if test="student.classId != null ">and b.class_id = #{student.classId}</if>
|
||||
<if test="student.stuNo != null and student.stuNo!=''">and b.stu_no = #{student.stuNo}</if>
|
||||
<if test="student.name != null ">and b.name like #{student.name}</if>
|
||||
<if test="deptId != null ">and d.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null ">and ma.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -231,9 +231,11 @@
|
||||
<select id="selectSrsSportTestStudentStuYear" parameterType="SrsSportTest" resultMap="SrsSportTestStudentStuYearS">
|
||||
select a.id, b.`name`, b.stu_no, c.stu_year_name, a.test_score, a.stu_id, a.stu_year_id, d.class_name
|
||||
from srs_sport_test as a
|
||||
left join srs_student as b on a.stu_id = b.stu_id
|
||||
left join srs_stu_year as c on a.stu_year_id = c.id
|
||||
left join srs_class as d on b.class_id = d.class_id
|
||||
left join srs_student as b on a.stu_id = b.stu_id
|
||||
left join srs_class as d on b.class_id = d.class_id
|
||||
left join srs_majors as ma on d.major_id = ma.major_id
|
||||
left join sys_dept as de on ma.college_id = de.dept_id
|
||||
left join srs_stu_year as c on a.stu_year_id = c.id
|
||||
<where>
|
||||
<if test=" delFlag != null "> and a.del_flag = #{delFlag}</if>
|
||||
<if test="stuYearId != null "> and a.stu_year_id = #{stuYearId}</if>
|
||||
@@ -242,6 +244,8 @@
|
||||
<if test="student.name != null "> and b.name like #{student.name}</if>
|
||||
<if test="testScoreFrom != null "> and a.test_score >= #{testScoreFrom}</if>
|
||||
<if test="testScoreTo != null "> and a.test_score <= #{testScoreTo}</if>
|
||||
<if test="deptId != null "> and de.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and ma.major_id = #{majorId}</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectGradeRanking" resultType="com.srs.comprehensive.domain.Vo.SrsCeScoreClassDeptGradeMajorsStudentStuYear">
|
||||
|
||||
@@ -84,12 +84,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
left join srs_student as b on a.stu_id = b.stu_id
|
||||
left join srs_stu_year as c on a.stu_year_id = c.id
|
||||
left join srs_class as d on b.class_id = d.class_id
|
||||
<where>
|
||||
left join srs_majors as e on d.major_id = e.major_id
|
||||
left join sys_dept as f on e.college_id = f.dept_id
|
||||
<where>
|
||||
<if test="stuId != null "> and a.stu_id = #{stuId}</if>
|
||||
<if test="testScore != null "> and a.test_score = #{testScore}</if>
|
||||
<if test="stuYearId != null "> and a.stu_year_id = #{stuYearId}</if>
|
||||
<if test="testScoreFrom != null "> and a.test_score >= #{testScoreFrom}</if>
|
||||
<if test="testScoreTo != null "> and a.test_score <= #{testScoreTo}</if>
|
||||
<if test="student.classId != null "> and b.class_id = #{student.classId}</if>
|
||||
<if test="student.stuNo != null and student.stuNo != ''"> and b.stu_no = #{student.stuNo}</if>
|
||||
<if test="student.name != null and student.name != ''"> and b.name like #{student.name}</if>
|
||||
<if test="deptId != null "> and f.dept_id = #{deptId}</if>
|
||||
<if test="majorId != null "> and e.major_id = #{majorId}</if>
|
||||
</where>
|
||||
order by a.stu_year_id, d.class_name
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user