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

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

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

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

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

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

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

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

6
     <select id="listRoleModules" resultType="com.xhkjedu.suser.vo.system.RoleModuleVo">
6
     <select id="listRoleModules" resultType="com.xhkjedu.suser.vo.system.RoleModuleVo">
7
         SELECT rm.moduleid,rm.belongcode,m.modulename,m.moduleurl,m.moduleico,m.modulepid,m.minout,m.mclass,m.level
7
         SELECT rm.moduleid,rm.belongcode,m.modulename,m.moduleurl,m.moduleico,m.modulepid,m.minout,m.mclass,m.level
8
         FROM t_role_module rm LEFT JOIN t_module m ON rm.moduleid=m.moduleid
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
     </select>
10
     </select>
11
 
11
 
12
     <!-- 批量保存角色模块信息 -->
12
     <!-- 批量保存角色模块信息 -->

Loading…
Cancel
Save