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
RuoYi Vue
Commits
0238c4ad
Commit
0238c4ad
authored
Jul 18, 2020
by
平凡
Committed by
Gitee
Jul 18, 2020
Browse files
处理代码生成页面中的查询条件“创建时间”未生效的问题
parent
d5cc95fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi/src/main/resources/mybatis/tool/GenTableMapper.xml
View file @
0238c4ad
...
...
@@ -62,12 +62,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"tableComment != null and tableComment != ''"
>
AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
</if>
<!--
<if test="beginTime != null and beginTime != ''">开始时间检索 -->
<!--
AND
date_format(create_time,'%y%m%d') >= date_form
at(#{beginTime},'
%y%m%d') -->
<!--
</if>
-->
<!--
<if test="endTime != null and endTime != ''">结束时间检索 -->
<!--
AND
date_format(create_time,'%y%m%d') <= date_form
at(#{endTime},'
%y%m%d') -->
<!--
</if>
-->
<if
test=
"beginTime != null and beginTime != ''"
>
<!--
开始时间检索 -->
AND
create_time
>
= to_d
at
e
(#{beginTime},'
yyyy-MM-dd HH24:mi:ss')
</if>
<if
test=
"endTime != null and endTime != ''"
>
<!--
结束时间检索 -->
AND
create_time
<
= to_d
at
e
(#{endTime},'
yyyy-MM-dd HH24:mi:ss')
</if>
</where>
</select>
...
...
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