master
周文涛 2 years ago
parent e032ea8e51
commit fbc03a864c

@ -72,8 +72,35 @@
<artifactId>fastjson</artifactId>
<version>2.0.1</version>
</dependency>
<!--<dependency>
<groupId>com.github.shibing624</groupId>
<artifactId>similarity</artifactId>
<version>1.1.6</version>
</dependency>-->
</dependencies>
<repositories>
<repository>
<id>yangliu</id>
<name>yangliu Repository</name>
<url>http://106.14.42.180:8088/repository/yangliu/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>aliyun</id>
<name>aliyun Repository</name>
<url>https://maven.aliyun.com/repository/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>

@ -70,7 +70,7 @@ public class Main {
String password = "Nomi1234";
//2.选择表配置
//String json="{\"oqc_spot_check_record\":\"抽检记录\",\"oqc_shipment_record\":\"成品出货记录\",\"oqc_1008_record\":\"1008仓台账\",\"oqc_after_sales_record\":\"售后记录\",\"oqc_special_sample\":\"特殊样件\",\"oqc_product_record\":\"产品追溯\",\"oqc_ncr_record\":\"NCR明细\",\"oqc_qrqc_record\":\"QRQC明细\"}";
String json="{\"oqc_b_product_warehouse_inspection\":\"B品仓检验\"}";
String json="{\"oqc_report_template_detail\":\"报告模板明细\"}";
JSONObject tables = JSONObject.parseObject(json);
for (String table : tables.keySet()) {
String entityName = TableFieldUtil.tableNameToEntityName(table);

@ -23,9 +23,11 @@ import java.util.Date;
@ApiModel(value="查询${entityName}对象", description="${tableVo.ftlDescription}")
public class Query${entityName}VO implements Serializable{
<#list originalColumns as po>
<#if po.fieldName == 'creatorId' || po.fieldName == 'createBy' || po.fieldName == 'createTime' || po.fieldName == 'updaterId' || po.fieldName == 'updateBy' || po.fieldName == 'updateTime' || po.fieldName == 'tenantId'>
<#else>
/**${po.fieldComment}*/
<#if po.fieldName == primaryKeyField>
<#else>
<#if po.fieldName == primaryKeyField>
<#else>
<#if po.fieldType =='Date'>
<#if po.fieldDbType =='date'>
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@ -44,6 +46,7 @@ public class Query${entityName}VO implements Serializable{
<#if po.fieldName == 'delFlag'>
</#if>
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
</#if>
</#list>
@ApiModelProperty(value = "批量选择参数")
private String ids;

Loading…
Cancel
Save