修正界面行为一列部分未展示的bug

This commit is contained in:
wangxin
2018-10-07 20:19:55 +08:00
parent 34d56b814e
commit f373fa1a3c
2 changed files with 8 additions and 8 deletions

View File

@@ -91,10 +91,10 @@ public class AppCfgController extends BaseController {
second.setIsLeaf(1); second.setIsLeaf(1);
List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null); List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null);
//遍历,找到匹配项后将行为设置进去 //遍历,找到匹配项后将行为设置进去
for(SpecificServiceCfg secondCfg:secondList) {
if(secondCfg.getSpecServiceCode()==null) continue;
for(AppPolicyCfg entity:page.getList()){ for(AppPolicyCfg entity:page.getList()){
if(entity.getBehavCode()==null) continue; if(entity.getBehavCode()==null) continue;
for(SpecificServiceCfg secondCfg:secondList) {
if(secondCfg.getSpecServiceCode()==null) continue;
if(secondCfg.getSpecServiceCode().intValue()==entity.getBehavCode().intValue()) { if(secondCfg.getSpecServiceCode().intValue()==entity.getBehavCode().intValue()) {
entity.setBehavName(secondCfg.getSpecServiceName()); entity.setBehavName(secondCfg.getSpecServiceName());
break; break;

View File

@@ -66,10 +66,10 @@ public class EncryptedTunnelBehaviorController extends BaseController {
second.setIsLeaf(1); second.setIsLeaf(1);
List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null); List<SpecificServiceCfg> secondList=specificServiceCfgService.findAllSpecificServiceCfg(second, null);
//遍历,找到匹配项后将行为设置进去 //遍历,找到匹配项后将行为设置进去
for(SpecificServiceCfg secondCfg:secondList) {
if(secondCfg.getSpecServiceCode()==null) continue;
for(AppPolicyCfg entity:page.getList()){ for(AppPolicyCfg entity:page.getList()){
if(entity.getBehavCode()==null) continue; if(entity.getBehavCode()==null) continue;
for(SpecificServiceCfg secondCfg:secondList) {
if(secondCfg.getSpecServiceCode()==null) continue;
if(secondCfg.getSpecServiceCode().intValue()==entity.getBehavCode().intValue()) { if(secondCfg.getSpecServiceCode().intValue()==entity.getBehavCode().intValue()) {
entity.setBehavName(secondCfg.getSpecServiceName()); entity.setBehavName(secondCfg.getSpecServiceName());
break; break;