ludc
2023-04-26 3cb0cef6f7189dcbb537df52cef5921d1d2c3cd9
Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java
@@ -1,6 +1,11 @@
package com.vci.ubcs.ddl.service.impl;
<<<<<<< HEAD
import com.alibaba.nacos.client.naming.NacosNamingService;
=======
import com.vci.starter.web.util.VciBaseUtil;
>>>>>>> dd3a6c681f938fd53d5f6cc3a4fcee40e71b259c
import com.vci.starter.word.bo.WordMergeStartTableDataBO;
import com.vci.ubcs.ddl.bo.DdlTableBO;
import com.vci.ubcs.ddl.bo.DdlTableInDataBaseBO;
@@ -19,6 +24,7 @@
import com.vci.ubcs.omd.vo.LinkTypeAttributeVO;
import com.vci.ubcs.omd.vo.LinkTypeVO;
import com.vci.ubcs.starter.exception.VciBaseException;
import com.vci.ubcs.starter.web.util.VciBaseUtil;
import org.apache.commons.lang3.StringUtils;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.BeanUtil;
@@ -313,7 +319,7 @@
      btmTypeHasAttributeVOMap.forEach((k, v) -> {
         BtmTypeVO btmTypeVO = BtmTypeCache.getDetail(k);
         if (btmTypeVO == null || StringUtils.isBlank(btmTypeVO.getOid())) {
            throw new com.vci.starter.web.exception.VciBaseException("要修改属性列长度的业务类型不存在");
            throw new VciBaseException("要修改属性列长度的业务类型不存在");
         }
         if (!isCompatibilityTable(btmTypeVO.getId(), null)) {
            addColumnForTable(btmTypeVO.getTableName(), v);
@@ -326,9 +332,13 @@
    *
    * @param tableName       表格名称
    * @param attributeVOList 属性的显示对象
    * @throws com.vci.starter.web.exception.VciBaseException 执行或者获取sql语句的时候出现错误会抛出异常
    * @throws VciBaseException 执行或者获取sql语句的时候出现错误会抛出异常
    */
<<<<<<< HEAD
   private void addColumnForTable(String tableName, List<OmdBtmTypeAttributeVO> attributeVOList) throws VciBaseException{
=======
   private void addColumnForTable(String tableName, List<BtmTypeAttributeVO> attributeVOList) {
>>>>>>> dd3a6c681f938fd53d5f6cc3a4fcee40e71b259c
      String attributeSql = dllMapper.getCreateSqlByAttributeForBtm(attributeVOList);
      //先判断表格是否存在
      if (!checkTableExistByTableName(tableName)) {