xiangpei
2024-05-09 7fead3526920951ed8f68d0f9aaf23fe632158ae
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>