From 7b4e960de9939b886854e259c0fbe44daacd46e2 Mon Sep 17 00:00:00 2001 From: wxy <14293288+zysysys@user.noreply.gitee.com> Date: Tue, 3 Sep 2024 16:20:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8F=92=E5=85=A5=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E8=AE=B0=E5=BD=95=E6=97=B6=E4=BD=BF=E7=94=A8=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E7=9A=84SQL=E6=97=A5=E6=9C=9F=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在`BuyMapper.xml`中,插入购买记录的SQL语句使用了错误的日期函数。现已修正,使用`now()`替代`new()`,以确保在插入记录时能够正确获取当前日期和时间。 --- src/main/resources/mapper/system/BuyMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/mapper/system/BuyMapper.xml b/src/main/resources/mapper/system/BuyMapper.xml index ecfd5b1..09f0929 100644 --- a/src/main/resources/mapper/system/BuyMapper.xml +++ b/src/main/resources/mapper/system/BuyMapper.xml @@ -12,7 +12,7 @@ INSERT INTO `three-groups`.`connect_log` ( `data_name`, `amount`, `create_time`) - VALUES (#{dataName}, #{amount}, new()); + VALUES (#{dataName}, #{amount}, now());