| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import lombok.experimental.Accessors; |
| | | import lombok.EqualsAndHashCode; |
| | | import java.io.Serial; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | |
| | | import ${import}; |
| | | #end |
| | | #if($table.crud || $table.sub) |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.ruoyi.common.core.web.domain.BaseEntity; |
| | | #elseif($table.tree) |
| | | import com.ruoyi.common.core.domain.TreeEntity; |
| | | import com.ruoyi.common.core.web.domain.TreeEntity; |
| | | #end |
| | | |
| | | /** |
| | |
| | | #if($table.crud || $table.sub) |
| | | #set($Entity="BaseEntity") |
| | | #elseif($table.tree) |
| | | #set($Entity="TreeEntity") |
| | | #set($Entity="TreeEntity<${ClassName}>") |
| | | #end |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @TableName("${tableName}") |
| | | public class ${ClassName} extends ${Entity} { |
| | | |
| | | private static final long serialVersionUID=1L; |
| | | @Serial |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | #foreach ($column in $columns) |
| | | #if(!$table.isSuperColumn($column.javaField)) |