田源
2023-05-09 549ecbf13b14a4deb74e42828abcd46ccb68a7c0
Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java
@@ -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);