From 0238c4ad9210b1a45e7c626cfaf40367cb741b74 Mon Sep 17 00:00:00 2001
From: 平凡 <hmxmylove@163.com>
Date: 星期六, 18 七月 2020 00:07:17 +0800
Subject: [PATCH] 处理代码生成页面中的查询条件“创建时间”未生效的问题
---
ruoyi/src/main/resources/mybatis/tool/GenTableMapper.xml | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ruoyi/src/main/resources/mybatis/tool/GenTableMapper.xml b/ruoyi/src/main/resources/mybatis/tool/GenTableMapper.xml
index d688599..0c58d72 100644
--- a/ruoyi/src/main/resources/mybatis/tool/GenTableMapper.xml
+++ b/ruoyi/src/main/resources/mybatis/tool/GenTableMapper.xml
@@ -62,12 +62,12 @@
<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_format(#{beginTime},'%y%m%d') -->
-<!-- </if> -->
-<!-- <if test="endTime != null and endTime != ''">缁撴潫鏃堕棿妫�绱� -->
-<!-- AND date_format(create_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') -->
-<!-- </if> -->
+ <if test="beginTime != null and beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
+ AND create_time >= to_date(#{beginTime},'yyyy-MM-dd HH24:mi:ss')
+ </if>
+ <if test="endTime != null and endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� -->
+ AND create_time <= to_date(#{endTime},'yyyy-MM-dd HH24:mi:ss')
+ </if>
</where>
</select>
--
Gitblit v1.9.3