id,merchant_id,statistic_date,consultation_volume INSERT INTO com_convenient_consultation_statistics (merchant_id, statistic_date) VALUES (#{merchantId}, NOW()) UPDATE com_convenient_consultation_statistics SET consultation_volume = consultation_volume + 1 WHERE merchant_id = #{merchantId} AND statistic_date = #{nowDate}