ludc
2024-12-09 3ff6166ea62799068064845fb083d1abb3d902a6
Source/plt-web/plt-web-parent/plt-web-permission/src/main/java/com/vci/web/service/impl/WebBoServiceImpl.java
@@ -170,7 +170,7 @@
      String userName = WebUtil.getCurrentUserId();
      BusinessObject bo = new BusinessObject();
      bo.oid = (new ObjectUtility()).getNewObjectID36();
      bo.revisionid = (new ObjectUtility()).getNewObjectID36();
      bo.revoid = (new ObjectUtility()).getNewObjectID36();
      bo.nameoid = (new ObjectUtility()).getNewObjectID36();
      bo.btName = boName;
      bo.isLastR = true;
@@ -243,7 +243,7 @@
       if(cbo !=null){
         BusinessObject businessObject = new BusinessObject();
         businessObject.oid = new ObjectUtility().getNewObjectID36();
         businessObject.revisionid = new ObjectUtility().getNewObjectID36();
         businessObject.revoid = new ObjectUtility().getNewObjectID36();
         businessObject.nameoid = new ObjectUtility().getNewObjectID36();
         businessObject.btName = cbo.btName;
         businessObject.isLastR = cbo.isLastR;
@@ -288,7 +288,7 @@
   private  AttributeValue[] clone(AttributeValue[] newAttrValList) {
      AttributeValue[] n = new AttributeValue[newAttrValList.length];
      for (int i = 0; i < newAttrValList.length; i++) {
         n[i] = new AttributeValue(newAttrValList[i].attrName,newAttrValList[i].attrVal);
         n[i] = new AttributeValue(newAttrValList[i].name,newAttrValList[i].value);
      }
      return n;
   }
@@ -614,8 +614,8 @@
      AttributeValue[] attributeValueList = new AttributeValue[attributeValues.length];
      for (int i = 0; i < attributeValues.length; i++) {
         AttributeValue newAttributeValue = new AttributeValue();
         newAttributeValue.attrName = attributeValues[i].attrName;
         newAttributeValue.attrVal = attributeValues[i].attrVal;
         newAttributeValue.name = attributeValues[i].name;
         newAttributeValue.value = attributeValues[i].value;
         attributeValueList[i] = newAttributeValue;
      }
      return attributeValueList;
@@ -843,8 +843,8 @@
      for (i = 0; i < attrValList.size(); ++i) {
         attrVal = (AttributeValue) attrValList.get(i);
         if (attrVal.attrName.toUpperCase().equals(attributeName.toUpperCase())) {
            attrVal.attrVal = attributeValue;
         if (attrVal.name.toUpperCase().equals(attributeName.toUpperCase())) {
            attrVal.value = attributeValue;
            isExist = true;
            break;
         }
@@ -852,8 +852,8 @@
      if (!isExist) {
         attrVal = new AttributeValue();
         attrVal.attrName = attributeName.toUpperCase();
         attrVal.attrVal = attributeValue;
         attrVal.name = attributeName.toUpperCase();
         attrVal.value = attributeValue;
         attrValList.add(attrVal);
      }
@@ -2357,9 +2357,9 @@
            if (bo.newAttrValList != null) {
               for (int i = 0; i < bo.newAttrValList.length; ++i) {
                  AttributeValue av = bo.newAttrValList[i];
                  if (WebUtil.isNormalAttr(av.attrName)) {
                     if(av.attrVal == null){
                        av.attrVal = "";
                  if (WebUtil.isNormalAttr(av.name)) {
                     if(av.value == null){
                        av.value = "";
                     }
                     newAttr.add(av);
                  }