Browse Source

学生作业报告-试卷详情优化 附件作业题干(作业名称拼接qn)

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
08ca8de703

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/report/EReportClassService.java View File

@@ -213,7 +213,7 @@ public class EReportClassService {
213 213
             String examname = paper.get("examname").toString();
214 214
             list = eReportClassMapper.listFjSjGk(rank);
215 215
             for (Map q : list) {
216
-                q.put("qstem", examname + "-第" + q.get("qorder") + "题");
216
+                q.put("qstem", examname + "-第" + q.get("qn") + "题");
217 217
             }
218 218
         }
219 219
         paper.remove("examname");

+ 1
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperreport/PaperReportService.java View File

@@ -1219,7 +1219,7 @@ public class PaperReportService {
1219 1219
             list = paperReportMapper.listFjSt(paperid, classid);
1220 1220
             for (Map t : list) {
1221 1221
                 for (Map q : (List<Map>) t.get("questions")) {
1222
-                    q.put("qstem", papername + "-第" + q.get("qorder") + "题");
1222
+                    q.put("qstem", papername + "-第" + q.get("qn") + "题");
1223 1223
                     q.put("classratetype", StudyUtil.getScoreRateType(StudyUtil.objToDouble(q.get("classscorerate"))));
1224 1224
                     if(N_Utils.isEmpty(q.get("classavgscore"))){
1225 1225
                         q.put("classavgscore",0);

+ 1
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperreport/PaperStudentReportService.java View File

@@ -96,7 +96,7 @@ public class PaperStudentReportService {
96 96
             list = paperStudentReportMapper.listFjSt(paperid, classid, studentid, showanswer);
97 97
             for (Map t : list) {
98 98
                 for (Map q : (List<Map>) t.get("questions")) {
99
-                    q.put("qstem", papername + "-第" + q.get("qorder") + "题");
99
+                    q.put("qstem", papername + "-第" + q.get("qn") + "题");
100 100
                     if (showanswer == 1) {
101 101
                         if (N_Utils.isEmpty(q.get("classavgscore"))) {
102 102
                             q.put("classavgscore", 0);

+ 3
- 2
sstudy/src/main/resources/mapper/paperreport/PaperStudentReportMapper.xml View File

@@ -67,7 +67,8 @@
67 67
     </resultMap>
68 68
     <!--题库作业试题-->
69 69
     <select id="listTkSt" resultMap="typeResult">
70
-        select pq.qtypename,pq.ptid,pq.ptorder,pqq.qn,psq.qorder,sum(psq.qscore)qscore,tq.ctype,
70
+        select pq.qtypename,pq.ptid,pq.ptorder,psq.qorder,sum(psq.qscore)qscore,tq.ctype,
71
+        (case when tq.qlevel=1 then pqq.qn else pqq.ptqorder end)qn,
71 72
         pqq.questionpid questionid,tq.qtypename qqtypename
72 73
         <if test="showanswer==1">
73 74
             ,q.classavgscore,q.classscorerate,truncate(sum(psq.stuscore)*100/sum(psq.qscore),2)scorerate
@@ -146,7 +147,7 @@
146 147
         <if test="papertype==2">,q.qn mqn,q.pssid psqid from t_paper_student_scantron q</if>
147 148
         left join t_user u on q.studentid=u.userid
148 149
         where q.paperid=#{paperid} and q.classid=#{classid} and good=1
149
-        order by q.qorder,convert(u.username using gbk)
150
+        order by q.qorder,q.qn,convert(u.username using gbk)
150 151
     </select>
151 152
     <!--作业基本信息-->
152 153
     <select id="getPaper" resultType="java.util.Map">

Loading…
Cancel
Save