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>