-
Notifications
You must be signed in to change notification settings - Fork 0
/
queryForm
36 lines (29 loc) · 1009 Bytes
/
queryForm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##导入宏定义
$!define
$!ignoreAuditField
$!init
##保存文件(宏定义)
#save("/entity/form", "QueryForm.java")
##包路径(宏定义)
#setPackageSuffix("entity.form")
##自动导入包(全局变量)
$!autoImport
import com.mobikok.scrm.common.core.entity.form.BaseQueryForm;
import $!{tableInfo.savePackageName}.entity.param.$!{tableInfo.name}QueryParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
##表注释(宏定义)
#tableComment("表数据查询传输对象")
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class $!{tableInfo.name}QueryForm extends BaseQueryForm<$!{tableInfo.name}QueryParam> {
#set($index = 0)
#foreach($column in $tableInfo.fullColumn)
#set($index = $index + 1)
#if(${column.comment})@ApiModelProperty(value = "${column.comment}", position = $index)#end
private $!{tool.getClsNameByFullName($column.type)} $!{column.name};
#end
}