|
|
|
@ -73,12 +73,19 @@
|
|
|
|
|
#sql("matchSchoolNameList")
|
|
|
|
|
select distinct t1.teacher_school_name,t2.organization_no,t2.organization_name from t_crawler_resource as t1
|
|
|
|
|
left join 教基1001 as t2 on t1.teacher_school_name=t2.organization_name and t2.a=1 and length(t2.organization_no)=10
|
|
|
|
|
where 1=1
|
|
|
|
|
#if(matchType1)
|
|
|
|
|
and t2.organization_no is not null
|
|
|
|
|
#end
|
|
|
|
|
#if(matchType2)
|
|
|
|
|
and t2.organization_no is null
|
|
|
|
|
#end
|
|
|
|
|
where t2.organization_no is null
|
|
|
|
|
#end
|
|
|
|
|
-- 匹配课程名称与学校名称
|
|
|
|
|
#sql("matchLessonSchoolName")
|
|
|
|
|
select t1.lesson_id,t1.lesson_name, t1.teacher_school_name,t1.teacher_id,t1.teacher_name,t2.organization_name,
|
|
|
|
|
t1.subject_id,t1.stage_id,t1.scheme_id,t1.book_id,
|
|
|
|
|
t3.subject_name,t4.stage_name,t5.scheme_name,t6.book_name
|
|
|
|
|
from t_crawler_resource as t1
|
|
|
|
|
left join 教基1001 as t2 on t1.teacher_school_name=t2.organization_name and t2.a=1 and length(t2.organization_no)=10
|
|
|
|
|
inner join t_crawler_subject as t3 on t1.subject_id=t3.subject_id
|
|
|
|
|
inner join t_crawler_stage as t4 on t1.stage_id=t4.stage_id
|
|
|
|
|
inner join t_crawler_scheme as t5 on t1.scheme_id=t5.scheme_id
|
|
|
|
|
inner join t_crawler_book as t6 on t1.book_id=t6.book_id
|
|
|
|
|
where t2.organization_no is null
|
|
|
|
|
#end
|
|
|
|
|
#end
|