| | |
| | | |
| | | <select id="selectExamPaperPage" resultType="org.springblade.modules.exam.vo.ExamPaperVO"> |
| | | SELECT |
| | | * |
| | | ke.*, |
| | | bu.real_name realName, |
| | | bd.dept_name deptName |
| | | FROM |
| | | ksxt_exam |
| | | ksxt_exam ke |
| | | left join |
| | | blade_user bu |
| | | on |
| | | ke.creator = bu.id |
| | | left join |
| | | blade_dept bd |
| | | on |
| | | bd.id = bu.dept_id |
| | | where |
| | | 1=1 |
| | | <if test="paper.examType!=null and paper.examType!=''"> |
| | |
| | | <if test="paper.examName!=null and paper.examName!=''"> |
| | | and exam_name like concat('%',#{paper.examName},'%') |
| | | </if> |
| | | <if test="paper.deptId!=null and paper.deptId!=''"> |
| | | and bd.id = #{paper.deptId} |
| | | </if> |
| | | <if test="paper.auditStatus!=null and paper.auditStatus!=''"> |
| | | and audit_status = #{paper.auditStatus} |
| | | </if> |