update 代码生成查询选择between时生成params

This commit is contained in:
lau
2026-03-17 22:40:44 +08:00
parent eb68d06c79
commit fd4071e257
3 changed files with 17 additions and 0 deletions

View File

@@ -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
}