修正抗ddos攻击修改时多余提示信息

This commit is contained in:
wangwei
2019-04-28 15:11:41 +08:00
committed by duandongmei
parent 92605e323e
commit 8c5b78d165

View File

@@ -58,6 +58,12 @@ public class DdosCfgController extends BaseController {
@ModelAttribute("cfg") DdosIpCfg cfg) {
if (!StringUtil.isEmpty(ids)) {
cfg = ddosCfgService.getDdosIpCfg(Long.parseLong(ids), null);
if(cfg.getBpsThreadshold()==0){
cfg.setBpsThreadshold(null);
};
if(cfg.getPpsThreadshold()==0){
cfg.setPpsThreadshold(null);
};
initUpdateFormCondition(model, cfg);
} else {
initFormCondition(model, cfg);