select id, service_code,msg_params,status, name, channel_id, channel_type, provider, create_by, create_time, update_by, update_time, del_flag, tenant_id, tenant_name from notify_template
insert into notify_template
service_code,name,channel_id,channel_type,provider,create_by,create_time,update_by,update_time,del_flag,msg_params,status,tenant_id,tenant_name,#{serviceCode},#{name},#{channelId},#{channelType},#{provider},#{createBy},#{createTime},#{updateBy},#{updateTime},#{delFlag},#{msgParams},#{status},#{tenantId},#{tenantName},
update notify_template
service_code = #{serviceCode},name = #{name},channel_id = #{channelId},channel_type = #{channelType},provider = #{provider},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},del_flag = #{delFlag},msg_params = #{msgParams},status = #{status},tenant_id = #{tenantId},tenant_name = #{tenantName},
where id = #{id}
update notify_template
status = #{status},
where id in
#{item}
delete from notify_template where id = #{id}
delete from notify_template where id in
#{id}
delete from notify_template where channel_id in
#{channelId}
delete from iot_alert_notify_template where notify_template_id in
#{notifyTemplateId}