`id`,`phone`,`birthdate`,`education`,`sex`,`email`,`address`,`poins`,`tag_id`, `create_date`,`update_date`,`tenant_id`,`name`,`level`,`nick_name` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `phone` like concat('%', #{phone},'%') and `birthdate` = #{birthdate} and `education` like concat('%', #{education},'%') and `sex` = #{sex} and `email` like concat('%', #{email},'%') and `address` like concat('%', #{address},'%') and `poins` = #{poins} and `tag_id` = #{tagId} and `create_date` = #{createDate} and `update_date` = #{updateDate} and `name` like concat('%', #{name},'%') and `create_date` between #{startTime} and #{endTime} and id in #{idItem} order by ${sortColumns} c.`id`,c.`phone`,cb.`birthdate`,cb.`education`,cb.`sex`,cb.`email`,cb.`address`,cb.`poins`,cb.`tag_id`, cb.`create_date`,cb.`update_date`,c.`tenant_id`,cb.`name`,cb.level,cb.nick_name update wx_c_user_basic_info set poins=#{poins} where phone=#{phone} and tenant_id=#{tenantId} and id=#{id} update wx_c_user_basic_info set id=#{newId} where tenant_id=#{tenantId} and id = #{id}