26号之前的asn ip导入版本,区分ipv4和ipv6,v4和v6互不影响
This commit is contained in:
@@ -32,5 +32,6 @@ public interface AsnIpCfgDao extends CrudDao<AsnIpCfg>{
|
||||
public int hasValidAsnIp(@Param("asnId")Long asnNo);
|
||||
public AsnIpCfg getOne(AsnIpCfg cfg);
|
||||
public void updateAsn(@Param("asnId")String asnNo,@Param("organization")String organization,@Param("country")String country,@Param("detail")String detail);
|
||||
public List<Object[]> findAllAsnIpCfgList();
|
||||
public List<Object[]> findAllAsnIpCfgList();
|
||||
public int deleteByAsnIdAndIpType(@Param("asnId")String ids,@Param("ipType")Integer ipType);
|
||||
}
|
||||
|
||||
@@ -636,5 +636,14 @@
|
||||
<include refid="columns"></include>
|
||||
from asn_ip_cfg r
|
||||
where r.is_valid !=-1
|
||||
</select>
|
||||
</select>
|
||||
<delete id="deleteByAsnIdAndIpType" >
|
||||
delete from asn_ip_cfg
|
||||
<where>
|
||||
and user_region1 in(${asnId})
|
||||
<if test="ipType != null" >
|
||||
and ip_type = #{ipType,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user