`id`,`tenant_id`,`img_url`,`name`,`link_phone`,`create_date`,`update_date`,`car_vendor_type`,`car_params`,`status`,`link_person`,
`business_id`,`shop_type`,`brand`,`type`,`is_public`,email
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 `car_params` like concat('%', #{carParams},'%')
and `status` = #{status}
and `link_person` = #{linkPerson}
and `type` = #{type}
and `is_public` = #{isPublic}
and `email` = #{email}
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,
s.addr,s.shop_number,s.baidu_poi,
mb.building_name,mf.floor_name,m.is_public,m.email