src/main/resources/mapper/QuestionSubjectMapper.xml
@@ -55,4 +55,13 @@ where subject_id = #{id} and qs.deleted = 0 and s.deleted = 0 </select> <select id="countQuestionNum" resultType="integer"> SELECT count(distinct id) FROM t_question_subject WHERE subject_id IN <foreach collection="subjects" open="(" separator="," close=")" item="subjectId">#{subjectId}</foreach> </select> </mapper>