Browse Source

Merge remote-tracking branch 'cloud-schoolapi/ywx'

tags/正式版本
王宁 2 years ago
parent
commit
ec2ee99564

+ 1
- 1
sstudy/src/main/resources/mapper/paper/PaperAnalyzeMapper.xml View File

@@ -95,7 +95,7 @@
95 95
         left join t_paper_student_question psq on psq.psid=ps.psid and ptq.questionid=psq.questionid
96 96
         where ptq.paperid=#{paperid}
97 97
         <if test="papertype==3">
98
-            and locate(concat('"',ptq.questionid,'"'),ps.questionids)>0
98
+            and locate(concat('"',ptq.questionpid,'"'),ps.questionids)>0
99 99
         </if>
100 100
         group by ptq.ptqorder order by ptq.ptqorder
101 101
     </select>

+ 1
- 1
sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml View File

@@ -5,7 +5,7 @@
5 5
     <select id="getQuestionAnalyze" resultType="com.xhkjedu.sstudy.model.question.TQuestionClass">
6 6
         select ptq.questionpid questionid,ptq.ptqorder qorder,ptq.mscore qscore,sum(ifnull(psq.stuscore,0))stuscore,ptq.schoolid,ptq.mqtypeid qtypeid
7 7
         ,(select count(*) from t_paper_student ps where ps.paperid=#{paperid} and ps.classid=#{classid}
8
-        <if test="qctype==3">and locate(concat('"',ptq.questionid,'"'),ps.questionids)>0</if>)stunum
8
+        <if test="qctype==3">and locate(concat('"',ptq.questionpid,'"'),ps.questionids)>0</if>)stunum
9 9
         ,(select q.hashear from t_question q where q.questionid=ptq.questionpid)hashear
10 10
         from t_paper_qtype_question ptq left join t_paper_student_question psq on ptq.paperid = psq.paperid
11 11
         and ptq.questionid=psq.questionid and psq.classid=#{classid}

Loading…
Cancel
Save