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.

56 lines
1.5 KiB

package ${fullPackage};
3 years ago
#foreach ($import in $importList)
import ${import};
#end
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
3 years ago
#if(($table.crud || $table.sub) && $table.audit == 1)
import ${env.baseAudit};
3 years ago
#end
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
3 years ago
/**
* ${functionName}对象 ${tableName}
*
* @author ${author}
*/
@ApiModel(description="${functionName}对象")
3 years ago
#if(($table.crud || $table.sub) && $table.audit == 1)
#set($Entity="BaseAudit")
#end
@Data
@TableName("${tableName}")
3 years ago
public class ${ClassName}#if($Entity) extends ${Entity}#end {
private static final long serialVersionUID = 1L;
#foreach ($column in $columns)
#if(!$table.isSuperColumn($column.javaField))
@ApiModelProperty("$column.columnComment")
3 years ago
#if($column.list)
#set($parentheseIndex=$column.columnComment.indexOf(""))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($parentheseIndex != -1)
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.isDate())
@Excel(name = "${comment}", width = 30, dateFormat = "${column.dateFormat}")
#else
@Excel(name = "${comment}")
#end
#end
private $column.javaType $column.javaField;
#end
#end
#if($table.sub)
/** $table.subTable.functionName信息 */
private List<${subClassName}> ${subclassName}List;
#end
}