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>