老样子做记录用。
先上一个链接,写的很详细,里面有很多用法值得学习
https://blog.csdn.net/qq_27680317/article/details/81118070
下面是代码
<insert id="insertTable" parameterType="map">
INSERT INTO
Table (id, name, age, updateTime)
VALUES
(UUID(), #{name},, #{age} NOW())
ON duplicate key update
updateTime = values(updateTime)