修正插入购买记录时使用正确的SQL日期函数
在`BuyMapper.xml`中,插入购买记录的SQL语句使用了错误的日期函数。现已修正,使用`now()`替代`new()`,以确保在插入记录时能够正确获取当前日期和时间。master
parent
f92f89f49e
commit
7b4e960de9
|
@ -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>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue