select spme.id, spme.project_id, spme.dept_id, spme.main_image, spme.image_urls, spme.material_name, spme.use_position, spme.contract_brand, spme.use_brand, spme.seal_date, spme.sign_files, spme.alteration_files, spme.is_del, spme.create_by, spme.create_time, spme.update_by, spme.update_time, spme.remark, sp.projectName, sd.dept_name from sur_project_material_seal spme left join sur_project sp on spme.project_id = sp.id left join sys_dept sd on sd.dept_id = spme.dept_id insert into sur_project_material_seal project_id, dept_id, main_image, image_urls, material_name, use_position, contract_brand, use_brand, seal_date, sign_files, alteration_files, is_del, create_by, create_time, update_by, update_time, remark, #{projectId}, #{deptId}, #{mainImage}, #{imageUrls}, #{materialName}, #{usePosition}, #{contractBrand}, #{useBrand}, #{sealDate}, #{signFiles}, #{alterationFiles}, #{isDel}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update sur_project_material_seal project_id = #{projectId}, dept_id = #{deptId}, main_image = #{mainImage}, image_urls = #{imageUrls}, material_name = #{materialName}, use_position = #{usePosition}, contract_brand = #{contractBrand}, use_brand = #{useBrand}, seal_date = #{sealDate}, sign_files = #{signFiles}, alteration_files = #{alterationFiles}, is_del = #{isDel}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from sur_project_material_seal where id = #{id} delete from sur_project_material_seal where id in #{id}