From d1ebae3f837f69af8d7d8f752ebd7b976b56db2a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期一, 29 一月 2024 09:46:24 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复

---
 Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/BtmTypeServiceImpl.java |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/BtmTypeServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/BtmTypeServiceImpl.java
index d984f0a..1d2927e 100644
--- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/BtmTypeServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/BtmTypeServiceImpl.java
@@ -985,7 +985,7 @@
 				BtmTypeAttributeVO vo = new BtmTypeAttributeVO();
 				vo.setId(id);
 				vo.setName(name);
-				vo.setIseDfaultAttr(true);
+				vo.setIsDefaultAttr(true);
 				if ("oid".equals(id)){
 					vo.setNullableFlag(false);
 				}
@@ -1004,9 +1004,14 @@
 				BtmTypeAttributeVO vo = new BtmTypeAttributeVO();
 				vo.setId(id);
 				vo.setName(name);
-				vo.setIseDfaultAttr(false);
-				vo.setAttrDataType(VciFieldTypeEnum.VTString.name());
-				vo.setAttributeLength(150);
+				vo.setIsDefaultAttr(false);
+				if (Arrays.asList("codeclsfpath").contains(id)){
+					vo.setAttrDataType(VciFieldTypeEnum.VTString.name());
+					vo.setAttributeLength(500);
+				}else {
+					vo.setAttrDataType(VciFieldTypeEnum.VTString.name());
+					vo.setAttributeLength(255);
+				}
 				list.add(vo);
 			});
 		}
@@ -1021,7 +1026,7 @@
 				// 鐗堟湰瑙勫垯瀛楁涓嶈兘涓虹┖
 //				vo.setNullableFlag(false);
 				vo.setAttributeLength(150);
-				vo.setIseDfaultAttr(true);
+				vo.setIsDefaultAttr(true);
 				if (Arrays.asList("revisionseq","versionseq").contains(id)){
 					vo.setAttributeLength(5);
 					vo.setAttrDataType(VciFieldTypeEnum.VTInteger.name());
@@ -1041,7 +1046,7 @@
 				vo.setId(id);
 				vo.setName(name);
 //				vo.setNullableFlag(false);
-				vo.setIseDfaultAttr(true);
+				vo.setIsDefaultAttr(true);
 				vo.setAttributeLength(50);
 				vo.setAttrDataType(VciFieldTypeEnum.VTString.name());
 				list.add(vo);
@@ -1050,4 +1055,5 @@
 
 		return list;
 	}
+
 }

--
Gitblit v1.9.3