select beu.id, beu.com_id, sd.dept_name as com_name, beu.project_id, pi.project_name, beu.user_id, su.user_nick, su.user_name, beu.exam_title, beu.exam_type, beu.craft_type, beu.craft_post, beu.single_num, beu.multiple_num, beu.estimate_num, beu.user_mark, beu.res_status, beu.use_times, beu.is_del, beu.create_by, beu.create_time, beu.update_by, beu.update_time, beu.remark from bus_exam_user beu left join pro_project_info pi on pi.id = beu.project_id left join sys_dept sd on sd.dept_id = pi.com_id left join sys_user su on su.user_id = beu.user_id insert into bus_exam_user dept_id, project_id, user_id, exam_title, exam_type, craft_type, craft_post, single_num, multiple_num, estimate_num, user_mark, res_status, use_times, is_del, create_by, create_time, update_by, update_time, remark, #{deptId}, #{projectId}, #{userId}, #{examTitle}, #{examType}, #{craftType}, #{craftPost}, #{singleNum}, #{multipleNum}, #{estimateNum}, #{userMark}, #{resStatus}, #{useTimes}, #{isDel}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update bus_exam_user dept_id = #{deptId}, project_id = #{projectId}, user_id = #{userId}, exam_title = #{examTitle}, exam_type = #{examType}, craft_type = #{craftType}, craft_post = #{craftPost}, single_num = #{singleNum}, multiple_num = #{multipleNum}, estimate_num = #{estimateNum}, user_mark = #{userMark}, res_status = #{resStatus}, use_times = #{useTimes}, is_del = #{isDel}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from bus_exam_user where id = #{id} delete from bus_exam_user where id in #{id}