Browse Source

Merge remote-tracking branch 'origin/master' into ywx

tags/正式版本
雍文秀 2 years ago
parent
commit
8ec9e1f9dc
19 changed files with 57 additions and 33 deletions
  1. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppRecordService.java
  2. 2
    2
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppScanService.java
  3. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppStuappService.java
  4. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppStuliveService.java
  5. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherappService.java
  6. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherclientService.java
  7. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherliveService.java
  8. 4
    3
      sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppthirdService.java
  9. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/itemtool/ReadService.java
  10. 2
    1
      sapi/src/main/java/com/xhkjedu/sapi/service/research/ResearchService.java
  11. 6
    0
      sexam/src/main/java/com/xhkjedu/sexam/model/reportclass/ERclassComplexity.java
  12. 6
    11
      sexam/src/main/java/com/xhkjedu/sexam/service/report/EReportGenerateService.java
  13. 2
    0
      sexam/src/main/java/com/xhkjedu/sexam/vo/paper/EPaperQtypeQuestionVo.java
  14. 2
    1
      sexam/src/main/resources/mapper/paper/EPaperQtypeMapper.xml
  15. 9
    4
      sexam/src/main/resources/mapper/report/ERstudentMapper.xml
  16. 2
    1
      sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java
  17. 3
    1
      sstudy/src/main/java/com/xhkjedu/sstudy/vo/question/QuestionVo.java
  18. 1
    0
      sstudy/src/main/java/com/xhkjedu/sstudy/vo/question/UserBasketVo.java
  19. 4
    2
      sstudy/src/main/resources/mapper/question/UserBasketMapper.xml

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppRecordService.java View File

34
     //删除
34
     //删除
35
     public Integer deleteById(Integer versionid) {
35
     public Integer deleteById(Integer versionid) {
36
         List<String> resourceUrls = appRecordMapper.listFolder(versionid);//获取APP文件夹
36
         List<String> resourceUrls = appRecordMapper.listFolder(versionid);//获取APP文件夹
37
+        int result = appRecordMapper.deleteByPrimaryKey(versionid);
37
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
-        return appRecordMapper.deleteByPrimaryKey(versionid);
39
+        return result;
39
     }
40
     }
40
 
41
 
41
     //修改
42
     //修改

+ 2
- 2
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppScanService.java View File

2
 
2
 
3
 import com.xhkjedu.sapi.listener.MessageSender;
3
 import com.xhkjedu.sapi.listener.MessageSender;
4
 import com.xhkjedu.sapi.mapper.appversion.AppScanMapper;
4
 import com.xhkjedu.sapi.mapper.appversion.AppScanMapper;
5
-import com.xhkjedu.sapi.mapper.appversion.AppScanMapper;
6
 import com.xhkjedu.sapi.model.appversion.TAppScan;
5
 import com.xhkjedu.sapi.model.appversion.TAppScan;
7
 import com.xhkjedu.sapi.vo.appversion.AppversionVo;
6
 import com.xhkjedu.sapi.vo.appversion.AppversionVo;
8
 import com.xhkjedu.utils.N_Utils;
7
 import com.xhkjedu.utils.N_Utils;
35
     //删除
34
     //删除
36
     public Integer deleteById(Integer versionid) {
35
     public Integer deleteById(Integer versionid) {
37
         List<String> resourceUrls = AppScanMapper.listFolder(versionid);//获取APP文件夹
36
         List<String> resourceUrls = AppScanMapper.listFolder(versionid);//获取APP文件夹
37
+        Integer result = AppScanMapper.deleteByPrimaryKey(versionid);
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
39
-        return AppScanMapper.deleteByPrimaryKey(versionid);
39
+        return result;
40
     }
40
     }
41
 
41
 
42
     //修改
42
     //修改

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppStuappService.java View File

35
     //删除
35
     //删除
36
     public Integer deleteById(Integer versionid) {
36
     public Integer deleteById(Integer versionid) {
37
         List<String> resourceUrls = appStuappMapper.listFolder(versionid);//获取APP文件夹
37
         List<String> resourceUrls = appStuappMapper.listFolder(versionid);//获取APP文件夹
38
+        Integer result = appStuappMapper.deleteByPrimaryKey(versionid);
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
39
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
39
-        return appStuappMapper.deleteByPrimaryKey(versionid);
40
+        return result;
40
     }
41
     }
41
 
42
 
42
     //修改
43
     //修改

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppStuliveService.java View File

34
     //删除
34
     //删除
35
     public Integer deleteById(Integer versionid) {
35
     public Integer deleteById(Integer versionid) {
36
         List<String> resourceUrls = appStuliveMapper.listFolder(versionid);//获取APP文件夹
36
         List<String> resourceUrls = appStuliveMapper.listFolder(versionid);//获取APP文件夹
37
+        Integer result = appStuliveMapper.deleteByPrimaryKey(versionid);
37
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
-        return appStuliveMapper.deleteByPrimaryKey(versionid);
39
+        return result;
39
     }
40
     }
40
 
41
 
41
     //修改
42
     //修改

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherappService.java View File

34
     //删除
34
     //删除
35
     public Integer deleteById(Integer versionid) {
35
     public Integer deleteById(Integer versionid) {
36
         List<String> resourceUrls = appTeacherappMapper.listFolder(versionid);//获取APP文件夹
36
         List<String> resourceUrls = appTeacherappMapper.listFolder(versionid);//获取APP文件夹
37
+        int result = appTeacherappMapper.deleteByPrimaryKey(versionid);
37
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
-        return appTeacherappMapper.deleteByPrimaryKey(versionid);
39
+        return result;
39
     }
40
     }
40
 
41
 
41
     //修改
42
     //修改

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherclientService.java View File

34
     //删除
34
     //删除
35
     public Integer deleteById(Integer versionid) {
35
     public Integer deleteById(Integer versionid) {
36
         List<String> resourceUrls = appTeacherclientMapper.listFolder(versionid);//获取APP文件夹
36
         List<String> resourceUrls = appTeacherclientMapper.listFolder(versionid);//获取APP文件夹
37
+        Integer result = appTeacherclientMapper.deleteByPrimaryKey(versionid);
37
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
-        return appTeacherclientMapper.deleteByPrimaryKey(versionid);
39
+        return result;
39
     }
40
     }
40
 
41
 
41
     //修改
42
     //修改

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppTeacherliveService.java View File

34
     //删除
34
     //删除
35
     public Integer deleteById(Integer versionid) {
35
     public Integer deleteById(Integer versionid) {
36
         List<String> resourceUrls = appTeacherliveMapper.listFolder(versionid);//获取APP文件夹
36
         List<String> resourceUrls = appTeacherliveMapper.listFolder(versionid);//获取APP文件夹
37
+        Integer result = appTeacherliveMapper.deleteByPrimaryKey(versionid);
37
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
38
-        return appTeacherliveMapper.deleteByPrimaryKey(versionid);
39
+        return result;
39
     }
40
     }
40
 
41
 
41
     //修改
42
     //修改

+ 4
- 3
sapi/src/main/java/com/xhkjedu/sapi/service/appversion/AppthirdService.java View File

47
     @Transactional(rollbackFor = Exception.class)
47
     @Transactional(rollbackFor = Exception.class)
48
     public Integer deleteById(Integer appid) {
48
     public Integer deleteById(Integer appid) {
49
         List<String> resourceUrls = appthirdHistoryMapper.listFolder(appid);//获取APP文件夹
49
         List<String> resourceUrls = appthirdHistoryMapper.listFolder(appid);//获取APP文件夹
50
-        messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
50
+        Integer result = appthirdMapper.deleteByPrimaryKey(appid);
51
         handleThirdManager(appid, 2);//处理应用白名单
51
         handleThirdManager(appid, 2);//处理应用白名单
52
-        return appthirdMapper.deleteByPrimaryKey(appid);
52
+        messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
53
+        return result;
53
     }
54
     }
54
 
55
 
55
     //修改
56
     //修改
148
      **/
149
      **/
149
     public void deleteByApphId(Integer apphid) {
150
     public void deleteByApphId(Integer apphid) {
150
         List<String> resourceUrls = appthirdHistoryMapper.listFolder2(apphid);//获取APP文件夹
151
         List<String> resourceUrls = appthirdHistoryMapper.listFolder2(apphid);//获取APP文件夹
151
-        messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
152
         appthirdHistoryMapper.deleteByPrimaryKey(apphid);
152
         appthirdHistoryMapper.deleteByPrimaryKey(apphid);
153
+        messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
153
     }
154
     }
154
 
155
 
155
     /**
156
     /**

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/itemtool/ReadService.java View File

100
      */
100
      */
101
     public Integer del(Integer readid){
101
     public Integer del(Integer readid){
102
         List<String> resourceUrls = readMapper.listFolder(readid);//获取电子书文件夹
102
         List<String> resourceUrls = readMapper.listFolder(readid);//获取电子书文件夹
103
+        Integer result = readMapper.deleteByPrimaryKey(readid);
103
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
104
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
104
-        return readMapper.deleteByPrimaryKey(readid);
105
+        return result;
105
     }
106
     }
106
 
107
 
107
     /**
108
     /**

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/research/ResearchService.java View File

145
      */
145
      */
146
     public Integer del(Integer researchid) {
146
     public Integer del(Integer researchid) {
147
         List<String> resourceUrls = researchMapper.listFolder(researchid);//获取教研文件夹
147
         List<String> resourceUrls = researchMapper.listFolder(researchid);//获取教研文件夹
148
+        Integer result = researchMapper.deleteByPrimaryKey(researchid);
148
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
149
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
149
-        return researchMapper.deleteByPrimaryKey(researchid);
150
+        return result;
150
     }
151
     }
151
 
152
 
152
     /**
153
     /**

+ 6
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/reportclass/ERclassComplexity.java View File

37
     //年级得分
37
     //年级得分
38
     private Double gradescore;
38
     private Double gradescore;
39
 
39
 
40
+    //年级平均分
41
+    private Double gradeavgscore;
42
+
40
     //年级得分率
43
     //年级得分率
41
     private Double gradesrate;
44
     private Double gradesrate;
42
 
45
 
43
     //班级得分
46
     //班级得分
44
     private Double classscore;
47
     private Double classscore;
45
 
48
 
49
+    //班级平均分
50
+    private Double classavgscore;
51
+
46
     //班级得分率
52
     //班级得分率
47
     private Double classsrate;
53
     private Double classsrate;
48
 
54
 

+ 6
- 11
sexam/src/main/java/com/xhkjedu/sexam/service/report/EReportGenerateService.java View File

1798
 
1798
 
1799
         Map rtnmap = new HashMap();
1799
         Map rtnmap = new HashMap();
1800
         rtnmap.put("answerlist", JSON.toJSONString(answermap));
1800
         rtnmap.put("answerlist", JSON.toJSONString(answermap));
1801
-        if(goodlist.size()>0){
1802
-            rtnmap.put("goodlist", JSON.toJSONString(goodlist));
1803
-        }else{
1804
-            rtnmap.put("goodlist", "");
1805
-        }
1806
-        if(badlist.size()>0){
1807
-            rtnmap.put("badlist", JSON.toJSONString(badlist));
1808
-        }else{
1809
-            rtnmap.put("badlist", "");
1810
-        }
1811
-
1801
+        rtnmap.put("goodlist", JSON.toJSONString(goodlist));
1812
         rtnmap.put("badlist", JSON.toJSONString(badlist));
1802
         rtnmap.put("badlist", JSON.toJSONString(badlist));
1813
         rtnmap.put("erroroption",erroroption);
1803
         rtnmap.put("erroroption",erroroption);
1814
         return rtnmap;
1804
         return rtnmap;
2367
             Double tgstuscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();//难易度下学生得分
2357
             Double tgstuscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();//难易度下学生得分
2368
             Double tgscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();//难易度下试题总分
2358
             Double tgscore = qgstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();//难易度下试题总分
2369
             Double tgsrate = N_Utils.getDoubleDivideAndMulitiply(tgstuscore, tgscore);//年级得分率
2359
             Double tgsrate = N_Utils.getDoubleDivideAndMulitiply(tgstuscore, tgscore);//年级得分率
2360
+            Double tgavgscore = N_Utils.getDoubleDivideForAvg(tgstuscore,qgstulist.size());
2361
+
2370
 
2362
 
2371
             for (Map classm : classes) {
2363
             for (Map classm : classes) {
2372
                 Integer classid = Integer.parseInt(classm.get("classid").toString());
2364
                 Integer classid = Integer.parseInt(classm.get("classid").toString());
2374
                 if(N_Utils.isListNotEmpty(qcstulist)){
2366
                 if(N_Utils.isListNotEmpty(qcstulist)){
2375
                     Double qcscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
2367
                     Double qcscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getQscore).sum();
2376
                     Double qcstuscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
2368
                     Double qcstuscore = qcstulist.stream().mapToDouble(EPaperStudentQuestion::getStuscore).sum();
2369
+                    Double qcavgscore = N_Utils.getDoubleDivideForAvg(qcstuscore,qcstulist.size());
2377
 
2370
 
2378
                     ERclassComplexity erc = new ERclassComplexity();
2371
                     ERclassComplexity erc = new ERclassComplexity();
2379
                     erc.setExamid(examPaperClassVo.getExamid());
2372
                     erc.setExamid(examPaperClassVo.getExamid());
2384
                     erc.setScore(score);
2377
                     erc.setScore(score);
2385
                     erc.setSrate(srate);
2378
                     erc.setSrate(srate);
2386
                     erc.setGradescore(tgstuscore);
2379
                     erc.setGradescore(tgstuscore);
2380
+                    erc.setGradeavgscore(tgavgscore);
2387
                     erc.setGradesrate(tgsrate);
2381
                     erc.setGradesrate(tgsrate);
2388
                     erc.setClassscore(qcstuscore);
2382
                     erc.setClassscore(qcstuscore);
2389
                     erc.setClasssrate(N_Utils.getDoubleDivideAndMulitiply(qcstuscore, qcscore));
2383
                     erc.setClasssrate(N_Utils.getDoubleDivideAndMulitiply(qcstuscore, qcscore));
2384
+                    erc.setClassavgscore(qcavgscore);
2390
                     erc.setQns(qns.substring(0, qns.lastIndexOf(",")));
2385
                     erc.setQns(qns.substring(0, qns.lastIndexOf(",")));
2391
                     complist.add(erc);
2386
                     complist.add(erc);
2392
                 }
2387
                 }

+ 2
- 0
sexam/src/main/java/com/xhkjedu/sexam/vo/paper/EPaperQtypeQuestionVo.java View File

46
     //试题题干
46
     //试题题干
47
     private String qstem;
47
     private String qstem;
48
 
48
 
49
+    private String qstemtxt;
50
+
49
     //试题选项
51
     //试题选项
50
     private String qoption;
52
     private String qoption;
51
 
53
 

+ 2
- 1
sexam/src/main/resources/mapper/paper/EPaperQtypeMapper.xml View File

23
             <result column="answer" property="answer"></result>
23
             <result column="answer" property="answer"></result>
24
             <result column="qctype" property="ctype"></result>
24
             <result column="qctype" property="ctype"></result>
25
             <result column="qstem" property="qstem"></result>
25
             <result column="qstem" property="qstem"></result>
26
+            <result column="qstemtxt" property="qstemtxt"></result>
26
             <result column="qoption" property="qoption"></result>
27
             <result column="qoption" property="qoption"></result>
27
             <result column="qanswer" property="qanswer"></result>
28
             <result column="qanswer" property="qanswer"></result>
28
             <result column="qanalyze" property="qanalyze"></result>
29
             <result column="qanalyze" property="qanalyze"></result>
53
     <!--试题详情-->
54
     <!--试题详情-->
54
     <select id="listPaperQtypeQuestions" resultMap="qtypesQuestion">
55
     <select id="listPaperQtypeQuestions" resultMap="qtypesQuestion">
55
         select t.eptid,t.epid,t.ctype,t.eptname,t.eptnum,t.eptorder,t.eptscore,tq.eptqid,tq.questionid,tq.answer,
56
         select t.eptid,t.epid,t.ctype,t.eptname,t.eptnum,t.eptorder,t.eptscore,tq.eptqid,tq.questionid,tq.answer,
56
-               tq.score,tq.qn,tq.qorder,q.qtypeid,q.qtypename,q.ctype qctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,
57
+               tq.score,tq.qn,tq.qorder,q.qtypeid,q.qtypename,q.ctype qctype,q.qstem,q.qstemtxt,q.qoption,q.qanswer,q.qanalyze,
57
                q.complexity,q.hashear,q.hearfile,q.qlevel,q.sorder,q.questionpid,fq.snum,fq.qstem as mqstem,fq.complexity as mcomplexity,
58
                q.complexity,q.hashear,q.hearfile,q.qlevel,q.sorder,q.questionpid,fq.snum,fq.qstem as mqstem,fq.complexity as mcomplexity,
58
                fq.qtypeid mqtypeid,fq.qtypename mqtypename,fq.ctype mctype,fq.qanalyze mqanalyze,fq.qanswer mqanswer,
59
                fq.qtypeid mqtypeid,fq.qtypename mqtypename,fq.ctype mctype,fq.qanalyze mqanalyze,fq.qanswer mqanswer,
59
                fq.qlevel mqlevel,fq.hashear mhashear,fq.hearfile mhearfile
60
                fq.qlevel mqlevel,fq.hashear mhashear,fq.hearfile mhearfile

+ 9
- 4
sexam/src/main/resources/mapper/report/ERstudentMapper.xml View File

52
     <select id="listStudentExamHistory" resultType="java.util.Map">
52
     <select id="listStudentExamHistory" resultType="java.util.Map">
53
         select e.examid,e.examdate,s.classrank,s.schoolrank
53
         select e.examid,e.examdate,s.classrank,s.schoolrank
54
         from e_rstudent s LEFT JOIN e_base e on s.examid=e.examid
54
         from e_rstudent s LEFT JOIN e_base e on s.examid=e.examid
55
-        where s.studentid=#{studentid} and s.subjectid=#{subjectid} order by e.examdate desc limit 10
55
+        where s.studentid=#{studentid} and s.subjectid=#{subjectid} order by e.examdate limit 10
56
     </select>
56
     </select>
57
 
57
 
58
     <!--学生报告-学科分析-学科名次-->
58
     <!--学生报告-学科分析-学科名次-->
68
     </select>
68
     </select>
69
     <!--学生报告-学科分析-难易度分析-->
69
     <!--学生报告-学科分析-难易度分析-->
70
     <select id="listSubjectComplexitys" resultType="java.util.Map">
70
     <select id="listSubjectComplexitys" resultType="java.util.Map">
71
-        select sc.complexity,sc.stuscore,sc.stusrate,cc.score,cc.srate,cc.gradescore,cc.gradesrate,cc.classscore,cc.classsrate,cc.qns
71
+        select sc.complexity,sc.stuscore,sc.stusrate,cc.score,cc.srate,cc.gradescore,cc.gradeavgscore,cc.gradesrate,
72
+               cc.classscore,cc.classavgscore,cc.classsrate,cc.qns
72
         from e_rstudent_complexity sc left join e_rclass_complexity cc on sc.examid=cc.examid
73
         from e_rstudent_complexity sc left join e_rclass_complexity cc on sc.examid=cc.examid
73
             and sc.subjectid=cc.subjectid and sc.complexity=cc.complexity and sc.classid=cc.classid
74
             and sc.subjectid=cc.subjectid and sc.complexity=cc.complexity and sc.classid=cc.classid
74
         where sc.examid=#{examid} and sc.subjectid=#{subjectid} and sc.studentid=#{studentid} order by sc.complexity
75
         where sc.examid=#{examid} and sc.subjectid=#{subjectid} and sc.studentid=#{studentid} order by sc.complexity
75
     </select>
76
     </select>
76
     <!--学生报告-学科分析-题型分析-->
77
     <!--学生报告-学科分析-题型分析-->
77
     <select id="listSubjectQtypes" resultType="java.util.Map">
78
     <select id="listSubjectQtypes" resultType="java.util.Map">
78
-        select st.qtypename,st.stuscore,st.stusrate,ct.score,ct.srate,ct.gradescore,ct.gradesrate,ct.classscore,ct.classsrate,ct.qns
79
+        select st.qtypename,st.stuscore,st.stusrate,ct.score,ct.srate,ct.gradescore,ct.gradesrate,ct.gradeavgscore
80
+               ,ct.classscore,ct.classsrate,ct.classavgscore,ct.qns
79
         from e_rstudent_qtype st left join e_rclass_qtype ct on st.examid=ct.examid
81
         from e_rstudent_qtype st left join e_rclass_qtype ct on st.examid=ct.examid
80
             and st.subjectid=ct.subjectid and st.qtypeid=ct.qtypeid and st.classid=ct.classid
82
             and st.subjectid=ct.subjectid and st.qtypeid=ct.qtypeid and st.classid=ct.classid
81
         where st.examid=#{examid} and st.subjectid=#{subjectid} and st.studentid=#{studentid} order by st.erstid
83
         where st.examid=#{examid} and st.subjectid=#{subjectid} and st.studentid=#{studentid} order by st.erstid
83
     <!--学生报告-学科分析-试题分析(附件)-->
85
     <!--学生报告-学科分析-试题分析(附件)-->
84
     <select id="listSubjectQuestionsForFj" resultType="java.util.Map">
86
     <select id="listSubjectQuestionsForFj" resultType="java.util.Map">
85
         select sq.qn,sq.qorder,sq.stuscore,sq.qscore,cq.qtypename,cq.classscore,cq.classsrate,cq.gradescore,cq.gradesrate
87
         select sq.qn,sq.qorder,sq.stuscore,sq.qscore,cq.qtypename,cq.classscore,cq.classsrate,cq.gradescore,cq.gradesrate
88
+               ,cq.gradeavgscore,cq.classavgscore
86
         from e_paper_student_question sq left join e_paper_student ps on sq.epsid=ps.epsid
89
         from e_paper_student_question sq left join e_paper_student ps on sq.epsid=ps.epsid
87
         left join e_rclass_question cq on ps.examid=cq.examid and sq.eptqid=cq.eptqid and sq.classid=cq.classid
90
         left join e_rclass_question cq on ps.examid=cq.examid and sq.eptqid=cq.eptqid and sq.classid=cq.classid
88
         and cq.eptqid=cq.eptqid where ps.examid=#{examid} and ps.subjectid=#{subjectid} and sq.studentid=#{studentid} order by sq.eptqid
91
         and cq.eptqid=cq.eptqid where ps.examid=#{examid} and ps.subjectid=#{subjectid} and sq.studentid=#{studentid} order by sq.eptqid
93
         <result property="qtypename" column="qtypename" />
96
         <result property="qtypename" column="qtypename" />
94
         <result property="classscore" column="classscore" />
97
         <result property="classscore" column="classscore" />
95
         <result property="classsrate" column="classsrate" />
98
         <result property="classsrate" column="classsrate" />
99
+        <result property="classavgscore" column="classavgscore" />
96
         <result property="gradescore" column="gradescore" />
100
         <result property="gradescore" column="gradescore" />
97
         <result property="gradesrate" column="gradesrate" />
101
         <result property="gradesrate" column="gradesrate" />
102
+        <result property="gradeavgscore" column="gradeavgscore" />
98
         <result property="qscore" column="score" />
103
         <result property="qscore" column="score" />
99
         <result property="epid" column="epid" />
104
         <result property="epid" column="epid" />
100
         <result property="qn" column="qn" />
105
         <result property="qn" column="qn" />
108
     </resultMap>
113
     </resultMap>
109
     <select id="listSubjectQuestionsForTk" resultMap="listSubjectQuesTk">
114
     <select id="listSubjectQuestionsForTk" resultMap="listSubjectQuesTk">
110
         select cq.questionid,cq.classscore,cq.classsrate,cq.gradescore,cq.gradesrate,cq.qtypename,cq.score,
115
         select cq.questionid,cq.classscore,cq.classsrate,cq.gradescore,cq.gradesrate,cq.qtypename,cq.score,
111
-        cq.epid,cq.qn,ps.studentid from e_rclass_question cq
116
+        cq.epid,cq.qn,ps.studentid,cq.classavgscore,cq.gradeavgscore from e_rclass_question cq
112
         left join e_paper_student ps on cq.epid=ps.epid and cq.classid=ps.classid
117
         left join e_paper_student ps on cq.epid=ps.epid and cq.classid=ps.classid
113
         where  cq.epid=#{epid} and ps.studentid=#{studentid} order by cq.qorder
118
         where  cq.epid=#{epid} and ps.studentid=#{studentid} order by cq.qorder
114
     </select>
119
     </select>

+ 2
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java View File

268
      */
268
      */
269
     public Integer delPaper(TPaper paper){
269
     public Integer delPaper(TPaper paper){
270
         List<String> resourceUrls = paperFileService.listFolder(paper.getPaperid());//获取作业文件夹
270
         List<String> resourceUrls = paperFileService.listFolder(paper.getPaperid());//获取作业文件夹
271
+        int result =  paperMapper.delPaper(paper.getPaperid());
271
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
272
         messageSender.resourceDel(resourceUrls);//给文件服务器发送mq删除文件
272
-        return paperMapper.delPaper(paper.getPaperid());
273
+        return result;
273
     }
274
     }
274
 
275
 
275
     /**
276
     /**

+ 3
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/vo/question/QuestionVo.java View File

24
     //试题题干
24
     //试题题干
25
     private String qstem;
25
     private String qstem;
26
 
26
 
27
+
28
+    private String qstemtxt;
29
+
27
     //试题选项
30
     //试题选项
28
     private String qoption;
31
     private String qoption;
29
 
32
 
123
     //子题
126
     //子题
124
     private List<Map> sonqlist;
127
     private List<Map> sonqlist;
125
 
128
 
126
-    private String qstemtxt;
127
 }
129
 }

+ 1
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/question/UserBasketVo.java View File

4
 
4
 
5
 import java.util.List;
5
 import java.util.List;
6
 
6
 
7
+
7
 @Data
8
 @Data
8
 public class UserBasketVo {
9
 public class UserBasketVo {
9
     //用户id
10
     //用户id

+ 4
- 2
sstudy/src/main/resources/mapper/question/UserBasketMapper.xml View File

13
             <result property="complexity" column="complexity"></result>
13
             <result property="complexity" column="complexity"></result>
14
             <result property="ctype" column="ctype"></result>
14
             <result property="ctype" column="ctype"></result>
15
             <result property="qstem" column="qstem"></result>
15
             <result property="qstem" column="qstem"></result>
16
+            <result property="qstemtxt" column="qstemtxt"></result>
16
             <result property="qoption" column="qoption"></result>
17
             <result property="qoption" column="qoption"></result>
17
             <result property="qanswer" column="qanswer"></result>
18
             <result property="qanswer" column="qanswer"></result>
18
             <result property="qanalyze" column="qanalyze"></result>
19
             <result property="qanalyze" column="qanalyze"></result>
40
         <result property="complexity" column="complexity"></result>
41
         <result property="complexity" column="complexity"></result>
41
         <result property="ctype" column="ctype"></result>
42
         <result property="ctype" column="ctype"></result>
42
         <result property="qstem" column="qstem"></result>
43
         <result property="qstem" column="qstem"></result>
44
+        <result property="qstemtxt" column="qstemtxt"></result>
43
         <result property="qoption" column="qoption"></result>
45
         <result property="qoption" column="qoption"></result>
44
         <result property="qanswer" column="qanswer"></result>
46
         <result property="qanswer" column="qanswer"></result>
45
         <result property="qanalyze" column="qanalyze"></result>
47
         <result property="qanalyze" column="qanalyze"></result>
55
         </collection>
57
         </collection>
56
     </resultMap>
58
     </resultMap>
57
     <select id="findAll" resultMap="basketResult">
59
     <select id="findAll" resultMap="basketResult">
58
-        select ub.*,q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.createtime
60
+        select ub.*,q.questionid,q.score,q.complexity,q.ctype,q.qstem,q.qstemtxt,q.qoption,q.qanswer,q.qanalyze,q.createtime
59
         ,q.count,qp.pointid,p.pointname,q.qlevel,q.snum,q.hashear,q.hearfile
61
         ,q.count,qp.pointid,p.pointname,q.qlevel,q.snum,q.hashear,q.hearfile
60
         from t_user_basket ub left join t_subject_questiontype tsq on ub.qtypeid = tsq.qtypeid
62
         from t_user_basket ub left join t_subject_questiontype tsq on ub.qtypeid = tsq.qtypeid
61
         left join t_question q on ub.questionid = q.questionid
63
         left join t_question q on ub.questionid = q.questionid
65
         order by tsq.qtypeorder,q.questionid
67
         order by tsq.qtypeorder,q.questionid
66
     </select>
68
     </select>
67
     <select id="listSonQuestions" resultMap="listSonQuestions">
69
     <select id="listSonQuestions" resultMap="listSonQuestions">
68
-        select q.questionid,q.score,q.complexity,q.ctype,q.qtypeid,q.qtypename,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.createtime
70
+        select q.questionid,q.score,q.complexity,q.ctype,q.qtypeid,q.qtypename,q.qstem,q.qstemtxt,q.qoption,q.qanswer,q.qanalyze,q.createtime
69
          ,q.count,q.questionpid,q.qlevel,q.sorder,qp.pointid,p.pointname from t_question q
71
          ,q.count,q.questionpid,q.qlevel,q.sorder,qp.pointid,p.pointname from t_question q
70
         left join t_question_point qp on q.questionid = qp.questionid
72
         left join t_question_point qp on q.questionid = qp.questionid
71
         left join t_point p on qp.pointid = p.pointid
73
         left join t_point p on qp.pointid = p.pointid

Loading…
Cancel
Save