Kaynağa Gözat

附件作业相关qn

tags/正式版本
王宁 2 yıl önce
ebeveyn
işleme
304d0dd8d9

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java Dosyayı Görüntüle

@@ -274,11 +274,13 @@ public class PaperService {
274 274
             List<Integer> eptqidlist = new ArrayList<>();
275 275
             List<Double> scorelist = new ArrayList<>();
276 276
             List<String> qnamelist = new ArrayList<>();
277
+            List<String> qnlist = new ArrayList<>();
277 278
             for(TPaperScantronQtype t : aq){
278 279
                 List<TPaperScantron> qlist = t.getScantrons();
279 280
                 for(TPaperScantron q : qlist){
280 281
                     orderlist.add(q.getPsorder());
281 282
                     eptqidlist.add(q.getId());
283
+                    qnlist.add(q.getQn());
282 284
                     scorelist.add(q.getPsscore());
283 285
                     qnamelist.add(q.getQtypename());
284 286
                 }
@@ -287,6 +289,7 @@ public class PaperService {
287 289
             Map anmap = new TreeMap();//题型对应试题的id和基础信息
288 290
             anmap.put("orders",orderlist);
289 291
             anmap.put("eptqids",eptqidlist);
292
+            anmap.put("qns",qnlist);
290 293
             anmap.put("scores",scorelist);
291 294
             anmap.put("qtypenames",qnamelist);
292 295
 

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paper/AnalyzeQuestionVo.java Dosyayı Görüntüle

@@ -13,6 +13,9 @@ public class AnalyzeQuestionVo {
13 13
     //题号
14 14
     private Integer ptqorder;
15 15
 
16
+    //题号
17
+    private String qn;
18
+
16 19
     //题型名称
17 20
     private String qtypename;
18 21
 

+ 1
- 1
sstudy/src/main/resources/mapper/paper/PaperAnalyzeMapper.xml Dosyayı Görüntüle

@@ -101,7 +101,7 @@
101 101
     </select>
102 102
     <!--答题卡作业统计按题-->
103 103
     <select id="getSQuestionAnalyze" resultType="com.xhkjedu.sstudy.vo.paper.AnalyzeQuestionVo">
104
-        SELECT ps.paperid,ps.psorder ptqorder,ps.qtypename,ps.psscore totalscore,ps.psanswer qanswer,ps.ctype,truncate(avg(pss.stuscore),2)avgscore
104
+        SELECT ps.paperid,ps.psorder ptqorder,ps.qn,ps.qtypename,ps.psscore totalscore,ps.psanswer qanswer,ps.ctype,truncate(avg(pss.stuscore),2)avgscore
105 105
         ,truncate(avg(pss.costtime),2)avgtime,min(pss.costtime)mintime
106 106
         ,truncate(sum(case when pss.answered=1 then 1 else 0 end)*100/count(ps1.psid),2)commitrate
107 107
         ,truncate(SUM(IFNULL(pss.stuscore,0))*100/(ps.psscore*count(ps1.psid)),2)scorerate

Loading…
İptal
Kaydet