FROM_UNIXTIME(UNIX_TIMESTAMP()), 系統(tǒng)當前時間+時間戳格式化
INSERT INTO t_votes_summary (pkId,votes,systemVotes)
values(#{po.pkId},#{realTimeVotes},#{po.systemVotes})ON DUPLICATE KEY UPDATE votes=ifnull(votes,0)+#{realTimeVotes},systemVotes=ifnull(systemVotes,0)+#{systemVotes}, 如果主鍵重復(fù),那么修改數(shù)值