ruoyi-modules/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml
@@ -1456,4 +1456,11 @@ </if> ORDER BY toc.create_time DESC </select> <select id="countUserActivityByActivity" resultType="java.lang.Integer"> SELECT COUNT(order_id) FROM t_order WHERE del_flag = 0 AND order_from =2 AND user_id = #{userId} AND activity_id = #{activityId} AND order_status > 0 </select> </mapper>