This commit is contained in:
777
2025-12-08 10:02:10 +08:00
parent 513954ccf1
commit a71249ed12
10 changed files with 105 additions and 37 deletions

View File

@@ -11,5 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createTime" column="create_time"/>
</resultMap>
<insert id="refreshIp">
insert into cai_ip_black(`ip_addr`,`enable_status`)
select t1.ip_addr,1
from cai_ip_record t1
left join cai_ip_black t2 on t1.ip_addr = t2.ip_addr
where t1.number > #{ipNumber} and t1.count_date = #{now} and t2.id is null;
</insert>
</mapper>