From 65b9ae05594a82e9d13f5226dad7204ffedf022c Mon Sep 17 00:00:00 2001
From: liuxm <liuxm@fescotech.com>
Date: 星期二, 21 五月 2024 10:42:41 +0800
Subject: [PATCH] 文件id返回时设置为String,以防丢失精度

---
 pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
index 5c0e8fb..7ec9208 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
@@ -94,7 +94,7 @@
         content like concat('%', #{content}, '%') and
       </if>
       <if test="dt != null and dt != '' ">
-        dt = #{dt,jdbcType=TIMESTAMP} and
+        DATE_FORMAT(dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} and
       </if>
       <if test="ip != null and ip != '' ">
         ip =#{ip,jdbcType=VARCHAR} and
@@ -122,7 +122,7 @@
         content like concat('%', #{content}, '%') and
       </if>
       <if test="dt != null and dt != '' ">
-        dt = #{dt,jdbcType=TIMESTAMP} and
+        DATE_FORMAT(dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} and
       </if>
       <if test="ip != null and ip != '' ">
         ip =#{ip,jdbcType=VARCHAR} and

--
Gitblit v1.8.0