You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
869 B
41 lines
869 B
|
3 years ago
|
package ${fullPackage};
|
||
|
|
|
||
|
|
#foreach ($import in $importList)
|
||
|
|
import ${import};
|
||
|
|
#end
|
||
|
|
#if(($table.crud || $table.sub) && $table.audit == 1)
|
||
|
|
import ${env.baseAudit};
|
||
|
|
#elseif($table.tree)
|
||
|
|
import ${env.baseAudit};
|
||
|
|
#end
|
||
|
|
#if($table.sub)
|
||
|
|
import ${packageName}.${javaPath.pojo}.dto.${subClassName}DTO;
|
||
|
|
#end
|
||
|
|
import lombok.Data;
|
||
|
|
/**
|
||
|
|
* ${functionName} DTO 对象
|
||
|
|
*
|
||
|
|
* @author ${author}
|
||
|
|
*/
|
||
|
|
#if(($table.crud || $table.sub) && $table.audit == 1)
|
||
|
|
#set($Entity="BaseAudit")
|
||
|
|
#elseif($table.tree)
|
||
|
|
#set($Entity="TreeEntity")
|
||
|
|
#end
|
||
|
|
@Data
|
||
|
|
public class ${ClassName}DTO#if($Entity) extends ${Entity}#end {
|
||
|
|
#foreach ($column in $columns)
|
||
|
|
#if(!$table.isSuperColumn($column.javaField))
|
||
|
|
|
||
|
|
#if($column.columnComment)
|
||
|
|
/** $column.columnComment */
|
||
|
|
#end
|
||
|
|
private $column.javaType $column.javaField;
|
||
|
|
#end
|
||
|
|
#end
|
||
|
|
|
||
|
|
#if($table.sub)
|
||
|
|
private List<${subClassName}DTO> ${subclassName}List;
|
||
|
|
#end
|
||
|
|
}
|