mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2026-05-05 01:14:26 +08:00
update 代码生成查询选择between时生成params
This commit is contained in:
@@ -25,6 +25,7 @@ public class ${ClassName}Bo implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
#set($hasBetween = false)
|
||||
#foreach ($column in $columns)
|
||||
#if(!$table.isSuperColumn($column.javaField) && ($column.query || $column.insert || $column.edit))
|
||||
/**
|
||||
@@ -47,6 +48,15 @@ public class ${ClassName}Bo implements Serializable {
|
||||
private $column.javaType $column.javaField;
|
||||
|
||||
#end
|
||||
#if($column.query && $column.queryType == 'BETWEEN')
|
||||
#set($hasBetween = true)
|
||||
#end
|
||||
#end
|
||||
#if($hasBetween)
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
private Map<String, Object> params = new HashMap<>();
|
||||
#end
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user