courseMessage报错修复

This commit is contained in:
张松
2025-01-09 17:13:39 +08:00
parent e5ebc3798f
commit b58d3a7cf0
4 changed files with 32 additions and 2 deletions

View File

@@ -236,5 +236,13 @@
</if>
order by create_time desc
</select>
<select id="selectGroupCourseId" resultType="com.sqx.modules.app.response.CourseOrderResponse">
select sum(o.pay_money) as 'coursemoney' ,count(*) as 'coursenum', o.course_id as courseId
from orders o
where o.status=1 and o.orders_type=1
and o.create_time between #{start} and #{end}
group by o.course_id
order by coursenum desc
</select>
</mapper>