From 3af20d8f0cf281b1b825c1c3f03328c3c3580d8b Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Mon, 12 Dec 2022 12:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sql/jlw/resourcesApplication.md | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) 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#