| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.starter.revision.service.RevisionModelUtil; |
| | | import com.vci.starter.web.annotation.Column; |
| | | import com.vci.starter.web.constant.FrameWorkLcStatusConstant; |
| | |
| | | * @throws VciBaseException 参数为空,方案不存在会抛出异常 |
| | | */ |
| | | @Override |
| | | public void productCodeFile(String oid) throws VciBaseException { |
| | | public void productCodeFile(String oid) throws VciBaseException, PLException { |
| | | OsCodeGenSchemaDO codeGenSchemaDO = selectByOid(oid); |
| | | //处理临时文件夹,在临时文件夹中添加codes/{业务类型的英文名称} |
| | | String tempFolder =LocalFileUtil.getProjectFolder(); |
| | |
| | | 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())); |