package ${dtoPackage};
|
|
|
import java.util.Date;
|
import java.lang.*;
|
|
import com.vci.starter.web.pagemodel.BaseModelVO;
|
|
/**
|
* ${comments}数据传输对象
|
*
|
* @author ${author}
|
* @date ${datetime}
|
*/
|
public class ${className}DTO extends BaseModelVO {
|
|
/**
|
* 禁止修改这个值
|
*/
|
private static final long serialVersionUID = ${dtoSerialVersionUID};
|
|
#foreach ($attr in $uiAttributes)
|
/**
|
* $attr.name
|
*/
|
private $attr.voJavaDataType $attr.id;
|
|
#if(${attr.referFlag} && !${attr.referNameExist})
|
/**
|
* $attr.name显示文本
|
*/
|
private String $attr.referBtmTypeShowField;
|
#end
|
#if($attr.enumFlag)
|
/**
|
* $attr.name显示文本
|
*/
|
private String $attr.enumShowField;
|
#end
|
#end
|
|
#foreach ($attr in $uiAttributes)
|
/**
|
* 获取 $attr.name
|
*/
|
#if($attr.id == "id" || $attr.id == "name" || $attr.id =="description")
|
@Override
|
#end
|
public $attr.voJavaDataType $attr.voGetter (){
|
return $attr.id;
|
}
|
|
/**
|
* 设置 $attr.name
|
*/
|
#if($attr.id == "id" || $attr.id == "name" || $attr.id =="description")
|
@Override
|
#end
|
public void $attr.voSetter ($attr.voJavaDataType $attr.id){
|
this.$attr.id = $attr.id;
|
}
|
|
#if($attr.referFlag)
|
/**
|
* 获取$attr.name显示文本
|
*/
|
public String $attr.referBtmTypeShowFieldGetter (){
|
return $attr.referBtmTypeShowField;
|
}
|
|
/**
|
* 设置$attr.name显示文本
|
*/
|
public void $attr.referBtmTypeShowFieldSetter (String $attr.referBtmTypeShowField){
|
this.$attr.referBtmTypeShowField = $attr.referBtmTypeShowField;
|
}
|
#end
|
#if($attr.enumFlag)
|
/**
|
* 获取$attr.name显示文本
|
*/
|
public String $attr.enumShowFieldGetter (){
|
return $attr.enumShowField;
|
}
|
|
/**
|
* 设置$attr.name显示文本
|
*/
|
public void $attr.enumShowFieldSetter (String $attr.enumShowField){
|
this.$attr.enumShowField = $attr.enumShowField;
|
}
|
#end
|
#end
|
|
@Override
|
public String toString() {
|
return "${className}DTO{" +
|
#foreach ($attr in $uiAttributes)
|
"$attr.id='" + $attr.id +"',"+
|
#if($attr.referFlag)
|
"$attr.referBtmTypeShowField='" + $attr.referBtmTypeShowField +"'," +
|
#end
|
#if($attr.enumFlag)
|
"$attr.enumShowField='" + $attr.enumShowField + "'," +
|
#end
|
#end
|
"}" + super.toString();
|
}
|
}
|