cmt_meeting_record_template.name as template_name,
cmt_meeting_record_template.type as template_type_type,
cmt_meeting_record_template.type_detail as template_type_detail,
cmt_meeting_record_template.prompt as template_prompt,
cmt_meeting_record_template.refer_template_id as template_refer_template_id,
cmt_meeting_record_template.create_user as template_create_user,
cmt_meeting_record_template.update_time as template_create_time,
meet_type.name as meeting_type_name
from
cmt_meeting_record_template,
meet_type
<where>
cmt_meeting_record_template.is_del = 0
and cmt_meeting_record_template.meeting_type = meet_type.id
<iftest="name != null and name != ''">and cmt_meeting_record_template.name like concat('%', #{name}, '%')</if>
<iftest="type != null and type != ''">and cmt_meeting_record_template.type = #{type}</if>
<iftest="meetingType != null and meetingType != ''">and meet_type.name like concat('%', #{meetingType}, '%')</if>
<iftest="createUser != null and createUser != ''">and (cmt_meeting_record_template.create_user like concat('%', #{createUser}, '%') or cmt_meeting_record_template.create_user_name like concat('%', #{createUser}, '%') )</if>