加缓存

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

@ -216,16 +216,12 @@ queryMyApplicationByConditionQuery
@} @}
@// 查找老师所在的院校 @// 查找老师所在的院校
@if(!isEmpty(teacherId)){ @if(!isEmpty(teacherId)){
and t.resources_application_id in ( and tb.universities_colleges_id =
(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) (select universities_colleges_id from teacher where teacher_id = #teacherId# and teacher_status = 1 limit 1)
)
)
@} @}
@// 查找学生所在的院校 @// 查找学生所在的院校
@if(!isEmpty(studentId)){ @if(!isEmpty(studentId)){
and t.resources_application_id in ( and tb.universities_colleges_id =
(select za.type_id from universities_colleges_jurisdiction_experimental_system za where za.type = 1 and za.universities_colleges_id =
(SELECT (SELECT
rb.universities_colleges_id rb.universities_colleges_id
FROM FROM
@ -234,8 +230,6 @@ queryMyApplicationByConditionQuery
WHERE WHERE
ra.student_status = 1 and ra.student_id = #studentId# ra.student_status = 1 and ra.student_id = #studentId#
LIMIT 1) LIMIT 1)
)
)
@} @}
@if(!isEmpty(universitiesCollegesId)) { @if(!isEmpty(universitiesCollegesId)) {
and tb.universities_colleges_id = #universitiesCollegesId# and tb.universities_colleges_id = #universitiesCollegesId#

Loading…
Cancel
Save