select id, patient_id, patient_name, openid, official_account_app_id, send_time, msg_type, event_type, msg_id, status, create_by, create_time, update_by, update_time from official_account_template_event insert into official_account_template_event patient_id, patient_name, openid, official_account_app_id, send_time, msg_type, event_type, msg_id, status, create_by, create_time, update_by, update_time, #{patientId}, #{patientName}, #{openid}, #{officialAccountAppId}, #{sendTime}, #{msgType}, #{eventType}, #{msgId}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update official_account_template_event patient_id = #{patientId}, patient_name = #{patientName}, openid = #{openid}, official_account_app_id = #{officialAccountAppId}, send_time = #{sendTime}, msg_type = #{msgType}, event_type = #{eventType}, msg_id = #{msgId}, status = #{status}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} delete from official_account_template_event where id = #{id} delete from official_account_template_event where id in #{id}