2021-03-06 20:06:43 +08:00
|
|
|
package ${basePackage}.modules.${table.moduleName}.dal.dataobject.${table.businessName};
|
2021-02-02 01:07:11 +08:00
|
|
|
|
2021-02-01 00:48:19 +08:00
|
|
|
import lombok.*;
|
|
|
|
import java.util.*;
|
2021-02-05 01:31:53 +08:00
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
2021-02-07 00:34:54 +08:00
|
|
|
import ${BaseDOClassName};
|
2021-02-01 00:48:19 +08:00
|
|
|
|
|
|
|
/**
|
2021-02-11 23:02:53 +08:00
|
|
|
* ${table.classComment} DO
|
|
|
|
*
|
|
|
|
* @author ${table.author}
|
|
|
|
*/
|
2021-02-01 00:48:19 +08:00
|
|
|
@TableName("${table.tableName}")
|
|
|
|
@Data
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
@ToString(callSuper = true)
|
|
|
|
@Builder
|
|
|
|
@NoArgsConstructor
|
|
|
|
@AllArgsConstructor
|
2021-02-02 01:07:11 +08:00
|
|
|
public class ${table.className}DO extends BaseDO {
|
2021-02-01 00:48:19 +08:00
|
|
|
|
|
|
|
#foreach ($column in $columns)
|
2021-02-02 01:07:11 +08:00
|
|
|
#if (!${baseDOFields.contains(${column.javaField})})##排除 BaseDO 的字段
|
2021-02-01 00:48:19 +08:00
|
|
|
/**
|
2021-02-11 19:49:14 +08:00
|
|
|
* ${column.columnComment}
|
|
|
|
#if ("$!column.dictType" != "")##处理枚举值
|
|
|
|
*
|
|
|
|
* 枚举 {@link TODO ${column.dictType} 对应的类}
|
|
|
|
#end
|
|
|
|
*/
|
|
|
|
#if (${column.primaryKey})##处理主键
|
|
|
|
@TableId#if (${column.javaType} == 'String')type = IdType.INPUT)#end
|
|
|
|
#end
|
2021-02-01 00:48:19 +08:00
|
|
|
private ${column.javaType} ${column.javaField};
|
|
|
|
#end
|
2021-02-02 01:07:11 +08:00
|
|
|
#end
|
2021-02-01 00:48:19 +08:00
|
|
|
|
|
|
|
}
|