26号之前的asn ip导入版本,区分ipv4和ipv6,v4和v6互不影响

This commit is contained in:
duandongmei
2019-01-29 09:22:33 +06:00
parent 32d4ad3cd7
commit 2abffe2e34
5 changed files with 42 additions and 35 deletions

View File

@@ -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);
}

View File

@@ -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>