select package_id, success_count, faile_count, total_count, create_time, sync_type from sync_log
insert into sync_log
create_time,
package_id,
success_count,
faile_count,
total_count,
start_time,
end_time,
sync_type,
now(),
#{packageId},
#{successCount},
#{faileCount},
#{totalCount},
#{startTime},
#{endTime},
#{syncType},
update sync_log
success_count = #{successCount},
faile_count = #{faileCount},
total_count = #{totalCount},
start_time = #{startTime},
end_time = #{endTime},
sync_type = #{syncType},
where package_id = #{packageId}
delete from sync_log where package_id = #{packageId}
delete from sync_log where package_id in
#{packageId}