增加删除所有配置规则功能.

This commit is contained in:
zhangwenqing
2019-04-16 16:46:16 +08:00
parent 3bd9c15566
commit a1998f24f7
11 changed files with 123 additions and 2 deletions

View File

@@ -30,5 +30,6 @@ public interface AsnGroupInfoDao extends CrudDao<AsnGroupInfo> {
Long getCount();
void modifyIssuedIp(AsnGroupInfo info);
void updateIpNum(@Param("v4Num")long v4Num,@Param("v6Num")long v6Num,@Param("groupId")Integer groupId);
List<Object[]> getASNIPNum(@Param("asnNo")Integer asnNo);
List<Object[]> getASNIPNum(@Param("asnNo")Integer asnNo);
void reLoadGroupInfo();
}

View File

@@ -290,5 +290,18 @@
</update>
<select id="getASNIPNum" resultType="map">
select v4_num,v6_num from asn_group_info where asn_id=#{asnNo}
</select>
</select>
<update id="reLoadGroupInfo">
UPDATE asn_group_info SET
issued_ips = 0,
is_used = 0,
org_group_id = null,
region_id = 0,
v4_num = 0,
v6_num = 0,
only_group_id = null
WHERE is_valid != -1
</update>
</mapper>