|
@@ -7,13 +7,7 @@
|
7
|
7
|
select count(DISTINCT pg.paperid) from t_paper_class pg left join t_paper p on pg.paperid=p.paperid
|
8
|
8
|
LEFT JOIN t_school s on p.schoolid=s.schoolid and pg.schoolid=s.schoolid
|
9
|
9
|
left join t_class c on c.classid=pg.classid
|
10
|
|
- where s.schoollevel=#{param.level}
|
11
|
|
- <if test="param.year!=null and param.year!=0">
|
12
|
|
- and c.year=#{param.year}
|
13
|
|
- </if>
|
14
|
|
- <if test="param.year==null || param.year==0">
|
15
|
|
- and c.year=s.year
|
16
|
|
- </if>
|
|
10
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and p.year=#{param.year}
|
17
|
11
|
<if test="param.begintime!=null and param.begintime!=0">
|
18
|
12
|
and pg.starttime between #{param.begintime} and #{param.endtime}
|
19
|
13
|
</if>
|
|
@@ -23,13 +17,7 @@
|
23
|
17
|
select count(DISTINCT g.guideid) from t_guide_group gg left join t_guide g on gg.guideid=g.guideid
|
24
|
18
|
LEFT JOIN t_school s on g.schoolid=s.schoolid and gg.schoolid=s.schoolid
|
25
|
19
|
left join t_class c on c.classid=gg.classid
|
26
|
|
- where s.schoollevel=#{param.level}
|
27
|
|
- <if test="param.year!=null and param.year!=0">
|
28
|
|
- and c.year=#{param.year}
|
29
|
|
- </if>
|
30
|
|
- <if test="param.year==null || param.year==0">
|
31
|
|
- and c.year=s.year
|
32
|
|
- </if>
|
|
20
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and g.year=#{param.year}
|
33
|
21
|
<if test="param.begintime!=null and param.begintime!=0">
|
34
|
22
|
and g.createtime between #{param.begintime} and #{param.endtime}
|
35
|
23
|
</if>
|
|
@@ -39,32 +27,20 @@
|
39
|
27
|
select count(DISTINCT rg.reciteid) from t_recite_group rg left join t_recite r on rg.reciteid=r.reciteid
|
40
|
28
|
LEFT JOIN t_school s on r.schoolid=s.schoolid and rg.schoolid=s.schoolid
|
41
|
29
|
left join t_class c on c.classid=rg.classid
|
42
|
|
- where s.schoollevel=#{param.level}
|
43
|
|
- <if test="param.year!=null and param.year!=0">
|
44
|
|
- and c.year=#{param.year}
|
45
|
|
- </if>
|
46
|
|
- <if test="param.year==null || param.year==0">
|
47
|
|
- and c.year=s.year
|
48
|
|
- </if>
|
|
30
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and r.year=#{param.year}
|
49
|
31
|
<if test="param.begintime!=null and param.begintime!=0">
|
50
|
32
|
and rg.starttime between #{param.begintime} and #{param.endtime}
|
51
|
33
|
</if>
|
52
|
34
|
</select>
|
53
|
35
|
<!--作业数量统计——错题视频数量-->
|
54
|
36
|
<select id="getRegionPaperNumQueexp" resultType="java.lang.Integer">
|
55
|
|
- select count(distinct qe.qcpid) from t_question_explain qe left join t_question_class qc on qe.questionid=qe.questionid
|
56
|
|
- left JOIN t_school s on qc.schoolid=s.schoolid
|
57
|
|
- left join t_class c on c.classid=qc.classid
|
58
|
|
- where s.schoollevel=#{param.level}
|
|
37
|
+ select count(distinct qe.qcpid) from t_question_explain qe left join t_question_class qc on qe.questionid=qe.questionid
|
|
38
|
+ left JOIN t_school s on qc.schoolid=s.schoolid
|
|
39
|
+ left join t_class c on c.classid=qc.classid
|
|
40
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and qe.year=#{param.year}
|
59
|
41
|
<if test="param.begintime!=null and param.begintime!=0">
|
60
|
42
|
and qe.createtime between #{param.begintime} and #{param.endtime}
|
61
|
43
|
</if>
|
62
|
|
- <if test="param.year!=null and param.year!=0">
|
63
|
|
- and c.year=#{param.year}
|
64
|
|
- </if>
|
65
|
|
- <if test="param.year==null || param.year==0">
|
66
|
|
- and c.year=s.year
|
67
|
|
- </if>
|
68
|
44
|
</select>
|
69
|
45
|
|
70
|
46
|
<!--作业各类率统计-->
|
|
@@ -82,7 +58,6 @@
|
82
|
58
|
<result column="paperscore" property="paperscore"></result>
|
83
|
59
|
<result column="stuscore" property="stuscore"></result>
|
84
|
60
|
</collection>
|
85
|
|
-
|
86
|
61
|
</resultMap>
|
87
|
62
|
<!--作业各类率统计——作业-->
|
88
|
63
|
<select id="listRegionSchoolRatePaper" resultMap="rpaperMap">
|
|
@@ -95,13 +70,7 @@
|
95
|
70
|
left join t_paper_student ps on ps.paperid=p.paperid and ps.classid=pg.classid
|
96
|
71
|
left join t_school s on p.schoolid=s.schoolid and pg.schoolid=s.schoolid
|
97
|
72
|
left join t_class c on c.classid=pg.classid
|
98
|
|
- where s.schoollevel=#{param.level}
|
99
|
|
- <if test="param.year!=null and param.year!=0">
|
100
|
|
- and c.year=#{param.year}
|
101
|
|
- </if>
|
102
|
|
- <if test="param.year==null || param.year==0">
|
103
|
|
- and c.year=s.year
|
104
|
|
- </if>
|
|
73
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and p.year=#{param.year}
|
105
|
74
|
<if test="param.begintime!=null and param.begintime!=0">
|
106
|
75
|
and pg.starttime between #{param.begintime} and #{param.endtime}
|
107
|
76
|
</if>
|
|
@@ -117,13 +86,7 @@
|
117
|
86
|
left join t_recite_student rs on rs.reciteid=r.reciteid and rs.classid=rg.classid
|
118
|
87
|
left join t_school s on r.schoolid=s.schoolid and rg.schoolid=s.schoolid
|
119
|
88
|
left join t_class c on c.classid=rg.classid
|
120
|
|
- where s.schoollevel=#{param.level}
|
121
|
|
- <if test="param.year!=null and param.year!=0">
|
122
|
|
- and c.year=#{param.year}
|
123
|
|
- </if>
|
124
|
|
- <if test="param.year==null || param.year==0">
|
125
|
|
- and c.year=s.year
|
126
|
|
- </if>
|
|
89
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and r.year=#{param.year}
|
127
|
90
|
<if test="param.begintime!=null and param.begintime!=0">
|
128
|
91
|
and rg.starttime between #{param.begintime} and #{param.endtime}
|
129
|
92
|
</if>
|
|
@@ -139,13 +102,7 @@
|
139
|
102
|
left join t_guide_group_student ggs on ggs.guideid=g.guideid and ggs.classid=gg.classid
|
140
|
103
|
left join t_school s on s.schoolid=g.schoolid and s.schoolid=gg.schoolid
|
141
|
104
|
left join t_class c on c.classid=gg.classid
|
142
|
|
- where s.schoollevel=#{param.level}
|
143
|
|
- <if test="param.year!=null and param.year!=0">
|
144
|
|
- and c.year=#{param.year}
|
145
|
|
- </if>
|
146
|
|
- <if test="param.year==null || param.year==0">
|
147
|
|
- and c.year=s.year
|
148
|
|
- </if>
|
|
105
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and g.year=#{param.year}
|
149
|
106
|
<if test="param.begintime!=null and param.begintime!=0">
|
150
|
107
|
and g.createtime between #{param.begintime} and #{param.endtime}
|
151
|
108
|
</if>
|
|
@@ -161,13 +118,7 @@
|
161
|
118
|
left join t_school s on p.schoolid=s.schoolid and pg.schoolid=s.schoolid
|
162
|
119
|
left join t_paper_student ps on pg.paperid=ps.paperid and pg.classid=ps.classid and ps.psstate!=0
|
163
|
120
|
left join t_class c on c.classid=pg.classid
|
164
|
|
- where s.schoollevel=#{param.level}
|
165
|
|
- <if test="param.year!=null and param.year!=0">
|
166
|
|
- and c.year=#{param.year}
|
167
|
|
- </if>
|
168
|
|
- <if test="param.year==null || param.year==0">
|
169
|
|
- and c.year=s.year
|
170
|
|
- </if>
|
|
121
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and p.year=#{param.year}
|
171
|
122
|
<if test="param.begintime!=null and param.begintime!=0">
|
172
|
123
|
and pg.starttime between #{param.begintime} and #{param.endtime}
|
173
|
124
|
</if>
|
|
@@ -182,13 +133,7 @@
|
182
|
133
|
left join t_guide g on gs.guideid=g.guideid
|
183
|
134
|
left join t_school s on g.schoolid=s.schoolid and gs.schoolid=s.schoolid
|
184
|
135
|
left join t_class c on c.classid=gs.classid
|
185
|
|
- where s.schoollevel=#{param.level} and gs.readtime>0
|
186
|
|
- <if test="param.year!=null and param.year!=0">
|
187
|
|
- and c.year=#{param.year}
|
188
|
|
- </if>
|
189
|
|
- <if test="param.year==null || param.year==0">
|
190
|
|
- and c.year=s.year
|
191
|
|
- </if>
|
|
136
|
+ where s.schoollevel=#{param.level} and s.schoolstate=1 and gs.readtime>0 and g.year=#{param.year}
|
192
|
137
|
<if test="param.begintime!=null and param.begintime!=0">
|
193
|
138
|
and g.createtime between #{param.begintime} and #{param.endtime}
|
194
|
139
|
</if>
|