You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
622 B

#namespace("Exam")
#sql("getPageSummary")
select t1.person_id,t2.person_name,sum(t1.score) as score,t2.start_time,t2.end_time from t_exam_record as t1
inner join t_exam_person as t2 on t1.person_id=t2.person_id
where t1.reply=t1.answer
group by t1.person_id,t2.person_name order by sum(t1.score) desc,timediff(t2.end_time,t2.start_time) asc
#end
#sql("getPersonAllInfoAfterJiaoJuan")
select t1.*,t2.answer from t_exam_record as t1
inner join t_exam_question as t2 on t1.question_id=t2.question_id
where t1.person_id=#para(person_id) order by t1.order_id
#end
#end