62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
package ${basePackage}.pojo.vos.${lowerTableName};
|
|
|
|
import com.cm.common.annotation.CheckEmptyAnnotation;
|
|
import com.cm.common.annotation.CheckNumberAnnotation;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
/**
|
|
*
|
|
* @ClassName: ${firstUpperTableName}DTO
|
|
* @Description: ${tableExplain}
|
|
* @Author: ${author}
|
|
* @Date: ${date}
|
|
* @Version: ${version}
|
|
**/
|
|
@ApiModel
|
|
public class ${firstUpperTableName}VO {
|
|
|
|
<#list fieldList! as field>
|
|
@ApiModelProperty(name = "${field.fieldName}", value = "${field.fieldExplain}")
|
|
<#if field.fieldType == "number">
|
|
private Integer ${field.fieldName};
|
|
<#elseif field.fieldType == "double">
|
|
private Double ${field.fieldName};
|
|
<#else>
|
|
private String ${field.fieldName};
|
|
</#if>
|
|
</#list>
|
|
|
|
<#list fieldList! as field>
|
|
<#if field.fieldType == "number">
|
|
public Integer get${field.firstUpperFieldName}() {
|
|
return ${field.fieldName} == null ? 0 : ${field.fieldName};
|
|
}
|
|
|
|
public void set${field.firstUpperFieldName}(Integer ${field.fieldName}) {
|
|
this.${field.fieldName} = ${field.fieldName};
|
|
}
|
|
|
|
<#elseif field.fieldType == "double">
|
|
public Double get${field.firstUpperFieldName}() {
|
|
return ${field.fieldName} == null ? 0D : ${field.fieldName};
|
|
}
|
|
|
|
public void set${field.firstUpperFieldName}(String ${field.fieldName}) {
|
|
this.${field.fieldName} = ${field.fieldName};
|
|
}
|
|
|
|
<#else>
|
|
public String get${field.firstUpperFieldName}() {
|
|
return ${field.fieldName} == null ? "" : ${field.fieldName};
|
|
}
|
|
|
|
public void set${field.firstUpperFieldName}(String ${field.fieldName}) {
|
|
this.${field.fieldName} = ${field.fieldName};
|
|
}
|
|
|
|
</#if>
|
|
</#list>
|
|
|
|
}
|