diff --git a/web/src/main/resources/sql/jlw/resourcesApplication.md b/web/src/main/resources/sql/jlw/resourcesApplication.md index 32f9ca4f..2c070043 100644 --- a/web/src/main/resources/sql/jlw/resourcesApplication.md +++ b/web/src/main/resources/sql/jlw/resourcesApplication.md @@ -216,26 +216,20 @@ queryMyApplicationByConditionQuery @} @// 查找老师所在的院校 @if(!isEmpty(teacherId)){ - and t.resources_application_id in ( - (select za.type_id from universities_colleges_jurisdiction_experimental_system za where za.type = 1 and za.universities_colleges_id = - (select universities_colleges_id from teacher where teacher_id = #teacherId# and teacher_status = 1 limit 1) - ) - ) + and tb.universities_colleges_id = + (select universities_colleges_id from teacher where teacher_id = #teacherId# and teacher_status = 1 limit 1) @} @// 查找学生所在的院校 @if(!isEmpty(studentId)){ - and t.resources_application_id in ( - (select za.type_id from universities_colleges_jurisdiction_experimental_system za where za.type = 1 and za.universities_colleges_id = - (SELECT - rb.universities_colleges_id - FROM - student ra - LEFT JOIN school_class rb ON rb.class_id = ra.class_id - WHERE - ra.student_status = 1 and ra.student_id = #studentId# - LIMIT 1) - ) - ) + and tb.universities_colleges_id = + (SELECT + rb.universities_colleges_id + FROM + student ra + LEFT JOIN school_class rb ON rb.class_id = ra.class_id + WHERE + ra.student_status = 1 and ra.student_id = #studentId# + LIMIT 1) @} @if(!isEmpty(universitiesCollegesId)) { and tb.universities_colleges_id = #universitiesCollegesId#