| | |
| | | if(StringUtils.isBlank(idAttr.getName())){ |
| | | idAttr.setName("编号"); |
| | | } |
| | | idAttr.setAttrDataType(VciFieldTypeEnum.VTString.name()); |
| | | idAttr.setAttributeDataType(VciFieldTypeEnum.VTString.name()); |
| | | if(idAttr.getAttributeLength() == null || idAttr.getAttributeLength() <= 0){ |
| | | idAttr.setAttributeLength(50); |
| | | } |
| | |
| | | if(StringUtils.isBlank(nameAttr.getName())){ |
| | | nameAttr.setName("名称"); |
| | | } |
| | | nameAttr.setAttrDataType(VciFieldTypeEnum.VTString.name()); |
| | | nameAttr.setAttributeDataType(VciFieldTypeEnum.VTString.name()); |
| | | if(nameAttr.getAttributeLength() == null || nameAttr.getAttributeLength() <= 0){ |
| | | nameAttr.setAttributeLength(150); |
| | | } |
| | |
| | | if(StringUtils.isBlank(descAttr.getName())){ |
| | | descAttr.setName("描述"); |
| | | } |
| | | descAttr.setAttrDataType(VciFieldTypeEnum.VTString.name()); |
| | | descAttr.setAttributeDataType(VciFieldTypeEnum.VTString.name()); |
| | | if(descAttr.getAttributeLength() == null || descAttr.getAttributeLength() <= 0){ |
| | | descAttr.setAttributeLength(250); |
| | | } |
| | |
| | | if(VciQueryWrapperForDO.LC_STATUS_FIELD.equalsIgnoreCase(attributeBO.getId())){ |
| | | attributeBO.setName("状态"); |
| | | } |
| | | attributeBO.setVciAttrDataType(attr.getAttrDataType()); |
| | | attributeBO.setVciAttrDataType(attr.getAttributeDataType()); |
| | | attributeBO.setNullable(String.valueOf(attr.isNullableFlag())); |
| | | attributeBO.setAttrDataType(getAttrDateTypeFromVci(attributeBO.getVciAttrDataType())); |
| | | attributeBO.setJdbcType(getJdbcTypeFromVci(attributeBO.getVciAttrDataType())); |