qirong
2023-06-19 239c97e6701bc5ee5a1b9b890003dd6cd2132f48
src/main/resources/mapper/QuestionMapper.xml
@@ -192,7 +192,11 @@
        and q.grade_level= #{level}
      </if>
      <if test="subjectId != null ">
        and qs.subject_id= #{subjectId}
        and qs.subject_id in
        <foreach item="subjectId" collection="subjectId" open="(" separator=","
                 close=")">
          #{subjectId}
        </foreach>
      </if>
      <if test="questionType != null ">
        and q.question_type= #{questionType}
@@ -201,6 +205,7 @@
        and q.info_text_content_id in (SELECT id FROM t_text_content WHERE content like concat('%',#{content},'%') )
      </if>
    </where>
    group by q.id
  </select>