| | |
| | | LEFT JOIN t_study_pair sp ON s.id = sp.studyId |
| | | LEFT JOIN t_story_listen sl ON s.id = sl.studyId |
| | | LEFT JOIN t_game g ON s.id = g.studyId |
| | | <where> |
| | | s.disabled = 0 |
| | | and sa.disabled = 0 |
| | | and si.disabled = 0 |
| | | and st.disabled = 0 |
| | | and sk.disabled = 0 |
| | | and sp.disabled = 0 |
| | | and sl.disabled = 0 |
| | | and g.disabled = 0 |
| | | <if test="quarter != null and quarter != ''"> |
| | | and s.quarter = #{quarter} |
| | | </if> |
| | | <if test="type != null and quarter != ''"> |
| | | and s.type = #{type} |
| | | </if> |
| | | </where> |
| | | where s.disabled = 0 |
| | | and s.quarter = #{quarter} |
| | | and s.type = #{type} |
| | | GROUP BY s.week, s.title, s.quarter, s.id; |
| | | </select> |
| | | </mapper> |