|
@@ -91,7 +91,7 @@
|
91
|
91
|
<if test="question.pointid!=null and question.pointid!='0'.toString() and question.pointid!=''">
|
92
|
92
|
left join t_question_point qp on q.questionid = qp.questionid
|
93
|
93
|
</if>
|
94
|
|
- where qc.qctype=1 and qc.classid=#{question.classid}
|
|
94
|
+ where qc.qctype!=2 and qc.classid=#{question.classid}
|
95
|
95
|
and UNIX_TIMESTAMP(FROM_UNIXTIME(qc.createtime,'%Y%m%d'))>=#{question.starttime}
|
96
|
96
|
and UNIX_TIMESTAMP(FROM_UNIXTIME(qc.createtime,'%Y%m%d'))<=#{question.stoptime}
|
97
|
97
|
<if test="question.subjectid!=null and question.subjectid!='0'.toString() and question.subjectid!=''">
|
|
@@ -166,7 +166,7 @@
|
166
|
166
|
,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
167
|
167
|
left join t_point p on qp.pointid = p.pointid where qp.questionid=q.questionid)pointname
|
168
|
168
|
from (select max(qcid)qcid,questionid from t_question_class
|
169
|
|
- where questionid=#{question.questionid} and classid=#{question.classid} and qctype=1)a
|
|
169
|
+ where questionid=#{question.questionid} and classid=#{question.classid} and qctype!=2)a
|
170
|
170
|
left join t_question_class qc on a.qcid=qc.qcid
|
171
|
171
|
left join t_question q on qc.questionid=q.questionid
|
172
|
172
|
left join t_paper_student_question psq on qc.paperid=psq.paperid and qc.classid=psq.classid
|
|
@@ -209,7 +209,7 @@
|
209
|
209
|
,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
210
|
210
|
left join t_point p on qp.pointid = p.pointid where qp.questionid=q.questionid)pointname
|
211
|
211
|
from (select max(qcid)qcid,questionid from t_question_class
|
212
|
|
- where questionid=#{question.questionid} and classid=#{question.classid} and qctype=1)a
|
|
212
|
+ where questionid=#{question.questionid} and classid=#{question.classid} and qctype!=2)a
|
213
|
213
|
left join t_question_class qc on a.qcid=qc.qcid
|
214
|
214
|
left join t_question q on qc.questionid=q.questionid
|
215
|
215
|
left join t_paper_student_question psq on qc.paperid=psq.paperid and qc.classid=psq.classid
|