select id, product_id, product_name, content, token_id, create_time, update_time, states,last_content,choice,do_time, question_count, member_id,user_id,parent_id,downloadTimes,verifyStatus,test_id,finish, question_order, question_report, question_template_id, interface_content, lang_type, report_address, report_template_id, send_hr_status, send_tester_status, member_name, option_order, remain_part_time,hrReportEmail,hrTitle,hrSendTime,hrUpdateTime,retriesTime from t_exam_report t select m.member_dept,p.status,t.id, t.product_id, t.product_name, t.content, t.token_id, t.create_time, t.update_time, t.states, t.last_content,t.choice,t.do_time, t.question_count, t.member_id,t.user_id,t.parent_id,t.downloadTimes,t.verifyStatus,t.test_id, t.finish,m.member_name,p.test_name,u.user_name,t.question_order, t.question_report, t.question_template_id, t.interface_content, t.lang_type, t.report_address, p.report_template_id, t.send_hr_status, t.send_tester_status, m.member_email, p.test_email, t.member_name, p.auto_send_report, e.hr_email, e.mail_content, t.option_order, t.remain_part_time, t.report_address_new,t.hrReportEmail,t.hrTitle,t.hrSendTime,t.hrUpdateTime,t.retriesTime from t_exam_report t left join sys_user u on u.user_id = t.user_id left join ent_test_member m on m.member_id = t.member_id left join ent_test_package p on p.id = t.test_id left join sys_user_extend e on e.user_id = u.user_id insert into t_exam_report product_id, product_name, content, token_id, create_time, update_time, states, last_content, choice, do_time, question_count, member_id, user_id, parent_id, downloadTimes, verifyStatus, test_id, finish, question_order, question_report, question_template_id, interface_content, lang_type, report_address, report_template_id, send_hr_status, send_tester_status, member_name, option_order, remain_part_time, hrReportEmail, hrTitle, hrSendTime, hrUpdateTime, retriesTime, #{productId}, #{productName}, #{content}, #{tokenId}, #{createTime}, #{updateTime}, #{states}, #{lastContent}, #{choice}, #{doTime}, #{questionCount}, #{memberId}, #{userId}, #{parentId}, #{downloadTimes}, #{verifyStatus}, #{testId}, #{finish}, #{questionOrder}, #{questionReport}, #{questionTemplateId}, #{interfaceContent}, #{langType}, #{reportAddress}, #{reportTemplateId}, #{sendHrStatus}, #{sendTesterStatus}, #{memberName}, #{optionOrder}, #{remainPartTime}, #{hrReportEmail}, #{hrTitle}, #{hrSendTime}, #{hrUpdateTime}, #{retriesTime}, update t_exam_report product_id = #{productId}, product_name = #{productName}, content = #{content}, token_id = #{tokenId}, create_time = #{createTime}, update_time = #{updateTime}, states = #{states}, finish = #{finish}, downloadTimes = #{downloadTimes}, question_report = #{questionReport}, question_template_id = #{questionTemplateId}, interface_content = #{interfaceContent}, lang_type = #{langType}, report_address = #{reportAddress}, report_template_id = #{reportTemplateId}, send_hr_status = #{sendHrStatus}, send_tester_status = #{sendTesterStatus}, member_name = #{memberName}, report_address_new = #{reportAddressNew}, hrReportEmail = #{hrReportEmail}, hrTitle = #{hrTitle}, hrSendTime = #{hrSendTime}, hrUpdateTime = #{hrUpdateTime}, retriesTime = #{retriesTime}, where id = #{id} update t_exam_report send_hr_status = #{sendHrStatus}, send_tester_status = #{sendTesterStatus}, where id = #{id} update t_exam_report product_id = #{productId}, product_name = #{productName}, content = #{content}, create_time = #{createTime}, update_time = #{updateTime}, states = #{states}, last_content = #{lastContent}, choice = #{choice}, do_time = #{doTime}, member_id = #{memberId}, question_count = #{questionCount}, user_id = #{userId}, parent_id = #{parentId}, downloadTimes = #{downloadTimes}, verifyStatus = #{verifyStatus}, test_id = #{testId}, finish = #{finish}, question_report = #{questionReport}, question_template_id = #{questionTemplateId}, interface_content = #{interfaceContent}, lang_type = #{langType}, report_address = #{reportAddress}, report_template_id = #{reportTemplateId}, send_hr_status = #{sendHrStatus}, send_tester_status = #{sendTesterStatus}, member_name = #{memberName}, remark = #{remark}, option_order = #{optionOrder}, remain_part_time = #{remainPartTime}, report_address_new = #{reportAddressNew}, hrReportEmail = #{hrReportEmail}, hrTitle = #{hrTitle}, hrSendTime = #{hrSendTime}, hrUpdateTime = #{hrUpdateTime}, retriesTime = #{retriesTime}, where token_id = #{tokenId} update t_exam_report downloadTimes = #{downloadTimes}, where id in #{id} update t_exam_report ter ter.remark = #{remark}, finish = #{finish}, update_time = #{updateTime}, ter.choice = concat(SUBSTRING(ter.choice,1,LENGTH(ter.choice)-INStr(REVERSE(ter.choice),',')),'}' ), where ter.token_id = #{tokenId} delete from t_exam_report where id = #{id} delete from t_exam_report where id in #{id}