wangwei 7 년 전
부모
커밋
385b083a5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sql/考生导入-存储过程.sql

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

@@ -30,7 +30,7 @@ BEGIN
     SELECT		id,course_id,org_id,course_code,student_code,identity_number,org_code,root_org_id;
 		
 		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;
+			SELECT x.id into course_id_temp from ecs_core_course x where x.code= course_code and x.enable=true 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.root_org_id=root_org_id and  x.batch_id= batch_id;