| | |
| | | package com.vci.ubcs.ddl.processor.dll; |
| | | |
| | | import com.vci.starter.web.enumpck.DataBaseEnum; |
| | | import com.vci.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.ddl.mapper.DllMapper; |
| | | import com.vci.ubcs.ddl.mapper.DllOracleMapper; |
| | | import com.vci.ubcs.omd.vo.OmdBtmTypeAttributeVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | |
| | | * @return sql语句 |
| | | */ |
| | | @Override |
| | | public String getCreateSqlByAttributeForBtm(List<OmdBtmTypeAttributeVO> attributeVOList) { |
| | | public String getCreateSqlByAttributeForBtm(List<BtmTypeAttributeVO> attributeVOList) { |
| | | StringBuilder sb = new StringBuilder(); |
| | | attributeVOList.forEach(a -> { |
| | | sb.append(a.getId()).append(SPACE); |
| | |
| | | * @return sql |
| | | */ |
| | | @Override |
| | | public String dealStringCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealStringCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | Integer length2 = attributeVO.getAttributeLength(); |
| | | StringBuilder sb = new StringBuilder(); |
| | | if(length2 == null){ |
| | |
| | | * @return sql |
| | | */ |
| | | @Override |
| | | public String dealDateTimeCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealDateTimeCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | return TIMESTAMP + SPACE + dealNullableSql(attributeVO); |
| | | } |
| | | |
| | |
| | | * @return sql |
| | | */ |
| | | @Override |
| | | public String dealBooleanCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealBooleanCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | return VARCHAR + "(5)" + SPACE + dealDefaultAndNull(attributeVO); |
| | | } |
| | | } |