Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
f01f85a3
Commit
f01f85a3
authored
Aug 25, 2021
by
andnnl
Browse files
时间范围查询条件字段都需要加@Query
parent
d60932de
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/resources/codeTemplate/java/query.java
View file @
f01f85a3
...
...
@@ -17,7 +17,9 @@ public class ${entity.name}Query extends PageParam {
@
}
else
if
(
attr
.
dateRange
)
{
\
@Query
(
name
=
"${attr.displayName}"
,
display
=
true
,
type
=
Query
.
TYPE_DATE_BETWEEN
)
private
String
$
{
attr
.
name
};
\
@Query
(
name
=
"${attr.displayName}"
,
display
=
false
)
private
Date
$
{
strutil
.
replace
(
attr
.
name
,
"Range"
,
""
)}
Start
;
\
@Query
(
name
=
"${attr.displayName}"
,
display
=
false
)
private
Date
$
{
strutil
.
replace
(
attr
.
name
,
"Range"
,
""
)}
End
;
@
}
else
if
(
attr
.
dateTimeRange
)
{
\
@Query
(
name
=
"${attr.displayName}"
,
display
=
true
,
type
=
Query
.
TYPE_DATETIME_BETWEEN
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment