xuhy
2025-12-31 bf1b072b6af7de878fb5750bc14db7a2e2258f0c
ruoyi-system/src/main/resources/mapper/system/TCourseOrderMapper.xml
@@ -157,5 +157,11 @@
        </where>
        ORDER BY tco.create_time DESC
    </select>
    <select id="countOrderNum" resultType="java.lang.Integer">
select count(1) from t_course_order tco left join t_course tc on tc.id = tco.course_id
where tco.disabled = 0 and tco.app_user_id = #{userId}
and tco.pay_status in (1,2) and tc.course_type = #{type}
    </select>
</mapper>