select
a.*
from
common_route a
LEFT JOIN "USER" u ON a.user_id = u.user_id AND u.del_flag = 0
WHERE
a.del_flag = 1
and a.create_by = #{commonRouteDo.createBy}
and (a.mail_name like concat('%', #{commonRouteDo.synthesize}, '%') OR a.mail_phone LIKE concat('%', #{commonRouteDo.synthesize}, '%') OR a.mail_address_plot LIKE concat('%', #{commonRouteDo.synthesize}, '%')
OR a.addressee_name like concat('%', #{commonRouteDo.synthesize}, '%') OR a.addressee_phone LIKE concat('%', #{commonRouteDo.synthesize}, '%') OR a.addressee_address_plot LIKE concat('%', #{commonRouteDo.synthesize}, '%'))
and u.organization_id = #{commonRouteDo.organizationId}