| | |
| | | |
| | | <!--查询当前考试的报名人员数量,模拟考试--> |
| | | <select id="getTrainNumber" resultType="java.lang.Integer"> |
| | | select count(*) from sys_training_registration |
| | | select count(*) from sys_training_registration str |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.id = str.user_id |
| | | where |
| | | train_exam_id = #{examPaper.id} |
| | | and cancel = 1 |
| | | bu.is_deleted = 0 and bu.status = 1 |
| | | and train_exam_id = #{examPaper.id} |
| | | </select> |
| | | |
| | | <!--根据用户id查询报名信息--> |
| | |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <!--查询当前考试的报名人员数量,模拟考试--> |
| | | <select id="getExamNumber" resultType="java.lang.Integer"> |
| | | select count(*) from sys_training_registration str |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.id = str.user_id |
| | | where |
| | | bu.is_deleted = 0 and bu.status = 1 |
| | | and train_exam_id = #{examPaper.id} |
| | | and (is_exam = 2 or is_exam = 3) |
| | | and cancel = 1 |
| | | </select> |
| | | |
| | | </mapper> |