INSERT INTO case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload,only_office_file_id)
VALUES (#{caseAppliId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName},#{sealStatus},#{isBatchUpload},#{onlyOfficeFileId})
INSERT INTO case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,is_batch_upload,only_office_file_id)
VALUES
(#{item.caseAppliId}, #{item.annexName}, #{item.annexPath},#{item.annexType},#{item.note},#{item.userId},#{item.userName},#{item.sealStatus},#{item.isBatchUpload},#{item.onlyOfficeFileId})
delete from case_attach
where annex_id in
#{id}
delete from case_attach
where case_appli_id = #{caseAppliId}
and annex_type = #{annexType}
AND is_batch_upload = #{isBatchUpload}
delete from case_attach
where case_appli_id = #{caseAppliId}
and annex_type = #{annexType}
update case_attach
set
case_appli_id= #{caseAppliId}
where annex_id = #{annexId}
update case_attach
annex_name = #{annexName},annex_path = #{annexPath},only_office_file_id = #{onlyOfficeFileId}
AND case_appli_id = #{caseAppliId}
AND annex_type = #{annexType}
delete from case_attach
where case_appli_id = #{caseId}
and annex_type = #{type} and annex_id!=#{annexId}