| | |
| | | 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} |