Browse Source

完善模块相关排序、组件考试报告数据

tags/正式3.14.0
王宁 5 months ago
parent
commit
948ec8bd62

+ 4
- 0
sapi/src/main/java/com/xhkjedu/sapi/mapper/component/ComponentMapper.java View File

@@ -102,22 +102,26 @@ public interface ComponentMapper {
102 102
     List<Map<String,Object>> listExamPaperCheck(@Param("params")ComponentParams params);
103 103
     //考试-待监考
104 104
     List<Map<String,Object>> listExamInvigilate(@Param("params")ComponentParams params);
105
+
105 106
     //考试-校级报告-获取最近一次生成报告的考试
106 107
     Map<String,Object> getExamReportSchoolBase(@Param("schoolid")Integer schoolid);
107 108
     //考试-校级报告-成绩概况
108 109
     List<Map<String,Object>> listExamReportSchoolStatistic(@Param("examid")Integer examid);
110
+
109 111
     //考试-班级报告-考试信息
110 112
     ExamInfoVo getExamReportClassInfo(@Param("params")ComponentParams params);
111 113
     //考试-班级报告-学科成绩对比
112 114
     List<Map<String,Object>> listExamReportClassScore(@Param("params")ComponentParams params);
113 115
     //考试-考试报告-参与班级
114 116
     List<Map<String,Object>> listExamReportClass(@Param("examid")Integer examid,@Param("userid")Integer userid);
117
+
115 118
     //考试-单科报告-单科考试信息
116 119
     ExamInfoVo getExamReportSingleInfo(@Param("params")ComponentParams params);
117 120
     //考试-单科报告-单科概况
118 121
     Map<String,Object> getExamReportSingleBase(@Param("params")ComponentParams params);
119 122
     //考试-单科报告-成绩等级分布
120 123
     List<Map<String,Object>> listExamReportSingleRank(@Param("params")ComponentParams params);
124
+
121 125
     //考试-阅卷进度-考试信息
122 126
     ExamInfoVo getExamCheckProgressBase(@Param("params")ComponentParams params);
123 127
     //考试-阅卷进度-试卷

+ 3
- 3
sapi/src/main/resources/mapper/component/ComponentMapper.xml View File

@@ -520,7 +520,7 @@
520 520
     <select id="getExamReportSchoolBase" resultType="java.util.Map">
521 521
         select re.classnum,re.stunum,re.missnum,re.subjectnum,re.maxscore,re.avgscore,re.mixscore,
522 522
         e.examid,e.teashowrank,e.examstate,e.examname from e_base e left join e_rbase re on e.examid=re.examid
523
-        where e.schoolid=#{schoolid} and e.deleted=1 and e.examstate=3 order by examdate desc limit 1
523
+        where e.schoolid=#{schoolid} and e.deleted=1 order by examdate desc limit 1
524 524
     </select>
525 525
     <!--考试-校级报告-成绩概况-->
526 526
     <select id="listExamReportSchoolStatistic" resultType="java.util.Map">
@@ -542,7 +542,7 @@
542 542
         select e.examid,e.examname,e.teashowrank,e.examstate,c.classid,c.classname
543 543
         from e_base e left join e_class c on e.examid=c.examid
544 544
         left join t_class_teacher ct on c.classid=ct.classid
545
-        where e.deleted=1 and e.examstate=3 and c.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
545
+        where e.deleted=1 and e.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
546 546
         group by e.examid order by e.examdate desc,e.examid desc,c.ecid limit 1
547 547
     </select>
548 548
     <!--考试-班级报告-学科成绩对比-->
@@ -564,7 +564,7 @@
564 564
         left join t_teacher_powersb tp on tp.teacherid=#{params.userid} and tp.subjectid=s.subjectid
565 565
         left join e_class c on e.examid=c.examid
566 566
         left join t_class_teacher ct on c.classid=ct.classid and tp.teacherid=ct.teacherid
567
-        where e.deleted=1 and e.examstate=3 and c.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
567
+        where e.deleted=1 and e.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
568 568
         group by e.examid order by e.examdate desc,e.examid desc,c.ecid limit 1
569 569
     </select>
570 570
     <!--考试-单科报告-单科概况-->

+ 3
- 3
sapi/src/main/resources/mapper/system/ModuleMapper.xml View File

@@ -12,14 +12,14 @@
12 12
         <if test="module.belongcode!=null and module.belongcode==1">and m.belongcode in (1,3)</if>
13 13
         <if test="module.belongcode!=null and module.belongcode==2">and m.belongcode in (2,3)</if>
14 14
         <if test="module.display!=null">and m.display=#{module.display}</if>
15
-        ORDER BY m.morder,m.moduleid
15
+        ORDER BY m.level,m.morder,m.moduleid
16 16
     </select>
17 17
 
18 18
     <!-- 获取供第一层模块 -->
19 19
     <select id="listLevelModule" resultType="com.xhkjedu.sapi.vo.system.ModuleSelVo">
20 20
         SELECT moduleid,modulename,LEVEL FROM t_module
21 21
         WHERE schoolid=#{schoolid} and LEVEL=1 and display=1 and belong=#{belong}
22
-        order by morder,moduleid
22
+        order by level,morder,moduleid
23 23
     </select>
24 24
 
25 25
     <update id="updateOrder">
@@ -48,7 +48,7 @@
48 48
         FROM t_module m WHERE m.schoolid=#{schoolid} and m.level!=1 and m.belong=#{belong}
49 49
         <if test="belongcode!=null and belongcode==1">and m.belongcode in (1,3)</if>
50 50
         <if test="belongcode!=null and belongcode==2">and m.belongcode in (2,3)</if>
51
-        and m.display=1 ORDER BY m.morder,m.moduleid
51
+        and m.display=1 ORDER BY m.level,m.morder,m.moduleid
52 52
     </select>
53 53
     <!--删除默认模块关联的学校模块-->
54 54
     <delete id="deleteByDefaultId">

+ 3
- 3
sapi/src/main/resources/mapper/system/ModuledefaultMapper.xml View File

@@ -10,19 +10,19 @@
10 10
         <if test="belongcode!=null and belongcode==2">and m.belongcode in (2,3)</if>
11 11
 
12 12
         <if test="display!=null">and m.display=#{display}</if>
13
-        group by m.moduleid ORDER BY m.morder,m.moduleid
13
+        group by m.moduleid ORDER BY m.level,m.morder,m.moduleid
14 14
     </select>
15 15
 
16 16
     <!--获取所有模块-->
17 17
     <select id="listAllModules" resultType="com.xhkjedu.sapi.model.system.TModule">
18 18
         SELECT m.moduleid,m.modulename,m.moduleurl,m.moduleico,m.modulepid,m.morder,m.minout
19 19
         ,m.comm,m.mclass,m.level,m.mabbrevname,m.mdefault,m.belong,m.belongcode,m.display
20
-        FROM t_moduledefault m ORDER BY m.morder
20
+        FROM t_moduledefault m ORDER BY m.level,m.morder,m.moduleid
21 21
     </select>
22 22
     <!-- 获取供第一层模块 -->
23 23
     <select id="listLevelModule" resultType="com.xhkjedu.sapi.vo.system.ModuleSelVo">
24 24
         SELECT moduleid,modulename,LEVEL FROM t_moduledefault WHERE LEVEL=1 and display=1
25
-        and belong=#{belong} order by morder,moduleid
25
+        and belong=#{belong} order by level,morder,moduleid
26 26
     </select>
27 27
     <!--获取学校id集合-->
28 28
     <select id="listSchoolId" resultType="java.lang.Integer">

+ 1
- 1
suser/src/main/resources/mapper/system/RoleModuleMapper.xml View File

@@ -6,7 +6,7 @@
6 6
     <select id="listRoleModules" resultType="com.xhkjedu.suser.vo.system.RoleModuleVo">
7 7
         SELECT rm.moduleid,rm.belongcode,m.modulename,m.moduleurl,m.moduleico,m.modulepid,m.minout,m.mclass,m.level
8 8
         FROM t_role_module rm LEFT JOIN t_module m ON rm.moduleid=m.moduleid
9
-        WHERE rm.roleid=#{roleid} and m.display=1 ORDER BY m.morder
9
+        WHERE rm.roleid=#{roleid} and m.display=1 ORDER BY m.level,m.morder,m.moduleid
10 10
     </select>
11 11
 
12 12
     <!-- 批量保存角色模块信息 -->

Loading…
Cancel
Save