SELECT id,name,sex,id_card,file_birth_date,political_landscape,to_second_middle_school_time,current_professional_title,last_degree,on_duty_situation,dd_phone FROM school_teacher_basic_information where del_flag = 0
<iftest="teachingSubject != null "> and teaching_subject = #{teachingSubject}</if>
<iftest="name != null ">
AND name like concat('%', #{name}, '%')
...
...
@@ -30,10 +31,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
<iftest="onDutySituation != null "> and on_duty_situation = #{onDutySituation}</if>
<iftest="graduationInstitution1 != null ">
AND CONCAT(IFNULL(c.graduationInstitution1,''),IFNULL(c.graduationInstitution2,''),IFNULL(c.graduationInstitution3,'')) LIKE concat('%',#{graduationInstitution1},'%')}
AND CONCAT(IFNULL(graduation_institution1,''),IFNULL(graduation_institution2,''),IFNULL(graduation_institution3,'')) LIKE concat('%',#{graduationInstitution1},'%')
</if>
<iftest="firstDegree != null ">
AND CONCAT(IFNULL(c.firstDegree,''),IFNULL(c.lastDegree,'')) LIKE concat('%',#{firstDegree},'%')}
AND CONCAT(IFNULL(first_degree,''),IFNULL(last_degree,'')) LIKE concat('%',#{firstDegree},'%')