| | |
| | | import com.vci.starter.web.enumpck.VciFieldTypeEnum; |
| | | 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 javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | import javax.smartcardio.ATR; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @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 dealNumberCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealNumberCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | StringBuilder sb = new StringBuilder(); |
| | | if (VciFieldTypeEnum.VTInteger.name().equalsIgnoreCase(attributeVO.getAttrDataType())) { |
| | | sb.append("INT").append(SPACE); |
| | |
| | | * @return sql |
| | | */ |
| | | @Override |
| | | public String dealDoubleCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealDoubleCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | StringBuilder sb = new StringBuilder(); |
| | | Integer length = attributeVO.getPrecisionLength(); |
| | | if (length == null || length == 0) { |
| | |
| | | * @return sql |
| | | */ |
| | | @Override |
| | | public String dealBooleanCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealBooleanCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | return "VARCHAR (5) " + SPACE + dealDefaultAndNull(attributeVO); |
| | | } |
| | | |
| | |
| | | * @return sql |
| | | */ |
| | | @Override |
| | | public String dealDateTimeCreateSql(OmdBtmTypeAttributeVO attributeVO) { |
| | | public String dealDateTimeCreateSql(BtmTypeAttributeVO attributeVO) { |
| | | return "DATETIME" + SPACE + dealDefaultAndNull(attributeVO); |
| | | } |
| | | |