From 3ff6166ea62799068064845fb083d1abb3d902a6 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 09 十二月 2024 14:47:42 +0800
Subject: [PATCH] plt-slice属性调整后WEB端引用的旧属性也做了相应的调整

---
 Source/plt-web/plt-web-parent/plt-web-permission/src/main/java/com/vci/web/util/WebUtil.java |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web-permission/src/main/java/com/vci/web/util/WebUtil.java b/Source/plt-web/plt-web-parent/plt-web-permission/src/main/java/com/vci/web/util/WebUtil.java
index b797540..0659902 100644
--- a/Source/plt-web/plt-web-parent/plt-web-permission/src/main/java/com/vci/web/util/WebUtil.java
+++ b/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;

--
Gitblit v1.9.3