加缓存

beetlsql3-dev
Mlxa0324 2 years ago
parent 0e024d5863
commit 3af20d8f0c

@ -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#

Loading…
Cancel
Save