From 5845950aa395da1a1f56a5fff4c80358cf4b5f7f Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 16 五月 2023 21:03:56 +0800
Subject: [PATCH] 新增引用码段下的参照配置界面,代码整合
---
Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java
index f493a6b..91bb8c2 100644
--- a/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java
@@ -532,7 +532,7 @@
if (!CollectionUtils.isEmpty(linkTypeVOList)) {
modifyAttributeInfoList.addAll(checkLinkType(linkTypeVOList));
}
- if (CollectionUtils.isEmpty(modifyAttributeInfoList)) {
+ if (!CollectionUtils.isEmpty(modifyAttributeInfoList)) {
reflexDifferent(modifyAttributeInfoList, btmTypeVOList, linkTypeVOList);
}
return modifyAttributeInfoList;
@@ -1104,13 +1104,13 @@
List<BtmTypeVO> btmTypeVOList = new ArrayList<>();
allTableBO.forEach(table -> {
BtmTypeVO vo = new BtmTypeVO();
- vo.setTableName(table.getTableName());
+ vo.setTableName(table.getTableName().toLowerCase());
vo.setDescription(table.getTableDesc());
List<DdlTableInDataBaseBO> columns = selectTableColumnInfo(table.getTableName());
List<BtmTypeAttributeVO> attributes = new ArrayList<>();
columns.forEach(col -> {
BtmTypeAttributeVO attributeVO = new BtmTypeAttributeVO();
- attributeVO.setId(col.getId());
+ attributeVO.setId(col.getId().toLowerCase());
attributeVO.setName(col.getName());
attributeVO.setNullableFlag(col.getNullableFlag());
attributeVO.setAttributeLength(col.getAttributeLength());
@@ -1120,6 +1120,9 @@
if (field != null){
attributeVO.setAttrDataType(field.name());
}
+ if(col.getPrecisionLength() != null){
+ attributeVO.setAttrDataType(VciFieldTypeEnum.VTDouble.name());
+ }
attributes.add(attributeVO);
});
vo.setAttributes(attributes);
--
Gitblit v1.9.3