| | |
| | | and candidate_no like concat('%', #{result},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询培训报名信息--> |
| | | <select id="getTrainingRegistrationInfo" resultType="java.lang.Integer"> |
| | | select 1 from sys_training_registration |
| | | where 1=1 |
| | | and cancel = 1 |
| | | and is_exam = 1 |
| | | <if test="trainingRegistration.userId!=null and trainingRegistration.userId!=''"> |
| | | and user_id = #{trainingRegistration.userId} |
| | | </if> |
| | | <if test="trainingRegistration.trainExamId!=null and trainingRegistration.trainExamId!=''"> |
| | | and train_exam_id = #{trainingRegistration.trainExamId} |
| | | </if> |
| | | limit 1 |
| | | </select> |
| | | </mapper> |