|
|
@ -5,6 +5,7 @@ queryByCondition
|
|
|
|
select
|
|
|
|
select
|
|
|
|
@pageTag(){
|
|
|
|
@pageTag(){
|
|
|
|
t.*
|
|
|
|
t.*
|
|
|
|
|
|
|
|
#use("selectStudentAnswerFragment")#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
where 1=1
|
|
|
|
where 1=1
|
|
|
@ -91,6 +92,7 @@ queryByConditionQuery
|
|
|
|
select
|
|
|
|
select
|
|
|
|
@pageTag(){
|
|
|
|
@pageTag(){
|
|
|
|
t.*
|
|
|
|
t.*
|
|
|
|
|
|
|
|
#use("selectStudentAnswerFragment")#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
where 1=1
|
|
|
|
where 1=1
|
|
|
@ -322,6 +324,7 @@ getGeneralResourcesQuestionSnapshotValues
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
select t.*
|
|
|
|
|
|
|
|
#use("selectStudentAnswerFragment")#
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
where 1=1
|
|
|
|
where 1=1
|
|
|
|
@if(!isEmpty(generalResourcesQuestionSnapshotId)){
|
|
|
|
@if(!isEmpty(generalResourcesQuestionSnapshotId)){
|
|
|
@ -383,6 +386,7 @@ getValuesByQuery
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
select t.*
|
|
|
|
|
|
|
|
#use("selectStudentAnswerFragment")#
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
where 1=1 and #function("generalResourcesQuestionSnapshot.query")#
|
|
|
|
where 1=1 and #function("generalResourcesQuestionSnapshot.query")#
|
|
|
|
@if(!isEmpty(generalResourcesQuestionSnapshotId)){
|
|
|
|
@if(!isEmpty(generalResourcesQuestionSnapshotId)){
|
|
|
@ -458,6 +462,20 @@ getValuesByQuery
|
|
|
|
and find_in_set(t.org_id,#orgIdPlural#)
|
|
|
|
and find_in_set(t.org_id,#orgIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectStudentAnswerFragment
|
|
|
|
|
|
|
|
===
|
|
|
|
|
|
|
|
* 查询学生的分数
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(!isEmpty(studentId!)){
|
|
|
|
|
|
|
|
,(select b.general_question_log_answer
|
|
|
|
|
|
|
|
from general_question_log b
|
|
|
|
|
|
|
|
where 1 = 1 and b.student_id = #studentId#
|
|
|
|
|
|
|
|
and b.general_question_log_status = 1
|
|
|
|
|
|
|
|
and b.general_question_setting_id = t.general_question_setting_id
|
|
|
|
|
|
|
|
and b.general_resources_question_snapshot_id = t.general_resources_question_snapshot_id
|
|
|
|
|
|
|
|
order by general_question_log_add_time desc limit 1
|
|
|
|
|
|
|
|
) as student_answer
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
|
===
|
|
|
|
===
|
|
|
@ -465,6 +483,7 @@ getValuesByQueryNotWithPermission
|
|
|
|
* 根据不为空的参数进行查询(不包含权限)
|
|
|
|
* 根据不为空的参数进行查询(不包含权限)
|
|
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
select t.*
|
|
|
|
|
|
|
|
#use("selectStudentAnswerFragment")#
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
from general_resources_question_snapshot t
|
|
|
|
where 1=1
|
|
|
|
where 1=1
|
|
|
|
@if(!isEmpty(generalResourcesQuestionSnapshotId)){
|
|
|
|
@if(!isEmpty(generalResourcesQuestionSnapshotId)){
|
|
|
|