SELECT motorcade_id, organization_name, motorcade_name, motorcade_image, motorcade_describtion, motorcade_status, motorcade_header_id, motorcade_header_name, motorcade_header_account, motorcade_score, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, check_person_id, check_person_name, check_person_time, motorcade_dissolution_status FROM motorcade del_flag = 1 and motorcade_id = #{motorcadeId} and motorcade_name like concat('%', #{motorcadeName}, '%') and motorcade_image = #{motorcadeImage} and motorcade_describtion = #{motorcadeDescribtion} and motorcade_status = #{motorcadeStatus} and motorcade_header_id = #{motorcadeHeaderId} and motorcade_header_name like concat('%', #{motorcadeHeaderName}, '%') and motorcade_header_account like concat('%', #{motorcadeHeaderAccount}, '%') and motorcade_score = #{motorcadeScore} and create_by_name like concat('%', #{createByName}, '%') and update_by_name like concat('%', #{updateByName}, '%') and motorcade_dissolution_status = #{motorcadeDissolutionStatus} and organization_name like concat('%', #{organizationName}, '%') AND organization_id in #{id} AND m.motorcade_id = #{motorcadeDo.motorcadeId} AND (m.motorcade_header_id = #{motorcadeDo.myMotorcadeUserId} or d.user_id = #{motorcadeDo.myMotorcadeUserId}) AND m.motorcade_header_id = #{motorcadeDo.motorcadeHeaderId} AND d.user_id = #{motorcadeDo.userId}