id, note_id, like_total, collect_total, comment_total INSERT INTO t_note_count (note_id, like_total) VALUES (#{noteId}, #{count}) ON DUPLICATE KEY UPDATE like_total = like_total + (#{count}); INSERT INTO t_note_count (note_id, collect_total) VALUES (#{noteId}, #{count}) ON DUPLICATE KEY UPDATE collect_total = collect_total + (#{count}); INSERT INTO t_note_count (note_id, comment_total) VALUES (#{noteId}, #{count}) ON DUPLICATE KEY UPDATE comment_total = comment_total + (#{count});