delete from `bl_attention_pool`
user_id = #{userId}
and attention_id = #{attentionId}
delete from `bl_attention_pool` where user_id = #{userId}
and brand_id = #{brandId} and wd_id = ''
and wd_id = #{wdId}
select * from `bl_attention_pool`
user_id = #{userId}
and (
contact like concat('%',#{text},'%')
or telephone like concat('%',#{text},'%')
or wd_name like concat('%',#{text},'%')
or wd_addr_info like concat('%',#{text},'%')
or brand_name like concat('%',#{text},'%')
)
order by attention_time desc
select count(*) from `bl_attention_pool`
user_id = #{userId}
select * from `bl_attention_pool` where user_id = #{userId}
and brand_id = #{brandId} and wd_id = ''
and wd_id = #{wdId}
select * from `bl_attention_pool`
user_id = #{userId}
and attention_id = #{attentionId}
SELECT DISTINCT
user_id
FROM
`bl_attention_pool`;
SELECT
COUNT(*) count
FROM
`bl_attention_pool`
WHERE
user_id = #{userId}