`id`,`tenant_id`,`parent_tenant_id`,`name`,`alipay_user_id`,`phone`,`card_open`,`user_id`,`update_date`,`create_date`
where 1=1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `name` like concat('%', #{name},'%')
and `alipay_user_id` = #{alipayUserId}
and `phone` = #{phone}
and `user_id` = #{userId}
and id in
#{idItem}
order by ${sortColumns}
update alipay_c_user set user_id=#{userId}
where id = #{id} and `tenant_id` = #{tenantId}