From 2a46259ac136e4318a6a0ddde632f9fd481c2441 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期一, 22 七月 2024 09:50:02 +0800 Subject: [PATCH] fix:成绩统计修改为统计选择参考的部门,即使无人参考 --- src/main/resources/mapper/QuestionSubjectMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/QuestionSubjectMapper.xml b/src/main/resources/mapper/QuestionSubjectMapper.xml index f46a7f3..e9912cf 100644 --- a/src/main/resources/mapper/QuestionSubjectMapper.xml +++ b/src/main/resources/mapper/QuestionSubjectMapper.xml @@ -148,4 +148,17 @@ tq.id DESC </select> + <select id="getSubjectBySubjectIds" resultType="com.mindskip.xzs.domain.QuestionSubject"> + select qs.*,s.name as subName + from t_question_subject qs + left join t_subject s on qs.subject_id = s.id + where qs.deleted = 0 and s.deleted = 0 + <if test="subjectIds != null and subjectIds.length > 0"> + and qs.subject_id in + <foreach collection="subjectIds" item="subjectId" open="(" separator="," close=")"> + #{subjectId} + </foreach> + </if> + </select> + </mapper> -- Gitblit v1.8.0