|
|
@ -6,6 +6,8 @@ import ${import};
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
import com.ruoyi.common.core.annotation.Excel;
|
|
|
|
import com.ruoyi.common.core.annotation.Excel;
|
|
|
|
|
|
|
|
import com.mybatisflex.annotation.Table;
|
|
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
#if($table.crud || $table.sub)
|
|
|
|
#if($table.crud || $table.sub)
|
|
|
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
|
|
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
|
|
|
#elseif($table.tree)
|
|
|
|
#elseif($table.tree)
|
|
|
@ -23,6 +25,8 @@ import com.ruoyi.common.core.web.domain.TreeEntity;
|
|
|
|
#elseif($table.tree)
|
|
|
|
#elseif($table.tree)
|
|
|
|
#set($Entity="TreeEntity")
|
|
|
|
#set($Entity="TreeEntity")
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
|
|
|
@Table("${tableName}")
|
|
|
|
public class ${ClassName} extends ${Entity}
|
|
|
|
public class ${ClassName} extends ${Entity}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
@ -62,15 +66,7 @@ public class ${ClassName} extends ${Entity}
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
|
|
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
public void set${AttrName}($column.javaType $column.javaField)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.$column.javaField = $column.javaField;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public $column.javaType get${AttrName}()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return $column.javaField;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
|
@ -86,20 +82,5 @@ public class ${ClassName} extends ${Entity}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
|
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
|
|
|
|
|
|
#foreach ($column in $columns)
|
|
|
|
|
|
|
|
#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]"))
|
|
|
|
|
|
|
|
#set($AttrName=$column.javaField)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
|
|
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
.append("${column.javaField}", get${AttrName}())
|
|
|
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
#if($table.sub)
|
|
|
|
|
|
|
|
.append("${subclassName}List", get${subClassName}List())
|
|
|
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|