qirong
2023-07-16 6c12bcfde3b2d5c910ed1b11112442237021ac09
src/main/resources/mapper/ExamPaperMapper.xml
@@ -233,15 +233,15 @@
    left join t_exam_paper_department d on e.id = d.exam_paper_id
    left join t_exam_paper_subject s on e.id = s.exam_paper_id
    <where>
        and e.deleted=0 and d.deleted = 0
        and e.deleted=0
      <if test="id != null ">
        and e.id= #{id}
      </if>
      <if test="level != null ">
        and d.department_id= #{level}
        and d.department_id= #{level} and d.deleted = 0
      </if>
      <if test="subjectId != null ">
        and s.subject_id= #{subjectId}
        and s.subject_id= #{subjectId} and s.deleted = 0
      </if>
      <if test="paperType != null ">
        and e.paper_type= #{paperType}