jiangqs
2023-06-25 1789718f58e3374ce85357524ef80a84f3d70d6f
ruoyi-modules/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml
@@ -1198,4 +1198,12 @@
        GROUP BY activity_name
        ORDER BY SUM(order_money) DESC LIMIT 15
    </select>
    <select id="getMerHomeShopTotalVo" resultType="com.ruoyi.system.api.domain.vo.MerHomeShopTotalVo">
        SELECT
        SUM(CASE WHEN order_status = 2 THEN 1 ELSE 0 END) unHandleOrder,
        SUM(pay_money) shopTurnover
        FROM t.order
        WHERE del_flag = 0 AND shopId = #{shopId}
    </select>
</mapper>