新增时间戳正则判断

This commit is contained in:
wenc000 2020-04-20 23:23:06 +08:00
parent 4477561d92
commit dfb27bc7f7
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,7 @@ public class ${firstUpperTableName}DTO {
public void set${firstUpperTableName}Id(String ${firstLowerTableName}Id) {
this.${firstLowerTableName}Id = ${firstLowerTableName}Id;
}
<#list fieldList! as field>
<#if field.fieldType == "number">
public Integer get${field.firstUpperFieldName}() {

View File

@ -27,8 +27,11 @@ public class ${firstUpperTableName}VO {
<#elseif field.fieldType == "double">
@CheckNumberAnnotation(name = "${field.fieldExplain}")
private Double ${field.fieldName};
<#elseif field.fieldType == "date" || field.fieldType == "datetime">
<#elseif field.fieldType == "date">
@CheckEmptyAnnotation(name = "${field.fieldExplain}", verifyType = "date")
private String ${field.fieldName};
<#elseif field.fieldType == "datetime">
@CheckEmptyAnnotation(name = "${field.fieldExplain}", verifyType = "datetime")
private String ${field.fieldName};
<#else>
<#if field.fieldType == "string">