This commit is contained in:
dute7liang
2024-01-01 21:41:13 +08:00
parent 0128d6437e
commit a39b919bae
39 changed files with 638 additions and 65 deletions

View File

@@ -52,6 +52,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
order by t2.last_live_time desc
</select>
<select id="getGreetNumId" resultType="java.lang.Long">
select t1.id
from cai_user t1
where t1.status = 0 and t1.gender = 2 and t1.no_greet = 0
and not exists(select 1 from cai_user_blacklist p1 where t1.id = p1.user_id)
and not exists(select 1 from cai_user_blacklist p2 where t1.id = p2.black_uid)
order by t1.update_time desc
limit 20
</select>
</mapper>