台桌数统计

This commit is contained in:
2025-11-22 15:01:31 +08:00
parent bcba0784dc
commit d244d70fbd

View File

@@ -82,7 +82,7 @@ public interface ShopOrderStatisticMapper extends BaseMapper<ShopOrderStatistic>
" shop_id = #{shopId} " +
"and trade_day = #{tradeDay} " +
"and paid_time is not null " +
"GROUP BY trade_day desc")
"GROUP BY trade_day")
TotalVo getOnlineDataAmount(Long shopId, LocalDate tradeDay);
/**
@@ -240,7 +240,7 @@ public interface ShopOrderStatisticMapper extends BaseMapper<ShopOrderStatistic>
/**
* 统计店铺桌台数 tableCount
*/
@Select("SELECT count(*) FROM tb_order_info WHERE shop_id = #{shopId} and status != 'unbound'")
@Select("SELECT count(*) FROM tb_shop_table WHERE shop_id = #{shopId} and status != 'unbound'")
Long countShopTable(Long shopId);
/**