ludc
2023-04-26 7f0570d20aac189f1b170942bd7100b281a1c824
Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/service/impl/DdlServiceImpl.java
@@ -1,7 +1,7 @@
package com.vci.ubcs.ddl.service.impl;
import com.alibaba.nacos.client.naming.NacosNamingService;
import com.vci.starter.web.util.VciBaseUtil;
import com.vci.starter.word.bo.WordMergeStartTableDataBO;
import com.vci.ubcs.ddl.bo.DdlTableBO;
import com.vci.ubcs.ddl.bo.DdlTableInDataBaseBO;
@@ -20,6 +20,7 @@
import com.vci.ubcs.omd.vo.OsLinkTypeAttributeVO;
import com.vci.ubcs.omd.vo.OsLinkTypeVO;
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;
@@ -314,7 +315,7 @@
      btmTypeHasAttributeVOMap.forEach((k, v) -> {
         OmdBtmTypeVO btmTypeVO = OmdBtmTypeCache.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);
@@ -327,9 +328,9 @@
    *
    * @param tableName       表格名称
    * @param attributeVOList 属性的显示对象
    * @throws com.vci.starter.web.exception.VciBaseException 执行或者获取sql语句的时候出现错误会抛出异常
    * @throws VciBaseException 执行或者获取sql语句的时候出现错误会抛出异常
    */
   private void addColumnForTable(String tableName, List<OmdBtmTypeAttributeVO> attributeVOList) {
   private void addColumnForTable(String tableName, List<OmdBtmTypeAttributeVO> attributeVOList) throws VciBaseException{
      String attributeSql = dllMapper.getCreateSqlByAttributeForBtm(attributeVOList);
      //先判断表格是否存在
      if (!checkTableExistByTableName(tableName)) {