snat策略下发增加action、serivce、doLog.
This commit is contained in:
@@ -40,7 +40,7 @@ public class IpMultiplexService extends BaseService{
|
||||
}
|
||||
|
||||
public IpReusePolicyCfg getPolicyCfg(Long cfgId, Integer isValid) {
|
||||
List<IpReusePolicyCfg> list=ipMultiplexDao.findList(cfgId,isValid,null);
|
||||
List<IpReusePolicyCfg> list=ipMultiplexDao.findList(cfgId,isValid);
|
||||
IpReusePolicyCfg policyCfg=null;
|
||||
if(list != null && list.size()>0){
|
||||
policyCfg=list.get(0);
|
||||
@@ -119,6 +119,7 @@ public class IpMultiplexService extends BaseService{
|
||||
cfg.setIsAudit(isAudit);
|
||||
cfg.setAuditorId(UserUtils.getUser().getId());
|
||||
cfg.setAuditTime(auditTime);
|
||||
cfg.setDoLog(null);;
|
||||
ipMultiplexDao.updatePolicyCfg(cfg);
|
||||
|
||||
SysDictInfoService sysDictInfoService = SpringContextHolder.getBean(SysDictInfoService.class);
|
||||
@@ -132,6 +133,9 @@ public class IpMultiplexService extends BaseService{
|
||||
params.put("addrPoolId", cfg.getAddrPoolId());
|
||||
params.put("userType", cfg.getUserType());
|
||||
params.put("userId", cfg.getUserId());
|
||||
params.put("doLog", cfg.getDoLog());
|
||||
params.put("action", cfg.getAction());
|
||||
params.put("service", cfg.getServiceId());
|
||||
params.put("isValid", 1);
|
||||
params.put("opTime", auditTime);
|
||||
params.put("effectiveRange", areaEffectiveIds);
|
||||
@@ -159,6 +163,9 @@ public class IpMultiplexService extends BaseService{
|
||||
params.put("addrPoolId", cfg.getAddrPoolId());
|
||||
params.put("userType", cfg.getUserType());
|
||||
params.put("userId", cfg.getUserId());
|
||||
params.put("doLog", cfg.getDoLog());
|
||||
params.put("action", cfg.getAction());
|
||||
params.put("service", cfg.getServiceId());
|
||||
params.put("isValid", 0);
|
||||
params.put("opTime", auditTime);
|
||||
params.put("effectiveRange", areaEffectiveIds);
|
||||
|
||||
Reference in New Issue
Block a user