| | |
| | | bd.id = bu.dept_id |
| | | WHERE |
| | | 1=1 |
| | | and is_exam = 1 |
| | | <if test="apply.name!=null and apply.name!=''"> |
| | | and sa.name like concat('%', #{apply.name},'%') |
| | | </if> |
| | |
| | | bd.id = bu.dept_id |
| | | WHERE |
| | | 1=1 |
| | | and is_exam = 1 |
| | | <if test="apply.name!=null and apply.name!=''"> |
| | | and sa.name like concat('%', #{apply.name},'%') |
| | | </if> |
| | |
| | | and sa.exam_id = #{apply.examId} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <!--查询人员是否已经报名--> |
| | | <select id="getIsApply" resultType="java.lang.Integer"> |
| | | select 1 from sys_apply |
| | | where 1=1 |
| | | and is_exam = 1 |
| | | and user_id = #{apply.userId} |
| | | and exam_id = #{apply.examId} |
| | | and (apply_status = 1 or apply_status = 2) |
| | | limit 1 |
| | | </select> |
| | | </mapper> |