| | |
| | | <!--自定义树--> |
| | | <select id="selectTrainExamPageTree" resultType="org.springblade.modules.training.entity.TrainExam"> |
| | | select |
| | | id,train_exam_name trainExamName |
| | | ke.id,ke.exam_name trainExamName |
| | | from |
| | | sys_train_exam |
| | | ksxt_exam ke |
| | | left join |
| | | sys_train_exam ste |
| | | on |
| | | ke.train_exam_id = ste.id |
| | | where |
| | | 1=1 |
| | | and ste.audit_status = 1 |
| | | and ke.exam_type = 2 |
| | | <if test="trainExam.trainExamName!=null and trainExam.trainExamName!=''"> |
| | | and sr.train_exam_name like concat('%', #{trainExam.trainExamName},'%') |
| | | and ske.exam_name like concat('%', #{trainExam.trainExamName},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |