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;