无策略的欺骗ip校验的查询方法可复用初始化欺骗ip时ip的查询方法;
redis配置信息增加
This commit is contained in:
@@ -190,7 +190,9 @@ public class DnsIpCfgController extends BaseController {
|
||||
@ResponseBody
|
||||
@RequestMapping(value = {"/dnsNoStrategyCheck"})
|
||||
public boolean dnsNoStrategyCheck(DnsIpCfg entity, HttpServletRequest request, HttpServletResponse response){
|
||||
List<DnsIpCfg> list = dnsIpCfgService.getValidCfgInfo(entity);
|
||||
entity.setIsAudit(1);
|
||||
entity.setIsValid(1);
|
||||
List<DnsIpCfg> list = dnsIpCfgService.findDnsIpCfg(entity);
|
||||
if(list.size() > 0){
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -203,14 +203,6 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getValidCfgInfo" resultMap="dnsIpCfgMap">
|
||||
SELECT
|
||||
<include refid="columns"></include>
|
||||
FROM
|
||||
dns_ip_cfg r
|
||||
WHERE r.dns_strategy_id = #{dnsStrategyId} AND r.is_valid = 1 AND r.is_audit = 1
|
||||
</select>
|
||||
|
||||
<insert id="insert" parameterType="com.nis.domain.configuration.DnsIpCfg" >
|
||||
insert into dns_ip_cfg (
|
||||
CFG_DESC,
|
||||
|
||||
@@ -54,10 +54,6 @@ public class DnsIpCfgService extends BaseService{
|
||||
public DnsIpCfg getDnsIpCfg(Long cfgId) {
|
||||
return dnsIpCfgDao.getDnsIpCfg(cfgId);
|
||||
}
|
||||
public List<DnsIpCfg> getValidCfgInfo(DnsIpCfg cfg) {
|
||||
return dnsIpCfgDao.getValidCfgInfo(cfg);
|
||||
}
|
||||
|
||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||
public void saveOrUpdate(DnsIpCfg entity){
|
||||
Date createTime=new Date();
|
||||
|
||||
Reference in New Issue
Block a user