select te.id, te.dept_id, te.name, te.type, te.width, te.height, te.margins, te.image, te.create_time, te.image_module, te.use_flag, te.print_device, te.category from zdy_print_template te insert into zdy_print_template dept_id, name, type, width, height, margins, image, create_time, image_module, use_flag, print_device, category, #{deptId}, #{name}, #{type}, #{width}, #{height}, #{margins}, #{image}, #{createTime}, #{imageModule}, #{useFlag}, #{printDevice}, #{category}, update zdy_print_template dept_id = #{deptId}, name = #{name}, type = #{type}, width = #{width}, height = #{height}, margins = #{margins}, image = #{image}, create_time = #{createTime}, image_module = #{imageModule}, use_flag = #{useFlag}, print_device = #{printDevice}, category = #{category}, where id = #{id} delete from zdy_print_template where id = #{id} delete from zdy_print_template where id in #{id}