wangwei 7 năm trước cách đây
mục cha
commit
27fca1fdca
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      sql/考生导入-存储过程.sql

+ 4 - 5
sql/考生导入-存储过程.sql

@@ -30,17 +30,16 @@ BEGIN
 		IF course_id is null THEN
 			SELECT x.id into course_id_temp from ecs_core_course x where x.code= course_code and x.org_id=root_org_id;
 			IF course_id_temp is not null THEN
-					 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.batch_id= batch_id;
+				 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.batch_id= batch_id;
 			END IF;
 		END IF;
 		
 		IF org_id is null THEN
 			SELECT x.id into org_id_temp from ecs_core_org x where x.code= org_code and x.root_id=root_org_id;
 			IF org_id_temp is not null THEN
-			SELECT org_id_temp;			
-					 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.batch_id= batch_id;
+				 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.batch_id= batch_id;
 			END IF;
 		END IF;