`id`,`tenant_id`,`img_url`,`name`,`link_phone`,`create_date`,`update_date`,`car_vendor_type`,`car_params`,`status`,`link_person`, `business_id`,`sub_business_id`,`shop_type`,`brand`,`type`,`is_public`,email,`title`,`cover_picture`,`is_admin`,`bill_setting` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `img_url` like concat('%', #{imgUrl},'%') and `name` like concat('%', #{name},'%') and `link_phone` like concat('%', #{linkPhone},'%') and `create_date` = #{createDate} and `update_date` = #{updateDate} and `car_vendor_type` = #{carVendorType} and `business_id` = #{businessId} and `sub_business_id` = #{subBusinessId} and `car_params` like concat('%', #{carParams},'%') and `status` = #{status} and `link_person` = #{linkPerson} and `type` = #{type} and `is_public` = #{isPublic} and `email` = #{email} and `is_admin` = #{isAdmin} and id not in( select merchant_id from wx_rent_contract where tenant_id=#{tenantId} and rent_shop_type=1 and merchant_id is not null and status in(1,2,3,4) ) and id in #{idItem} order by ${sortColumns} m.id,m.img_url,m.name,m.link_phone,m.status,m.business_id,m.sub_business_id, m.is_public,m.email,m.title,m.cover_picture,b.name as brand_name,b.logo as brand_img, m.shop_type,bu.title as business_name,b.summary