Browse Source

统计统计

tags/正式3.10.0
王宁 1 year ago
parent
commit
3eb18e9f0a

+ 2
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/resource/GuideAnalyzeVo.java View File

@@ -33,4 +33,6 @@ public class GuideAnalyzeVo {
33 33
     private double yxrate = 0;
34 34
     //预习学生列表
35 35
     private List<StudentVo> students;
36
+
37
+    private Integer hashb;
36 38
 }

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

@@ -301,7 +301,7 @@
301 301
     <select id="listPaper" resultMap="paperResult">
302 302
         select p.paperid,p.papername,p.papertype,p.paperclass,p.paperstate,p.checktype,p.createtime,p.timetype
303 303
         ,pg.starttime,pg.stoptime,p.papernum,p.createid,#{paper.teacherid} as checkid,p.schoolid,#{paper.schoolid} as logschoolid
304
-        ,pg.showtype,p.hasreport,group_concat(pg.classid) classids
304
+        ,pg.showtype,p.hasreport,p.hashb,group_concat(pg.classid) classids
305 305
         ,(select u.username from t_user u where u.userid=p.createid)createname
306 306
         from t_paper p left join t_paper_class pg on p.paperid=pg.paperid
307 307
         left join t_class c on pg.classid=c.classid

+ 1
- 1
sstudy/src/main/resources/mapper/resource/GuideMapper.xml View File

@@ -162,7 +162,7 @@
162 162
     </select>
163 163
     <!--预习统计:教师预习统计-->
164 164
     <select id="getPreviewAnalyze" resultType="com.xhkjedu.sstudy.vo.resource.GuideAnalyzeVo">
165
-        select g.createid as teacherid,count(distinct ggs.guideid)fbnum,count(distinct ggs.rgsid)yyxnum,
165
+        select g.createid as teacherid,g.hashb,count(distinct ggs.guideid)fbnum,count(distinct ggs.rgsid)yyxnum,
166 166
         count(distinct if(ggs.costtime!=0, ggs.rgsid, null))yxnum
167 167
         from t_guide g left join t_guide_group_student ggs on ggs.guideid=g.guideid
168 168
         left join t_class c on ggs.classid=c.classid

Loading…
Cancel
Save