ludc
2024-12-09 3ff6166ea62799068064845fb083d1abb3d902a6
Source/plt-web/plt-web-parent/plt-web-permission/src/main/java/com/vci/web/util/WebUtil.java
@@ -1175,15 +1175,15 @@
         if(newAList!=null&&newAList.length>0){
            for(int i = 0 ; i < newAList.length;i++){
               com.vci.corba.omd.data.AttributeValue av = newAList[i];
               String attrName = av.attrName.toLowerCase();
               String attrName = av.name.toLowerCase();
               if(fieldAttrMap.containsKey(attrName)) {
                  String fieldName = fieldAttrMap.get(attrName);
                  setValueForFieldFromCbo(fieldName, obj, av.attrVal);
                  setValueForFieldFromCbo(fieldName, obj, av.value);
               }else{
                  fieldAttrMap.forEach((cboField,fieldName)->{
                     if(fieldName!=null && fieldName.equalsIgnoreCase(attrName) && cboField.contains(".")){
                        //参照的时候
                        setValueForFieldFromCbo(fieldName, obj, av.attrVal);
                        setValueForFieldFromCbo(fieldName, obj, av.value);
                        return;
                     }
                  });
@@ -1193,15 +1193,15 @@
         if(hisAList!=null&&hisAList.length>0){
            for(int i = 0 ; i < hisAList.length;i++){
               com.vci.corba.omd.data.AttributeValue av = hisAList[i];
               String attrName = av.attrName.toLowerCase();
               String attrName = av.name.toLowerCase();
               String fieldName = fieldAttrMap.get(attrName);
               if(fieldName!=null){
                  setValueForFieldFromCbo(fieldName, obj, av.attrVal);
                  setValueForFieldFromCbo(fieldName, obj, av.value);
               }else{
                  fieldAttrMap.forEach((cboField,field)->{
                     if(field!=null && field.equalsIgnoreCase(attrName) && cboField.contains(".")){
                        //参照的时候
                        setValueForFieldFromCbo(field, obj, av.attrVal);
                        setValueForFieldFromCbo(field, obj, av.value);
                        return;
                     }
                  });
@@ -1235,15 +1235,15 @@
         if(hisAList!=null&&hisAList.length>0){//
            for(int i = 0 ; i < hisAList.length;i++){
               com.vci.corba.omd.data.AttributeValue av = hisAList[i];
               String attrName = av.attrName.toLowerCase();
               map.put(attrName, av.attrVal);
               String attrName = av.name.toLowerCase();
               map.put(attrName, av.value);
            }
         }
         if(newAList!=null&&newAList.length>0){//NEW的优先级高些
            for(int i = 0 ; i < newAList.length;i++){
               com.vci.corba.omd.data.AttributeValue av = newAList[i];
               String attrName = av.attrName.toLowerCase();
               map.put(attrName, av.attrVal);
               String attrName = av.name.toLowerCase();
               map.put(attrName, av.value);
            }
         }
      }
@@ -1276,15 +1276,15 @@
         if(hisAList!=null&&hisAList.length>0){
            for(int i = 0 ; i < hisAList.length;i++){
               AttributeValue av = hisAList[i];
               String attrName = av.attrName.toLowerCase();
               map.put(attrName, av.attrVal);
               String attrName = av.name.toLowerCase();
               map.put(attrName, av.value);
            }
         }
         if(newAList!=null&&newAList.length>0){
            for(int i = 0 ; i < newAList.length;i++){
               AttributeValue av = newAList[i];
               String attrName = av.attrName.toLowerCase();
               map.put(attrName, av.attrVal);
               String attrName = av.name.toLowerCase();
               map.put(attrName, av.value);
            }
         }
       }
@@ -1327,18 +1327,18 @@
         if(newAList!=null&&newAList.length>0){
            for(int i = 0 ; i < newAList.length;i++){
               AttributeValue av = newAList[i];
               String attrName = av.attrName.toLowerCase();
               String attrName = av.name.toLowerCase();
               String fieldName = fieldAttrMap.get(attrName);
               setValueForFieldFromCbo(fieldName, obj, av.attrVal);//依然使用CBO的处理方式
               setValueForFieldFromCbo(fieldName, obj, av.value);//依然使用CBO的处理方式
            }
         }
         if(hisAList!=null&&hisAList.length>0){
            for(int i = 0 ; i < hisAList.length;i++){
               AttributeValue av = hisAList[i];
               String attrName = av.attrName.toLowerCase();
               String attrName = av.name.toLowerCase();
               String fieldName = fieldAttrMap.get(attrName);
               if(fieldName!=null){
                  setValueForFieldFromCbo(fieldName, obj, av.attrVal);
                  setValueForFieldFromCbo(fieldName, obj, av.value);
               }
            }
         }
@@ -1718,8 +1718,8 @@
         for (int i = 0; i < select.getSelectItems().size(); i++) {
            SelectItem selectItem = select.getSelectItem(i);
            AttributeValue attributeValue = new AttributeValue();
            attributeValue.attrName = selectItem.getAlias().getName();
            attributeValue.attrVal   = valueArry[i];
            attributeValue.name = selectItem.getAlias().getName();
            attributeValue.value = valueArry[i];
            attributeValues[i] = attributeValue;
         }
         BusinessObject.newAttrValList= attributeValues;