龚焕茏
2024-05-10 05d651ca0168025ec451702f1df88dab4f2a9559
src/main/resources/mapper/QuestionSubjectMapper.xml
@@ -55,4 +55,13 @@
        where subject_id = #{id} and qs.deleted = 0 and s.deleted = 0
    </select>
</mapper>
    <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>