63 lines
1.6 KiB
Plaintext
63 lines
1.6 KiB
Plaintext
package ${packageName}.domain.req;
|
||
|
||
#foreach ($import in $importList)
|
||
import ${import};
|
||
#end
|
||
import lombok.Data;
|
||
import lombok.EqualsAndHashCode;
|
||
import lombok.NoArgsConstructor;
|
||
import lombok.AllArgsConstructor;
|
||
import lombok.experimental.SuperBuilder;
|
||
import io.swagger.annotations.*;
|
||
#if($table.crud)
|
||
import com.muyu.common.core.web.domain.BaseEntity;
|
||
#elseif($table.tree)
|
||
import com.muyu.common.core.web.domain.TreeEntity;
|
||
#end
|
||
|
||
/**
|
||
* ${functionName}对象 ${tableName}
|
||
*
|
||
* @author ${author}
|
||
* @date ${datetime}
|
||
*/
|
||
#if($table.crud)
|
||
#set($Entity="BaseEntity")
|
||
#elseif($table.tree)
|
||
#set($Entity="TreeEntity")
|
||
#end
|
||
@Data
|
||
@SuperBuilder
|
||
@NoArgsConstructor
|
||
@AllArgsConstructor
|
||
@ApiModel(value = "${ClassName}QueryReq", description = "${functionName}")
|
||
public class ${ClassName}QueryReq extends ${Entity} {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
#foreach ($column in $columns)
|
||
#if(!$table.isSuperColumn($column.javaField))
|
||
#if($column.isQuery == '1')
|
||
/** $column.columnComment */
|
||
#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($column.javaType == 'Date')
|
||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||
#end
|
||
#end
|
||
#if($column.javaField == $pkColumn.javaField)
|
||
@TableId(value = "${pkColumn.javaField}",type = IdType.AUTO)
|
||
#end
|
||
@ApiModelProperty(name = "${column.columnComment}", value = "${column.columnComment}")
|
||
private $column.javaType $column.javaField;
|
||
|
||
#end
|
||
#end
|
||
#end
|
||
}
|