INSERT INTO ms_case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,only_office_file_id,suffix)
VALUES (#{caseAppliId}, #{annexName}, #{annexPath},#{annexType},#{note},#{useId},#{useAccount},#{sealStatus},#{onlyOfficeFileId},#{suffix})
INSERT INTO ms_case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account,seal_status,only_office_file_id,suffix)
VALUES
(#{item.caseAppliId}, #{item.annexName}, #{item.annexPath},#{item.annexType},#{item.note},#{item.useId},#{item.useAccount},#{item.sealStatus},#{item.onlyOfficeFileId},#{item.suffix})
delete from ms_case_attach
where annex_id in
#{id}
delete from ms_case_attach
where case_appli_id = #{caseAppliId}
and annex_type = #{annexType}
delete from ms_case_attach
where case_appli_id = #{caseAppliId}
and annex_type = #{annexType}
delete from ms_case_attach
where case_appli_id in
#{id}
update ms_case_attach
set
other_sys_file_id=#{otherSysFileId},
case_appli_id= #{caseAppliId}
where annex_id = #{annexId}
update ms_case_attach
set
case_appli_id= #{item.caseAppliId}
where annex_id = #{item.annexId};
update ms_case_attach
annex_name = #{annexName}, other_sys_file_id=#{otherSysFileId},annex_path = #{annexPath}
AND case_appli_id = #{caseAppliId}
AND annex_type = #{annexType}