hjl
2024-06-17 e11362ca4849da567a77d8b5e5be510df9fb0741
ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TStudyMapper.xml
@@ -41,22 +41,9 @@
                 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>