Browse Source

错题集详情完善

tags/正式版本
雍文秀 2 years ago
parent
commit
58e32db20f

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

121
     </select>
121
     </select>
122
     <resultMap id="questionResult" type="com.xhkjedu.sstudy.vo.question.QuestionClassDetailVo">
122
     <resultMap id="questionResult" type="com.xhkjedu.sstudy.vo.question.QuestionClassDetailVo">
123
         <result property="paperid" column="paperid"></result>
123
         <result property="paperid" column="paperid"></result>
124
+        <result property="classid" column="classid"></result>
124
         <result property="questionid" column="questionid"></result>
125
         <result property="questionid" column="questionid"></result>
125
         <result property="qscore" column="qscore"></result>
126
         <result property="qscore" column="qscore"></result>
126
         <result property="ctype" column="ctype"></result>
127
         <result property="ctype" column="ctype"></result>
250
     </select>
251
     </select>
251
     <!--班级作业学生作答情况-->
252
     <!--班级作业学生作答情况-->
252
     <select id="listStusAnswer" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
253
     <select id="listStusAnswer" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
253
-        select questionid,studentid,useranswer,stuscore,qscore
254
+        select questionid,studentid,ifnull(useranswer,'')useranswer,stuscore,qscore
254
         from t_paper_student_question
255
         from t_paper_student_question
255
         where paperid=#{question.paperid} and classid=#{question.classid} and questionpid=#{question.questionid}
256
         where paperid=#{question.paperid} and classid=#{question.classid} and questionpid=#{question.questionid}
257
+        and (answered=1 or checked=1)
256
     </select>
258
     </select>
257
     <select id="complexDetail" resultMap="complexResult">
259
     <select id="complexDetail" resultMap="complexResult">
258
         select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity,q.hashear,q.hearfile
260
         select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity,q.hashear,q.hearfile

Loading…
Cancel
Save