Browse Source

附件作业相关qn

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

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java View File

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

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paper/AnalyzeQuestionVo.java View File

13
     //题号
13
     //题号
14
     private Integer ptqorder;
14
     private Integer ptqorder;
15
 
15
 
16
+    //题号
17
+    private String qn;
18
+
16
     //题型名称
19
     //题型名称
17
     private String qtypename;
20
     private String qtypename;
18
 
21
 

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

101
     </select>
101
     </select>
102
     <!--答题卡作业统计按题-->
102
     <!--答题卡作业统计按题-->
103
     <select id="getSQuestionAnalyze" resultType="com.xhkjedu.sstudy.vo.paper.AnalyzeQuestionVo">
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
         ,truncate(avg(pss.costtime),2)avgtime,min(pss.costtime)mintime
105
         ,truncate(avg(pss.costtime),2)avgtime,min(pss.costtime)mintime
106
         ,truncate(sum(case when pss.answered=1 then 1 else 0 end)*100/count(ps1.psid),2)commitrate
106
         ,truncate(sum(case when pss.answered=1 then 1 else 0 end)*100/count(ps1.psid),2)commitrate
107
         ,truncate(SUM(IFNULL(pss.stuscore,0))*100/(ps.psscore*count(ps1.psid)),2)scorerate
107
         ,truncate(SUM(IFNULL(pss.stuscore,0))*100/(ps.psscore*count(ps1.psid)),2)scorerate

Loading…
Cancel
Save