修正插入购买记录时使用正确的SQL日期函数

在`BuyMapper.xml`中,插入购买记录的SQL语句使用了错误的日期函数。现已修正,使用`now()`替代`new()`,以确保在插入记录时能够正确获取当前日期和时间。
master
wxy 2024-09-03 16:20:15 +08:00
parent f92f89f49e
commit 7b4e960de9
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<insert id="insertPurchaseRecord">
INSERT INTO `three-groups`.`connect_log` ( `data_name`, `amount`, `create_time`)
VALUES (#{dataName}, #{amount}, new());
VALUES (#{dataName}, #{amount}, now());
</insert>