select sms_id, company_id, remain_sms_count, total_sms_count from company_sms insert into company_sms company_id, remain_sms_count, total_sms_count, #{companyId}, #{remainSmsCount}, #{totalSmsCount}, update company_sms company_id = #{companyId}, remain_sms_count = #{remainSmsCount}, total_sms_count = #{totalSmsCount}, where sms_id = #{smsId} delete from company_sms where sms_id = #{smsId} delete from company_sms where sms_id in #{smsId}