修复选择导出异常

This commit is contained in:
wangxin
2019-06-24 11:14:56 +08:00
parent 7dfe52590b
commit 7ad3d9a80b

View File

@@ -581,7 +581,7 @@ public class ObjectGroupService extends BaseService {
Map<Integer,PolicyGroupInfo> policyGroupInfoMapCopy=new HashMap<>();
policyGroupInfoMapCopy.putAll(policyGroupInfoMap);
for (ObjGroupCfg c : list) {
for(Map.Entry<Integer,PolicyGroupInfo> e:policyGroupInfoMap.entrySet()){
for(Map.Entry<Integer,PolicyGroupInfo> e:policyGroupInfoMapCopy.entrySet()){
if(c.getCommonGroupIds().indexOf(","+e.getKey()+",")>-1){
if(e.getValue().getGroupType().equals(Constants.IP_OBJ_GROUP_TYPE)){
String name=(StringUtils.isBlank(c.getIpGroup())?"":c.getIpGroup())+","+e.getValue().getGroupName();