select id, type, offline_time, end_time from dc_external_platform_offline insert into dc_external_platform_offline type, offline_time, end_time, #{type}, #{offlineTime}, #{endTime}, update dc_external_platform_offline type = #{type}, offline_time = #{offlineTime}, end_time = #{endTime}, where id = #{id} update dc_external_platform_offline set end_time = now() where isnull(end_time) and type = #{type} delete from dc_external_platform_offline where id = #{id} delete from dc_external_platform_offline where id in #{id}