wangwei 7 年之前
父节点
当前提交
74eb236405
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      sql/考生导入-存储过程.sql

+ 2 - 0
sql/考生导入-存储过程.sql

@@ -35,6 +35,7 @@ BEGIN
 				 update ec_e_exam_student_tmp x set x.course_id=course_id_temp 
 				 where  x.course_id is null and x.course_code=course_code and x.root_org_id=root_org_id and  x.batch_id= batch_id;
 			END IF;
+			set course_id_temp=null;
 		END IF;
 		
 		IF org_id is null THEN
@@ -43,6 +44,7 @@ BEGIN
 				 update ec_e_exam_student_tmp x set x.org_id=org_id_temp 
 				 where  x.org_id is null and x.org_code=org_code and x.root_org_id=root_org_id and  x.batch_id= batch_id;
 			END IF;
+			set org_id_temp=null;
 		END IF;
 		
 		commit;