select file_id, folder_id, file_name, file_type, file_size, file_path, download_count, status, del_flag, create_by, create_time, update_by, update_time from sys_file
insert into sys_file
folder_id,
file_name,
file_type,
file_size,
file_path,
download_count,
status,
del_flag,
create_by,
create_time,
update_by,
update_time,
#{folderId},
#{fileName},
#{fileType},
#{fileSize},
#{filePath},
#{downloadCount},
#{status},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update sys_file
folder_id = #{folderId},
file_name = #{fileName},
file_type = #{fileType},
file_size = #{fileSize},
file_path = #{filePath},
download_count = #{downloadCount},
status = #{status},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where file_id = #{fileId}
delete from sys_file where file_id = #{fileId}
delete from sys_file where file_id in
#{fileId}
UPDATE sys_file
SET status = #{status}, update_time = now(), update_by = #{updateBy}
WHERE file_id = #{fileId}