insert into image_file
(`id`,`deleted`,`create_time`,`update_time`,`image_file_id`,`width`,`height`,`horizontal`)
values
(#{id},#{deleted},#{createTime},#{updateTime},#{imageFileId},#{width},#{height},#{horizontal})
insert into image_file
(`id`,`deleted`,`create_time`,`update_time`,`image_file_id`,`width`,`height`,`horizontal`)
values
(#{item.id},#{item.deleted},#{item.createTime},#{item.updateTime},#{item.imageFileId},#{item.width},#{item.height},#{item.horizontal})
update image_file
set jpeg_object_id=#{jpegObjectId}
where id=#{id}
delete from image_file
where image_file_id=#{imageFileId}