xiangpei
2024-05-10 f0cbe681cb28df22952fb8a6420424a7385ac9db
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>