UPDATE pictures_template_area SET template_area_module_data = #{templateAreaModuleData}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE pictures_template_area_id = #{picturesTemplateAreaId} UPDATE pictures_template_area SET template_area_left = #{templateAreaLeft}, template_area_top = #{templateAreaTop}, template_area_down = #{templateAreaDown}, template_area_right = #{templateAreaRight}, template_area_height = #{templateAreaHeight}, template_area_width = #{templateAreaWidth}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE pictures_template_area_id = #{picturesTemplateAreaId} INSERT INTO pictures_template_area( pictures_template_area_id, pictures_template_id, template_area_module_data, template_area_source, template_area_left, template_area_top, template_area_down, template_area_right, template_area_height, template_area_width, template_area_color, template_area_remark, template_area_status, template_area_file, template_area_server_link, creator, gmt_create, modifier, gmt_modified, is_delete ) VALUES( #{picturesTemplateAreaId}, #{picturesTemplateId}, #{templateAreaModuleData}, #{templateAreaSource}, #{templateAreaLeft}, #{templateAreaTop}, #{templateAreaDown}, #{templateAreaRight}, #{templateAreaHeight}, #{templateAreaWidth}, #{templateAreaColor}, #{templateAreaRemark}, #{templateAreaStatus}, #{templateAreaFile}, #{templateAreaServerLink}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified}, #{isDelete} ) UPDATE pictures_template_area SET is_delete = 1, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE pictures_template_area_id IN #{picturesTemplateAreaIds[${index}]} DELETE FROM pictures_template_area WHERE pictures_template_area_id IN #{picturesTemplateAreaIds[${index}]} UPDATE pictures_template_area SET template_area_color = #{templateAreaColor}, template_area_module_data = #{templateAreaModuleData}, template_area_source = #{templateAreaSource}, template_area_remark = #{templateAreaRemark}, template_area_file = #{templateAreaFile}, template_area_server_link = #{templateAreaServerLink}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE pictures_template_area_id = #{picturesTemplateAreaId}