| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | * |
| | | * @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)) { |