mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-06-22 16:32:00 +08:00
31 lines
631 B
Plaintext
31 lines
631 B
Plaintext
![]() |
import com.baomidou.mybatisplus.annotation.*;
|
||
|
import lombok.*;
|
||
|
import java.util.*;
|
||
|
|
||
|
/**
|
||
|
* ${table.description}
|
||
|
*/
|
||
|
@TableName("${table.tableName}")
|
||
|
@Data
|
||
|
@EqualsAndHashCode(callSuper = true)
|
||
|
@ToString(callSuper = true)
|
||
|
@Builder
|
||
|
@NoArgsConstructor
|
||
|
@AllArgsConstructor
|
||
|
public class ${table.tableName}DO extends BaseDO {
|
||
|
|
||
|
#foreach ($column in $columns)
|
||
|
/**
|
||
|
* ${column.columnComment}
|
||
|
*/
|
||
|
#if(${column.primaryKey} && ${column.javaType} != 'String')
|
||
|
@TableId
|
||
|
#end
|
||
|
#if(${column.primaryKey} && ${column.javaType} == 'String')
|
||
|
@TableId(type = IdType.INPUT)
|
||
|
#end
|
||
|
private ${column.javaType} ${column.javaField};
|
||
|
#end
|
||
|
|
||
|
}
|