jiangqs
2023-07-13 cfd0118ef446a66f91999afc7b1e46ca607adf50
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 &gt; 0
    </select>
</mapper>