Browse Source

获取预习、背诵班级完善

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
5fb4fcb1af

+ 1
- 3
sstudy/src/main/resources/mapper/recite/ReciteMapper.xml View File

13
         from t_recite_student rs left join t_class c on rs.classid = c.classid
13
         from t_recite_student rs left join t_class c on rs.classid = c.classid
14
         left join t_school s on rs.schoolid=s.schoolid
14
         left join t_school s on rs.schoolid=s.schoolid
15
         left join t_recite r on rs.reciteid=r.reciteid
15
         left join t_recite r on rs.reciteid=r.reciteid
16
-        left join t_class_teacher ct on rs.classid=ct.classid
17
-        left join t_teacher_subjectbook ts on ct.teacherid=ts.teacherid
18
-        where rs.reciteid=#{recite.reciteid} and ct.teacherid=#{recite.createid} and ts.subjectid=r.subjectid
16
+        where rs.reciteid=#{recite.reciteid}
19
         <if test="recite.classids!=null and recite.classids!=''">
17
         <if test="recite.classids!=null and recite.classids!=''">
20
             and rs.classid in (${recite.classids})
18
             and rs.classid in (${recite.classids})
21
         </if>
19
         </if>

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

334
         from t_guide_group_student rs left join t_class c on rs.classid = c.classid
334
         from t_guide_group_student rs left join t_class c on rs.classid = c.classid
335
         left join t_guide g on rs.guideid=g.guideid
335
         left join t_guide g on rs.guideid=g.guideid
336
         left join t_school s on rs.schoolid=s.schoolid
336
         left join t_school s on rs.schoolid=s.schoolid
337
-        left join t_class_teacher ct on rs.classid=ct.classid
338
-        left join t_teacher_subjectbook ts on ct.teacherid=ts.teacherid
339
-        where rs.guideid=#{guide.guideid} and ct.teacherid=#{guide.createid} and ts.subjectid=g.subjectid
337
+        where rs.guideid=#{guide.guideid}
340
         <if test="guide.classids!=null and guide.classids!=''">
338
         <if test="guide.classids!=null and guide.classids!=''">
341
             and rs.classid in (${guide.classids})
339
             and rs.classid in (${guide.classids})
342
         </if>
340
         </if>

Loading…
Cancel
Save