select id,prod_id, p.user_id, test_name,prod_name, test_type, test_area, lang_type, test_email, frame_text_content_id, create_by, create_time, update_by, update_time, invalid_time,p.param_codes, status, template,remark, auto_send_report,report_template_id,p.hrTemplate, p.position,p.superior_position, p.professional_category from ent_test_package p select p.id, p.prod_id, p.user_id, p.test_name, p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template, p.remark, p.auto_send_report, p.report_template_id,p.hrTemplate, p.position,p.superior_position, p.professional_category, u.user_name from ent_test_package p left join sys_user u on u.user_id = p.user_id insert into ent_test_package user_id, prod_id, test_name, prod_name, test_type, test_area, lang_type, test_email, frame_text_content_id, create_by, create_time, update_by, hrTemplate, update_time, invalid_time, param_codes, status, template, remark, auto_send_report, report_template_id, position, professional_category, superior_position, #{userId}, #{prodId}, #{testName}, #{prodName}, #{testType}, #{testArea}, #{langType}, #{testEmail}, #{frameTextContentId}, #{createBy}, #{createTime}, #{updateBy}, #{hrTemplate}, #{updateTime}, #{invalidTime}, #{paramCodes}, #{status}, #{template}, #{remark}, #{autoSendReport}, #{reportTemplateId}, #{position}, #{professionalCategory}, #{superiorPosition}, update ent_test_package user_id = #{userId}, prod_id = #{prodId}, test_name = #{testName}, prod_name = #{prodName}, test_type = #{testType}, test_area = #{testArea}, lang_type = #{langType}, test_email = #{testEmail}, frame_text_content_id = #{frameTextContentId}, create_by = #{createBy}, hrTemplate = #{hrTemplate}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, invalid_time = #{invalidTime}, param_codes = #{paramCodes}, status = #{status}, template = #{template}, remark = #{remark}, position = #{position}, professional_category = #{professionalCategory}, superior_position = #{superiorPosition}, auto_send_report = 1, auto_send_report = 0, report_template_id = #{reportTemplateId}, where id = #{id} delete from ent_test_package where id = #{id} delete from ent_test_package where id in #{id}